A Gazebo plugin to simulate underwater vehicles and visualize with UWsim.
The package builds two Gazebo plugins:
-
freefloating_gazebo_fluid (world plugin) simulates buoyancy and viscous force from water
-
freefloating_gazebo_control (model plugin) opens topics for wrench and joint states, in order to control the considered robots
Also builds an external PID controler: pid_control.
These PID's allow position or velocity control of the vehicle body and joints. Depth control is also possible for the body, where z-depth is controlled in position while other axis are controlled in velocity.
Subscribes to setpoint and states topics, and publishes on the wrench and torque topics that are subscribed to by the freefloating_gazebo_control plugin.
Private parameters body_control
and joint_control
allow setting the default mode (body: position / velocity / depth, joint: position / velocity).
The examples can be downloaded from the freefloating_gazebo_demo package.
Please use the following reference when citing this work: