/MAVROS-PX4-Gazebo-setup

Here are some simple steps to follow which will help you test offboard simulations with ROS wrapper on Gazebo

MAVROS-PX4-Gazebo-setup

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

  1. Install ROS + Gazebo + Mavros and other dependencies from https://raw.githubusercontent.com/PX4/Devguide/master/build_scripts/ubuntu_sim_ros_gazebo.sh
  2. 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'''
  3. 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.
  4. 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
  5. To obtain the ip for the system go to the network setting in your ubuntu system.

Reference links which one must read once to get a deep understanding.

  1. http://dev.px4.io/en/setup/dev_env_linux.html#gazebo-with-ros
  2. http://dev.px4.io/en/simulation/gazebo.html
  3. http://wiki.ros.org/ROS/Tutorials/CreatingPackage
  4. http://dev.px4.io/en/simulation/ros_interface.html

Hoping it will be helpful for the reader. Have a good time.