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.3.tar.gz (17.8 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.3-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.3-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.3-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.3-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.3-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.3-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.3-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.3.tar.gz.

File metadata

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

File hashes

Hashes for path_toolkit-0.1.3.tar.gz
Algorithm Hash digest
SHA256 b63f11744c0e303677c32291db10690104388ca468d4fa4a153deca7dce04237
MD5 91dabf0874949c3e6b4db4da8dfb1aba
BLAKE2b-256 7e2ca5f6acbb6e9abd2a5d0918973d97dc652a8092eaa1efd2d7ef980635ddc2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for path_toolkit-0.1.3-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 29e769e58b60aa64324603d045e535ee6052a886acfc136becce4c8eb65c4330
MD5 4ff13d7e19a8c0a3674657a8148723c6
BLAKE2b-256 3a15f5fb37e5c1598d4f71241c9d0a13c738904048a2da140f963ea4b534a7bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for path_toolkit-0.1.3-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dbb960d32a4c09f86636b2be519775646b7570ae30e1ef2c5354c1cfbadf0ade
MD5 54fe27053543b19d39c9f24950f40176
BLAKE2b-256 a8fbeaea5f22205d607140b2eacf17d2a08d1b693244b3c0e99a513b787c1f37

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for path_toolkit-0.1.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6e411977d6828dd0c538e64f93d186f1ff4192440f9184471b1eb15c456fed20
MD5 f1335f94b4802bf9cd3846cd8e7762dd
BLAKE2b-256 ce27e9aff160cd64e5f33bbdecb97980c1224f5304f54dccda1de36d6e7bb987

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for path_toolkit-0.1.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f5076f900e061ac1d6f1bf207f2f25054b4550844472c3f8c51d02039112299a
MD5 357007792bfb0079dacba782f836657f
BLAKE2b-256 c64dafc117da4211eb0899b6867e7e1b681ddcf988655478c6a047dab5526f10

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for path_toolkit-0.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 afbb560570e6e6809c4f3106affa94e393598b37c72cad9cbae36be04d49a8b5
MD5 8ac37022a35ec6d250669fe420b6cd9e
BLAKE2b-256 832a783a3a2fe39bdcd2b33dbb986cb4c4f31d071124f8deab3f0160cdf59af8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for path_toolkit-0.1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 21002ee7dcf804052d13615f74d2f8d4b66b4a552ca55732c59b4aa455a5a1d7
MD5 3e75a82a6d6dd9fb31b402d1d1ea3cf8
BLAKE2b-256 ff4f8e5e56cdb9f1050ff54aefaec74e0cfbe9e781589b09688fca16f4ddda39

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for path_toolkit-0.1.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0abd2e77367b1f70b91614c7b07d8d3b7eeeb875b7e683e61cd9f3281231f30e
MD5 6b11505cc183cd5d143fc4171bdd90a9
BLAKE2b-256 159ed4cf1a0b452843bc7922861911e192cd19bcd201df45ea084fb56c74cfce

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