Giter VIP home page Giter VIP logo

nicholasrenninger / cspaceviz_gradient_wavefront_planners Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 2.0 38.78 MB

Implementation of a 2-D 2DoF manipulator configuration space visualizer, as well as implementations of a gradient descent and wavefront planner for this manipulator.

Python 100.00%
wavefront-planner gradient-descent cspace-visualizer manipulator brushfire-algorithm potential-function-planner motion-planning

cspaceviz_gradient_wavefront_planners's Introduction

Motion Planning - Configuration Space Generation and Planning with Gradient Descent / WaveFront

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 a 2-D 2DoF manipulator configuration space visualizer, as well as implementations of a gradient descent and wavefront planner for this manipulator.

Nicholas Rennninger


SLOC Stats for nerds

-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
Python                          23            730           1582           1635
YAML                            11             80            209            148
Markdown                         1             21              0             28
-------------------------------------------------------------------------------
SUM:                            35            831           1791           1811
-------------------------------------------------------------------------------

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 motionPlanning2

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

Configuring the Code

C-Space visualizer for a translating, rotating robot and obstacle

To change the scenarios for the c-space visualization simulation, simply modify one of the $(REPO_DIR_LOCATION)/config/cspace_XXX.yaml files to change the robot or obstacle vertices, or to change the location of the start / goal state or the robot.

Gradient descent planner for a point robot

To change the scenarios for the gradient descent planning simulation, simply modify one of the $(REPO_DIR_LOCATION)/config/gradient_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 the planner settings.

Wavefront planner for a point Robot

To change the scenarios for the wavefront planning simulation, simply modify one of the $(REPO_DIR_LOCATION)/config/wavefront_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 wavefront planner.

2-DOF Manipulator C-Space visualizer, inverse kinematics, and wavefront planning

To change the scenarios for the manipulator simulation, simply modify one of the $(REPO_DIR_LOCATION)/config/manipulator_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 wavefront planner.


Results

Manipulator with Wavefront Planner

Environment 1

Environment 2

Environment 3

Point Robot with Gradient Descent Planner

Environment 1

Environment 2

Environment 3

Point Robot with Wavefront Planner

Environment 2

Environment 3

cspaceviz_gradient_wavefront_planners's People

Contributors

nicholasrenninger avatar

Stargazers

 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.