Skip to content

Instantly share code, notes, and snippets.

@patrickelectric
Last active July 6, 2022 17:20
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patrickelectric/60a1d300e0afadf85066cc5d8e3d51ff to your computer and use it in GitHub Desktop.
Save patrickelectric/60a1d300e0afadf85066cc5d8e3d51ff to your computer and use it in GitHub Desktop.
BlueRov2 SITL ardupilot

BlueRov2 SITL

This is a simple guide to execute BlueRov2 model in Gazebo running ArduPilot SITL.

  1. Install freebuoyancy_gazebo plugin for buoyancy simulation.

  2. Install ardupilot_gazebo/add_link plugin for ardupilot-gazebo communication. add_link is a branch that provides actuation over sdf links, after the git clone, it's necessary to run git checkout add_link.

  3. Run BlueRov2 Gazebo model

    1. Download bluerov_ros_playground

      git clone https://github.com/patrickelectric/bluerov_ros_playground
    2. Run Gazebo model

      cd bluerov_ros_playground
      source gazebo.sh
      gazebo worlds/underwater.world -u
      # Start the simulation
  4. Execute ArduPilot SITL

    sim_vehicle.py -f gazebo-bluerov2 -I 0 -j4 -D -L RATBeach --console

The console will start to display the output if the connection was successful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment