Download mavros, mavlink and Px4-Autopilot from their respective Github repo
All folder(workspaces) are in /home directory
-
PX4-Autopilot
Contains PX4-Gazebo-SITL -
catkin_ws
Contains mavros -
fastplanner_ws
Contains mapping, planning and controller nodes
cd PX4-Autopilot/
roslaunch px4 mavros_posix_sitl.launch
In the same terminal type
pxh> commander takeoff
It will launch Gazebo, World, Mavros, PX4, Quadcopter(iris_depth_camera)
cd fastplanner_ws/
source devel/setup.bash
roslaunch FastPlannerOctomap MappingSim.launch
Give goal location using 2D Nav Goal option in the 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