-
Notifications
You must be signed in to change notification settings - Fork 41
HydrodynamicsPlugin
A Gazebo model plugin to manage buoyancy and hydrodynamic force calculations for a buoyant object.
Add the SDF for the plugin to the <model>
element of your model.
<plugin name="hydrodynamics" filename="libHydrodynamicsPlugin.so">
<!-- Wave Model -->
<wave_model>ocean_waves</wave_model>
<!-- Hydrodynamics -->
<damping_on>true</damping_on>
<viscous_drag_on>true</viscous_drag_on>
<pressure_drag_on>true</pressure_drag_on>
<!-- Linear and Angular Damping -->
<cDampL1>1.0E-6</cDampL1>
<cDampL2>1.0E-6</cDampL2>
<cDampR1>1.0E-6</cDampR1>
<cDampR2>1.0E-6</cDampR2>
<!-- 'Pressure' Drag -->
<cPDrag1>1.0E+2</cPDrag1>
<cPDrag2>1.0E+2</cPDrag2>
<fPDrag>0.4</fPDrag>
<cSDrag1>1.0E+2</cSDrag1>
<cSDrag2>1.0E+2</cSDrag2>
<fSDrag>0.4</fSDrag>
<vRDrag>1.0</vRDrag>
<!-- Markers -->
<markers>
<update_rate>30</update_rate>
<water_patch>false</water_patch>
<waterline>false</waterline>
<underwater_surface>false</underwater_surface>
</markers>
</plugin>
-
~/hydrodynamics
(gazebo::msgs::Param_V
)
-
/marker
(ignition::msgs::Marker
)
-
<wave_model>
(string
, default:""
)
Name of the wave model referencing the pluginWavefieldModelPlugin
. -
<damping_on>
(bool
, default:true
)
Set tofalse
to disable damping forces. -
<viscous_drag_on>
(bool
, default:true
)
Set to false to disable viscous drag forces. -
<pressure_drag_on>
(bool
, default:true
)
Set tofalse
to disable pressure drag forces. -
<cDampL1>
(double
, default:1.0E-6
)
Linear damping coefficient for linear motion. -
<cDampL2>
(double
, default:1.0E-6
)
Quadratic damping coefficient for linear motion. -
<cDampR1>
(double
, default:1.0E-6
)
Linear damping coefficient for angular motion. -
<cDampR2>
(double
, default:1.0E-6
)
Quadratic damping coefficient for angular motion. -
<cPDrag1>
(double
, default:1.0E+2
)
Linear coefficient for positive pressure drag. -
<cPDrag2>
(double
, default:1.0E+2
)
Quadratic coefficient for positive pressure drag. -
<fPDrag>
(double
, default:0.4
)
Exponential coefficient for positive pressure drag. -
<cSDrag1>
(double
, default:1.0E+2
)
Linear coefficient for negative pressure drag. -
<cSDrag2>
(double
, default:1.0E+2
)
Quadratic coefficient for negative pressure drag. -
<fSDrag>
(double
, default:0.4
)
Exponential coefficient for negative pressure drag. -
<vRDrag>
(double
, default:1.0
)
Reference speed for pressure drag. -
<update_rate>
(double
, default:30.0
)
Update rate for publishing visual markers. -
<water_patch>
(bool
, default:false
)
Set true to display water patch visual markers. -
<waterline>
(bool
, default:false
)
Set true to display water line visual markers. -
<underwater_surface>
(bool
, default:false
)
Set true to display underwater surface visual markers.