- Install Mavros in
~/px4_ws/src
http://dev.px4.io/en/ros/mavros_installation.html - Clone Firmware in
~/px4_ws/src
.git clone --recursive https://github.com/PX4/Firmware
- Create virtual link for sitl_gazebo package in
~/px4_ws/src
:ln -s Firmware/Tools/sitl_gazebo mavlink_sitl_gazebo
- Catkin build
- Fix Gazebo paths:
export GAZEBO_MODEL_PATH=$HOME/px4_ws/src/mavlink_sitl_gazebo/models
export GAZEBO_RESOURCE_PATH=$HOME/px4_ws/src/mavlink_sitl_gazebo/worlds
export GAZEBO_PLUGIN_PATH=$HOME/px4_ws/build/mavlink_sitl_gazebo
export GAZEBO_MODEL_DATABASE_URI=''
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/px4_ws/build/mavlink_sitl_gazebo
- Test Mavros SITL PX4:
roslaunch px4 mavros_posix_sitl.launch
- Test Px4:
roslaunch px4 px4.launch
- Test Gazebo:
roslaunch gazebo_ros empty_world.launch world_name:=iris.world verbose:=true