Giter Site home page Giter Site logo

alvinsunyixiao / pyreedsshepp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from liespace/pyreedsshepp

0.0 1.0 0.0 234 KB

The library of implementation of the analytic Reeds Shepp curve. Forked from (here)[https://github.com/ghliu/pyReedsShepp]

License: MIT License

C++ 85.35% Python 14.65%

pyreedsshepp's Introduction

Reeds Shepp Path Library

Forked from the repository of Guan-Horng Liu. 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 path1 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. The primary C++ source code comes from Open Motion Planning Library(OMPL). And the API of Python version (primarily a Cython wrapper) is similar to the Dubins library from Andrew Walker. More descriptions can be referred to the OMPL and section 15.3.2 of the book Planning Algorithms.

Installation

PyPI

$ pip install reeds-shepp

from source

$ sudo python setup.py install

Demo

$ 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

Footnotes

  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. โ†ฉ

pyreedsshepp's People

Contributors

liespace avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.