Motion planning and Navigation of AGV/AMR:ROS planner plugin implementation of A*, JPS, D*, LPA*, D* Lite, Theta*, RRT, RRT*, RRT-Connect, Informed RRT*, ACO, P
Motion planning and Navigation of AGV/AMR:ROS planner plugin implementation of A*, JPS, D*, LPA*, D* Lite, Theta*, RRT, RRT*, RRT-Connect, Informed RRT*, ACO, P
Robot Motion planning is a computational problem that involves finding a sequence of valid configurations to move the robot from the source to the destination. Generally, it includes Path Searching and Trajectory Optimization.
Path Searching: Based on path constraints (e.g., avoiding obstacles), to find the optimal sequence for the robot to travel from the source to the destination without collision.
Trajectory Optimization: Based on kinematics, dynamics and obstacles, to optimize the trajectory of the motion state from the source to the destination according to the path.
This repository provides the implementation of common Motion Planning algorithms. The theory analysis can be found at motion-planning. Furthermore, we provide Python and MATLAB version.
Your stars, forks and PRs are welcome!
Tested on ubuntu 20.04 LTS with ROS Noetic.
Install ROS (Desktop-Full Install Recommended).
Install git.
sudo apt install gitInstall dependence
conan
pip install conan==1.59.0
conan remote add conancenter https://center.conan.ioOther dependence.
sudo apt install python-is-python3 \
ros-noetic-amcl \
ros-noetic-base-local-planner \
ros-noetic-map-server \
ros-noetic-move-base \
ros-noetic-navfn \
libgoogle-glog-devClone the reposity.
git clone https://github.com/ai-winter/ros_motion_planning.gitCompile the code.
NOTE: Please refer to #48 if you meet libignition dependency error.
cd scripts/
./build.sh # you may need to install catkin-tools using: sudo apt install python-catkin-toolsExecute the code.
NOTE: You should open a new terminal or
source ~/.bashrcafter the first time you runbuild.sh.
cd scripts/
./main.shNOTE: Modifying launch files may not have any effect, because they are regenerated by a Python script based on
src/user_config/user_config.yamlwhen you runmain.sh. Therefore, you should modify configurations inuser_config.yamlinstead of launch files.
Use 2D Nav Goal in RViz to select the goal.
Moving!
You can use the other script to shutdown them rapidly.
cd scripts/
./killpro.shMulti agents
# 1. Replace with user_config_multi.yaml in main.sh
# 2. Wait for initialization
# 3. Publish goals
rosrun sim_env goal_publisher.pyThe overall file structure is shown below.
ros_motion_planner
├── 3rd
├── docs
├── docker
├── assets
├── scripts
└── src
├── core
│ ├── common
│ ├── path_planner
│ └── controller
├── sim_env # simulation environment
│ ├── config
│ ├── launch
│ ├── maps
│ ├── meshes
│ ├── models
│ ├── rviz
│ ├── urdf
│ └── worlds
├── plugins
│ ├── dynamic_rviz_config
│ ├── dynamic_xml_config
│ ├── gazebo_plugins
│ ├── map_plugins
│ └── rviz_plugins
└── user_config # user configure fileTo better understand the project code, detailed interface documentation can be generated using the doxygen tool. First install doxygen and graphviz.
sudo apt-get install doxygen graphvizThen start the doxygen and you can find the documentation in ./docs/html/index.html.
doxygenFor more information about the project usage, please refer to the following table.
For the efficient operation of the motion planning system, we provide a series of user-friendly simulation tools that allow for on-demand selection of these lightweight repositories.
| Planner | Version | Animation | Papers |
|---|---|---|---|
| GBFS | - | ||
| Dijkstra | - | ||
| A* | A Formal Basis for the heuristic Determination of Minimum Cost Paths | ||
| JPS | Online Graph Pruning for Pathfinding On Grid Maps | ||
| D* | Optimal and Efficient Path Planning for Partially-Known Environments | ||
| LPA* | Lifelong Planning A* | ||
| D* Lite | D* Lite | ||
| Voronoi | - | ||
| Theta* | Theta*: Any-Angle Path Planning on Grids, Any-angle path planning on non-uniform costmaps | ||
| Lazy Theta* | Lazy Theta*: Any-Angle Path Planning and Path Length Analysis in 3D | ||
| S-Theta* | [S-Theta*: low steering path-planning algorithm](https://link.springer.com/chapter/10.1007/978-1-447 |
No open issues yet, or sync has not completed.