Gazebo model plugin class for underwater objects.
More...
#include <UnderwaterObjectPlugin.hh>
Gazebo model plugin class for underwater objects.
Definition at line 35 of file UnderwaterObjectPlugin.hh.
gazebo::UnderwaterObjectPlugin::UnderwaterObjectPlugin |
( |
| ) |
|
gazebo::UnderwaterObjectPlugin::~UnderwaterObjectPlugin |
( |
| ) |
|
|
virtual |
void gazebo::UnderwaterObjectPlugin::Connect |
( |
| ) |
|
|
protectedvirtual |
void gazebo::UnderwaterObjectPlugin::GenWrenchMsg |
( |
ignition::math::Vector3d |
_force, |
|
|
ignition::math::Vector3d |
_torque, |
|
|
gazebo::msgs::WrenchStamped & |
_output |
|
) |
| |
|
protectedvirtual |
Returns the wrench message for debugging topics.
- Parameters
-
[in] | _force | Force vector |
[in] | _torque | Torque vector |
[in] | _output | Stamped wrench message to be updated |
Definition at line 307 of file UnderwaterObjectPlugin.cc.
void gazebo::UnderwaterObjectPlugin::Init |
( |
| ) |
|
|
virtual |
Sets the topics used for publishing the intermediate data during the simulation.
- Parameters
-
[in] | _link | Pointer to the link |
[in] | _hydro | Pointer to the hydrodynamic model |
Definition at line 158 of file UnderwaterObjectPlugin.cc.
void gazebo::UnderwaterObjectPlugin::Load |
( |
gazebo::physics::ModelPtr |
_model, |
|
|
sdf::ElementPtr |
_sdf |
|
) |
| |
|
virtual |
void gazebo::UnderwaterObjectPlugin::PublishCurrentVelocityMarker |
( |
| ) |
|
|
protectedvirtual |
void gazebo::UnderwaterObjectPlugin::PublishHydrodynamicWrenches |
( |
gazebo::physics::LinkPtr |
_link | ) |
|
|
protectedvirtual |
Publish hydrodynamic wrenches.
- Parameters
-
[in] | _link | Pointer to the link where the force information will be extracted from |
Definition at line 273 of file UnderwaterObjectPlugin.cc.
void gazebo::UnderwaterObjectPlugin::PublishIsSubmerged |
( |
| ) |
|
|
protectedvirtual |
void gazebo::UnderwaterObjectPlugin::PublishRestoringForce |
( |
gazebo::physics::LinkPtr |
_link | ) |
|
|
protectedvirtual |
Publish restoring force.
- Parameters
-
[in] | _link | Pointer to the link where the force information will be extracted from |
Definition at line 255 of file UnderwaterObjectPlugin.cc.
void gazebo::UnderwaterObjectPlugin::Update |
( |
const gazebo::common::UpdateInfo & |
_info | ) |
|
|
virtual |
Update the simulation state.
- Parameters
-
[in] | _info | Information used in the update event. |
Definition at line 189 of file UnderwaterObjectPlugin.cc.
void gazebo::UnderwaterObjectPlugin::UpdateFlowVelocity |
( |
ConstVector3dPtr & |
_msg | ) |
|
|
protected |
std::string gazebo::UnderwaterObjectPlugin::baseLinkName |
|
protected |
gazebo::transport::SubscriberPtr gazebo::UnderwaterObjectPlugin::flowSubscriber |
|
protected |
ignition::math::Vector3d gazebo::UnderwaterObjectPlugin::flowVelocity |
|
protected |
std::map<std::string, gazebo::transport::PublisherPtr> gazebo::UnderwaterObjectPlugin::hydroPub |
|
protected |
Publishers of hydrodynamic and hydrostatic forces and torques in the case the debug flag is on.
Definition at line 124 of file UnderwaterObjectPlugin.hh.
gazebo::physics::ModelPtr gazebo::UnderwaterObjectPlugin::model |
|
protected |
gazebo::transport::NodePtr gazebo::UnderwaterObjectPlugin::node |
|
protected |
gazebo::event::ConnectionPtr gazebo::UnderwaterObjectPlugin::updateConnection |
|
protected |
bool gazebo::UnderwaterObjectPlugin::useGlobalCurrent |
|
protected |
Flag to use the global current velocity or the individually assigned current velocity.
Definition at line 120 of file UnderwaterObjectPlugin.hh.
gazebo::physics::WorldPtr gazebo::UnderwaterObjectPlugin::world |
|
protected |
The documentation for this class was generated from the following files: