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.5.tar.gz (19.6 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.5-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.5-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.5-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.5-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.5-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.5-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.5-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.5.tar.gz.

File metadata

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

File hashes

Hashes for path_toolkit-0.1.5.tar.gz
Algorithm Hash digest
SHA256 94a1a78ffc7ce597e22698eec7c7ef7b9df0f8d9bfbb700ccf8541a2974a3215
MD5 4abe453af3a871e68ccef57da3a75f2c
BLAKE2b-256 84daf496590365bbff993800be9ecea78288cc4301cd47401cc9977fbc247bc9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for path_toolkit-0.1.5-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4c398600474cc4f617de7f2f84b66b56e1fb18a9c76dfcaef1271ec4d3c98842
MD5 381afd706fd370cb164ffd89ff9e59f4
BLAKE2b-256 7d66c0343ee89d06304d8328419539143b4d97b82a98614158f4d3abee27c4b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for path_toolkit-0.1.5-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 73c44ed8ae2345658f7eb7d553c9664e16bf8443bd58dafb00c05dd94e382afa
MD5 d5a38466b91b7161a1130ad5aef181f1
BLAKE2b-256 417737ad0b2c0f4ff4568ad246ec36bed21cdfafe1ebe0972902cae0e34d9d1d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for path_toolkit-0.1.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 45f684d2f6afbe002eb423ce49ac674a0768203c45fa71152c03513cdb17df9d
MD5 456974ff633aab1c044601b94f0c6926
BLAKE2b-256 f57c2510a996a6bdf561d1dec83b2d1354d602a7033bdfb3a70e21f5c3fcdbd5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for path_toolkit-0.1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cc12a50be24de1c6fdc82ccc8533a7c9e879e86feba04a91af3d3ac5cb49a0db
MD5 c4eaa645189c9e92b9757a367eead979
BLAKE2b-256 12736ac6dccaec55b5a05afe0c7dc3d8a2bd37c9eb3dc0c81d95dd66024e8f73

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for path_toolkit-0.1.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9638b4a263a487ace2e51853ac3674a2ea327d56d1c2a8f9ba8d8a3a7fde3193
MD5 5cad6b2d41a397415d70a435924e10b1
BLAKE2b-256 17312dcfe780866dac8a533d00e332513955021c65754943224e905bffe29028

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for path_toolkit-0.1.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7d5fe841c21f6c4f00b627a87188504fa397a6b0bba678649c7dd1726dcdea7d
MD5 7530f61ddce6276b579984c9ff9379a4
BLAKE2b-256 9b3caf522c084034babbc1d7c49ce204a8d2a36fec0d8b35789cddba10f75b5a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for path_toolkit-0.1.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a571a02775d501ee31565ba52e5979360e81f9c5fd367e76537e23bbe0fdc046
MD5 c413e27ec42d88d30edd2119c6cf00cc
BLAKE2b-256 bcaad7145b793bd48220cab40247cdbf571d7039feb7216db96bb23dc020e625

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