Download mavros, mavlink from their respective Github repo
All folder(workspaces) are in /home directory
-
PX4-Autopilot
Contains mavros PX4 launch files -
catkin_ws
Contains mavros -
fastplanner_ws
Contains mapping, planning and controller
cd catkin_ws/
source devel/setup.bash
roslaunch mavros px4.launch
cd fastplanner_ws/
source devel/setup.bash
roslaunch FastPlannerOctomap MappingDrone.launch
Give goal location using 2D Nav Goal option in rviz
cd fastplanner_ws/
source devel/setup.bash
rosrun FastPlannerOctomap Planner
For the startOver option select either 1 or 0
Also give the height (in metres) of the goal location when prompted.
cd fastplanner_ws/
source devel/setup.bash
rosrun FastPlannerOctomap Controller
Reference:- https://github.com/deepak-1530/FastPlannerOctomap