Download/Clone the package into the workspace and build using catkin build or catkin_make. Source the workspace.
To run the below path planning algorithms, run the following from src folder the workspace:
$ cd final_project/scripts/
$ python3 rrt.py
$ cd final_project/scripts/
$ python3 rrt_star.py
$ cd final_project/scripts/
$ python3 rrt_star_smart.py
$ cd final_project/scripts/
$ python3 rrt_connect.py
This is using Navigation stack so is technically not correct: However depending on the algorithm to run uncomment the lines in the move.py script For RRT star, RRT star smart uncomment line 78 and comment line 79 for RRT connect and RRT do visa versa.
To run the simulation:
$ roslaunch final_project world.launch
In another terminal run,
$ roslaunch final_project navigation.launch
Make the map align with the world in rviz by moving the robot using 2D Pose Estimate.
Open a new terminal and run,
$ cd final_project/scripts/
$ python3 move.py
Reference: https://github.com/anikk94/enpm661_project5/tree/main/final_project
Results:
RRT Execution:
RRT.mp4
Drive link of all results:
https://drive.google.com/drive/folders/1iJ1UV4ABaA0cAIsR_7lLINq1CRS_0DOv?usp=sharing
2D - Results: