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 methods

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.
index_from_point Finds the index of the nearest point from a given point.
path_length_from_point Finds the path length of a given point.
sub_path Returns a path ranging from a given start point to a given end point.

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.4.tar.gz (19.5 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.4-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.4-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.4-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.4-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.4-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.4-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.4-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.4.tar.gz.

File metadata

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

File hashes

Hashes for path_toolkit-0.1.4.tar.gz
Algorithm Hash digest
SHA256 ed5c266bb5e8b98a900c317abb1d819c97ddfcf51413a4453bd7316d71135b99
MD5 52094ce8e0231ed6114e99df5c8a0d6f
BLAKE2b-256 26190b5a2731bfaa29e9cbc312b667f7c551d2b446595c44566cb8a4072398cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for path_toolkit-0.1.4-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 160a7e9cfe2fdaeed22c3925e3525fa35928033b41565a5925f7a58a62ea25c4
MD5 8c59e9869a3bef88f34f2fe78faa4592
BLAKE2b-256 e86f108482f544bcd915a9a814a6d38ba29a383e94d1c454d61cbe4c24dcd1b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for path_toolkit-0.1.4-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 eb0aaffd154ba1d7fd36fc4e47cacd79924ee6b97ffbdaccab24c28fe5a11ccd
MD5 16f9d40ae426782d46b540cacae5aa56
BLAKE2b-256 8ad2b03e247980368f9aeec4961f42bd3408f189c21068aa552613ca6e8012c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for path_toolkit-0.1.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a67429d770e5179b6649ccda74d3c10172d2c660c0189f0524f0ad1a34737bbf
MD5 eadc53bc5110b04b1731b368e542efce
BLAKE2b-256 1f0b26131289ee411381e94b45304ae65fc56afb712903bf613f9f08b0971cd9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for path_toolkit-0.1.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a87ec0e9a46759936c04f2bf727109f344a7be8f951b8326c5656ab9466c8440
MD5 c03c6e9d5e4a7355c1e949825e9a18ac
BLAKE2b-256 d6ac5cf3415978ae94303cf048ae0d523cdc601dcd3ac7df72d6df97faa94e23

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for path_toolkit-0.1.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d21c68d2763cfcf5dda183c4578961328cbebd9d40c8e78c9d05a1795ccd25bc
MD5 4073fbcefc7558876953d0a778b902fb
BLAKE2b-256 4ae02bdda8cf3d26e676a7af95ea01fdc17b9f6ca0c0a9c743bc7df96720ac2b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for path_toolkit-0.1.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9b8f9efa76b5edb6672c94e6062e8bf3408d254c50f25af33013e436ce21b350
MD5 b1428684577b5c3256e7a833d12e57aa
BLAKE2b-256 fc2189fb3c039a449a0af22f49039820257d225424d079fe4c54abbd4dd00a84

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for path_toolkit-0.1.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 009946885cd4d50c67c7fb1e4297de40ceb2165357abd7c190a8eb9c069ba641
MD5 5732e15b7ab25be136ef506262b60697
BLAKE2b-256 68348716a1dfc94350ee8d2832ef7e8138bf83274b19954ef9f8995c46771ab1

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