GithubHelp home page GithubHelp logo

jhan15 / dubins_path_planning Goto Github PK

View Code? Open in Web Editor NEW
113.0 1.0 30.0 226 KB

Path planning using Hybrid A*/RRT + Dubins Path (as final shot).

Python 100.00%
path-planning rrt dubins-path hybrid-a-star

dubins_path_planning's Introduction

GitHub issues GitHub last commit

dubins_path_planning

Implemented car path planning with RRT, Hybrid A*, and Dubins Path algorithms. The car model is

with the dynamics

x[t+1]     = x[t]     + cos(theta[t])
y[t+1]     = y[t]     + sin(theta[t])
theta[t+1] = theta[t] + tan(phi[t]) / L

The state variables are:

  • x: horizontal position
  • y: vertical position
  • theta: heading angle (direction of travel)

The control variable is:

  • phi โˆˆ [-pi/5, pi/5]: steering angle (w.r.t. the direction of travel).

Usage

$ git clone https://github.com/jhan15/dubins_path_planning.git
$ cd dubins_path_planning

# demonstarte car dynamics
$ python3 car.py

# demonstrate dubins path (shortest obstacle-free)
$ python3 dubins_path.py

# pathfinding with RRT + Dubins Path (final shot)
$ python3 rrt.py

# pathfinding with Hybrid A* + Dubins Path (final shot)
$ python3 hybrid_astar.py -heu 1 -r -e # A* heuristic + reverse + extra cost

Results

Dubins Path

Pick the shortest obstacle-free dubins path

RRT + Dubins Path

Hybrid A* + Dubins Path

w/o reversing

w/ reversing (blue tree)

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.