Skip to main content

Useful functions for working with paths

Project description

path-toolkit

This package contains the class Path which is useful for computing geometrical properties.

Instantiating a path

from path_toolkit import Path

# Either from a list of points or (n, 2) numpy array
path1 = Path(points=[[0, 0], [1, 0], [2, 1]])

# Or from seperated x and y coordinates (numpy arrays are allowed as well) 
path2 = Path(x=[0, 1, 2], y=[0, 0, 1])

Class properties

These properties are lazily evaluated, such that the desired property is computed on first access. The result is cached such that no additional computation is required on repeated access.

Property Description
points The points of the path.
x The x coordinates.
y The y coordinates.
length The length of the entire path.
path_length_per_point The length of the path at each point.
orientation The orientation of the path for each point.
curvature The curvature for each point.
unit_tangent_vector The unit tangent vector at each point.

Class functions

Function Description
resampled_path Returns the path with equidistantly resampled points.
smoothed_path Returns the smoothed path using this approach from Autoware.
without_duplicate_points Returns a path without consecutive duplicate points.
find_circle_segments Returns a list of circle segments with the starting end ending index of the point list and respective radius.
compute_circle_fit_curvature Returns the curvature profile of the path using the circle segments from find_circle_segments.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

path_toolkit-0.1.2.tar.gz (17.7 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

path_toolkit-0.1.2-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (10.8 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

path_toolkit-0.1.2-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (10.8 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

path_toolkit-0.1.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (10.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

path_toolkit-0.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (10.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

path_toolkit-0.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (10.8 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

path_toolkit-0.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (10.8 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

path_toolkit-0.1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (10.8 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

File details

Details for the file path_toolkit-0.1.2.tar.gz.

File metadata

  • Download URL: path_toolkit-0.1.2.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.7.4

File hashes

Hashes for path_toolkit-0.1.2.tar.gz
Algorithm Hash digest
SHA256 233d0f37fef4818413433686a2f3c1202419a17fc56e955c3893e771f3702f32
MD5 ca7eda1f858c2a8f7f7bcc751eb44d18
BLAKE2b-256 64282b44356f03d214aab77c5387af916438bd8f76a558e5ac72f037d92dc9ab

See more details on using hashes here.

File details

Details for the file path_toolkit-0.1.2-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for path_toolkit-0.1.2-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c557401d155a938ab3adf19e69b0d5340562ebbfdbf3a7970a7a85446ce7022d
MD5 0ce6989216802a36360e33cadbef4b63
BLAKE2b-256 0d21c5ed0ee0f64668ff1a7a4f0147f93e70ce5e2c01012a19a9909bf49254c2

See more details on using hashes here.

File details

Details for the file path_toolkit-0.1.2-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for path_toolkit-0.1.2-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 de03e3f25f8c29706279801f5254244ec8cfc326437df85f0dabc82c6d44e1f0
MD5 7f9cebfdf9f40477f21591a9fcf14ab1
BLAKE2b-256 8644741fd915583f4df49fddbcfe3e7f98efbc71b8d5a4f76a883eb6dd4e67f5

See more details on using hashes here.

File details

Details for the file path_toolkit-0.1.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for path_toolkit-0.1.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0b9caa1039ecf808f771b319fa0e76aadb62a01451e18beaf0478dfa58c95b1f
MD5 61da5bb5b6a559498637d7353d11794a
BLAKE2b-256 38fe49628ea9ae8b48a853018a9e2d529236ddb65276ae2a67f8b3890bf90936

See more details on using hashes here.

File details

Details for the file path_toolkit-0.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for path_toolkit-0.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e9ed218e6c5e157881e072952bfffe3846c641b53847b184f322d4608bc2ec75
MD5 e5c025616f6dace43d7019a09397203f
BLAKE2b-256 3a5f0e9b3c570dc7e893d57e269d1683d1a699d11deb8a675fed86e0c52aedaa

See more details on using hashes here.

File details

Details for the file path_toolkit-0.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for path_toolkit-0.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 45fb0a998b0eff31d0560e0c34f660eb62dc10d6d4e5a9e704aa79273119ef80
MD5 fbcf019dd6f4a61564e6ecfdf430684b
BLAKE2b-256 ee259e0ef16a6a29c2c7726d38e0a9d7fc08cdba5750fbd9227be5ad79ef926d

See more details on using hashes here.

File details

Details for the file path_toolkit-0.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for path_toolkit-0.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5efcb26cd31e59331f4526e6c77a6449b7a5e530c0b143fb28a82a318c1b7120
MD5 8848390514e6207f49a24268641ec78b
BLAKE2b-256 81b060cd61c43abdad88c1c8f701bb0f50bb813b2e872a2dcde9902ce87201f4

See more details on using hashes here.

File details

Details for the file path_toolkit-0.1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for path_toolkit-0.1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 195f53215481feaf957fb52e7b0d8cb7d9665aeb4c30ed16c6cd0ad0c5238e7e
MD5 cab84a6c39d87806d685fa9429a8b4a4
BLAKE2b-256 9b80307a8158ec5e9079accafbbb911b21044bce51438175426453b75e3e16ca

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page