GithubHelp home page GithubHelp logo

nicholasrenninger / astar_and_prm_planning_analysis Goto Github PK

View Code? Open in Web Editor NEW
10.0 2.0 0.0 57.11 MB

Implementation of the A* / Dijkstra search algorithms, a Probabilistic Roadmap (PRM) Planner with path smoothing, and a statistical benchmarking suite

Python 100.00%
prm-planner dijkstra-search-algorithms a-star-algorithm benchmarking-suite visualization path-smoothing motion-planning

astar_and_prm_planning_analysis's Introduction

Motion Planning - A* / Dijkstra and Probabilistic Roadmap (PRM) Planning

For optimal viewing of this document (and all *.md files), try opening it in a text editor that supports syntax highlighting for markdown *.md files (e.g. Sublime Text 2+).

Implementation of the A* and Dijkstra optimal graph search algorithms, a Fast Probabilistic Roadmap (PRM) Planner with path smoothing, and a benchmarking suite for doing parametric performance evaluation of the planners modules.

Built with a networkx Graph backbone and library implementations of:

  • Set-Priority Queue (based on heapq)
  • KDTree (based on cKDTree)
  • Union-Find (based on newtorkx.util)

ADTs for speed.

Nicholas Rennninger


SLOC Stats for nerds

-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
Python                          26           1032           2192           2298
YAML                            18            206            404            443
Markdown                         1             21              0             43
-------------------------------------------------------------------------------
SUM:                            45           1259           2596           2784
-------------------------------------------------------------------------------

How to Run the Code

This repository uses python 3, which is managed with an anaconda environment.

Dependencies

In order to obtain all dependencies, you simply need to install anaconda for your OS, and then run from any shell with the conda command on its path:

$(REPO_DIR_LOCATION) $ conda env create -f conda/environment.yml

Running the Source Code

To run the code:

  • Activate the conda environment you just created in the "Dependencies" section: $(REPO_DIR_LOCATION) $ conda activate motionPlanning3

  • Run the main python module to run all of the simulations: $(REPO_DIR_LOCATION) $ python main.py


Configuring the Code

A* and Dijkstra Optimal Search Algorithms

To change the scenarios for the search algorithm simulations, simply modify one of the $(REPO_DIR_LOCATION)/config/graphSearch_XXX.yaml files to change the test graph or to change the location of the start / goal nodes.

PRM planner for a point Robot

To change the scenarios for the PRM planning simulation, simply modify one of the $(REPO_DIR_LOCATION)/config/prmPointRobot_XXX.yaml files to change the robot or obstacle vertices, or to change the location of the start / goal state or the robot, or to change properties of the PRM planner.

PRM planner Benchmarking

To change the scenarios for the PRM planner benchmarking, simply modify one of the $(REPO_DIR_LOCATION)/config/prmPointRobotBenchmark_XXX.yaml files to change the robot or obstacle vertices, or to change the location of the start / goal state or the robot, or to change properties of the PRM planner or to change the parameters you would like to vary.

Tool Class Hierarchy

This diagram shows the exact class design for the underlying python framework:


Results

A* and Dijkstra Optimal Search Algorithms

Graph 1 - A*

Graph 1 - Dijkstra

PRM Planner Viz and Benchmarking Stats

Environment 1 - PRM Viz

Environment 1 - PRM Benchmarking Results

Environment 2 - PRM Viz

Environment 2 - PRM Benchmarking Results

Environment 3 - PRM Viz

Environment 3 - PRM Benchmarking Results

astar_and_prm_planning_analysis's People

Contributors

nicholasrenninger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.