This package provides implementations of various algorithms with proper visualization.
- ROS (Robot Operating System) installed on your system.
- A map file in
.yaml
format.
-
Create a catkin workspace if you don't have one:
mkdir -p ~/catkin_ws/src cd ~/catkin_ws/ catkin_make source devel/setup.bash
-
Clone the
all_algo
package into thesrc
directory of your workspace:cd ~/catkin_ws/src git clone https://github.com/your-repo/all_algo.git
-
Download the map files and place them in the
maps
directory of the package:mkdir -p ~/catkin_ws/src/all_algo/maps cd ~/catkin_ws/src/all_algo/maps # Download map.pgm and map.yaml files into this directory
-
Build the package:
cd ~/catkin_ws/ catkin_make
-
Source your workspace:
source ~/catkin_ws/devel/setup.bash
-
Launch the motion planning nodes:
roslaunch all_algo motion_planning.launch
- Node:
motion_planning_a_star
- Source:
src/a_star.cpp
- Node:
motion_planning_rrt
- Source:
src/rrt.cpp
- Node:
motion_planning_rrt_star
- Source:
src/rrt_star.cpp
- Node:
motion_planning_prm
- Source:
src/prm.cpp
Each algorithm node will subscribe to the map topic and perform the respective motion planning algorithm to find a path from the start to the goal while avoiding obstacles.
The paths generated by the motion planning algorithms will be visualized in RViz. Make sure to add the necessary displays in RViz to visualize the /planned_path
topic.
For any issues or inquiries, please contact [[email protected]].