This is a short guide to run offbroad simulation with PX4 Gazebo sitl + mavros with ROS Wrapper. Currently it is using a python script. Guide to use c++ will be availabe shorlty.
#Let's Start
- Install ROS + Gazebo + Mavros and other dependencies from https://raw.githubusercontent.com/PX4/Devguide/master/build_scripts/ubuntu_sim_ros_gazebo.sh
- Then run this command or follow http://dev.px4.io/en/setup/dev_env_linux.html#gazebo-with-ros
'''source ubuntu_sim_ros_gazebo.sh''' - Follow this Link, https://akshayk07.weebly.com/offboard-control-of-pixhawk.html it's a really helpful link and makes it really easy to get your model flying.
- It is up to you which aircraft you want to use. If you feel like changing the aircraft/vehilce follow this link http://dev.px4.io/en/simulation/gazebo.html
- To obtain the ip for the system go to the network setting in your ubuntu system.
- http://dev.px4.io/en/setup/dev_env_linux.html#gazebo-with-ros
- http://dev.px4.io/en/simulation/gazebo.html
- http://wiki.ros.org/ROS/Tutorials/CreatingPackage
- http://dev.px4.io/en/simulation/ros_interface.html
Hoping it will be helpful for the reader. Have a good time.