Skip to main content

# Reeds Shepp Path Library

Forked from the [repository](https://github.com/ghliu/pyReedsShepp) of [Guan-Horng Liu](https://github.com/ghliu>). Modified some places:

  1. Modify the path_type function to get the length (>0 for forward, <0 for backward) and curvature (>0 for left, <0 for right) of each segment.

## Overview

The library implements the analytic Reeds Shepp path between two SE2 configurations. Reeds Sheep path[^1] is defined as the shortest traveling path of the Reeds-Shepp Car, a car that can go both forward and backward with a constrained turning radius. Reeds-Sheep path can be viewed as a generalized version of [Dubins path](http://planning.cs.uiuc.edu/node821.html). The primary C++ source code comes from [Open Motion Planning Library](http://ompl.kavrakilab.org/ReedsSheppStateSpace_8cpp_source.html)(OMPL). And the API of Python version (primarily a Cython wrapper) is similar to the [Dubins library](https://github.com/AndrewWalker/pydubins) from Andrew Walker. More descriptions can be referred to the [OMPL](http://ompl.kavrakilab.org/2012/03/18/geometric-planning-for-car-like-vehicles.html) and section 15.3.2 of the book [Planning Algorithms](http://planning.cs.uiuc.edu/node822.html).

## Installation

### PyPI

`shell script $ pip install reeds-shepp `

### from source

`shell script $ sudo python setup.py install `

## Demo `shell script $ python demos/demo.py `

## API

  • path_length(q0, q1, turning_radius) - return total length of Reed Shepps curve from q0 to q1 with specified turning radius

  • path_sample(q0, q1, turning_radius, step_size)

    • return list of tuple (x,y,theta) uniformly sampled from corresponding Reed Shepps curve

  • path_type(q0, q1, turning_radius)

    • return the tuple of path segment type and length for the Reed Sheps curve from q0 to q1 with specified turning radius

## References

[^1]: Reeds, J., & Shepp, L. (1990). Optimal paths for a car that goes both forwards and backwards. Pacific journal of mathematics, 145(2), 367-393.

Release files for reeds-shepp 1.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for reeds-shepp 1.0.7
File Size Uploaded
reeds_shepp-1.0.7.tar.gz 45.8 kB Details

Release files / reeds_shepp-1.0.7.tar.gz

Download URL reeds_shepp-1.0.7.tar.gz
Size 45.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f40db89d51c8fecc02e7546d9aa99301c6956c1712aa36f2cbbe07d694b02ff3
BLAKE2b-256 checksum
How to use checksums
78349c33f99cf4bb80501ab7baf84f0e7a01904f4560198cb5357f8b481350ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/2.7.17

Release history Release notifications | RSS feed

This release

1.0.7 This release

1 release file

1.0.6

1 release file

1.0.5

1 release file

1.0.4

1 release file

1.0.3

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page