UnderwaterCurrentPlugin
class gazebo::UnderwaterCurrentPlugin
¶
class gazebo::UnderwaterCurrentPlugin : public WorldPlugin
Class for the underwater current plugin TODO: Add option to make the underwater current also a function of depth to comply with DNV.
Summary¶
Members | Descriptions |
---|---|
public UnderwaterCurrentPlugin () |
Class constructor. |
public virtual ~UnderwaterCurrentPlugin () |
Class destructor. |
public virtual void Load (physics::WorldPtr _world,sdf::ElementPtr _sdf) |
|
public virtual void Init () |
|
public void Update (const common::UpdateInfo & _info) |
Update the simulation state. |
protected event::ConnectionPtr updateConnection |
Update event. |
protected physics::WorldPtr world |
Pointer to world. |
protected sdf::ElementPtr sdf |
Pointer to sdf. |
protected bool hasSurface |
True if the sea surface is present. |
protected transport::NodePtr node |
Pointer to a node for communication. |
protected std::map< std::string, transport::PublisherPtr > publishers |
Map of publishers. |
protected std::string currentVelocityTopic |
Current velocity topic. |
protected std::string ns |
Namespace for topics and services. |
protected GaussMarkovProcess
currentVelModel |
Gauss-Markov process instance for the current velocity. |
protected GaussMarkovProcess
currentHorzAngleModel |
Gauss-Markov process instance for horizontal angle model. |
protected GaussMarkovProcess
currentVertAngleModel |
Gauss-Markov process instance for vertical angle model. |
protected common::Time lastUpdate |
Last update time stamp. |
protected ignition::math::Vector3d currentVelocity |
Current linear velocity vector. |
protected void PublishCurrentVelocity () |
Publish current velocity and the pose of its frame. |
Members¶
public
UnderwaterCurrentPlugin
()
¶
Class constructor.
public virtual
~UnderwaterCurrentPlugin
()
¶
Class destructor.
public virtual void
Load
(physics::WorldPtr _world,sdf::ElementPtr _sdf)
¶
public virtual void
Init
()
¶
public void
Update
(const common::UpdateInfo & _info)
¶
Update the simulation state.
Parameters¶
_info
Information used in the update event.
protected event::ConnectionPtr
updateConnection
¶
Update event.
protected physics::WorldPtr
world
¶
Pointer to world.
protected sdf::ElementPtr
sdf
¶
Pointer to sdf.
protected bool
hasSurface
¶
True if the sea surface is present.
protected transport::NodePtr
node
¶
Pointer to a node for communication.
protected std::map< std::string, transport::PublisherPtr >
publishers
¶
Map of publishers.
protected std::string
currentVelocityTopic
¶
Current velocity topic.
protected std::string
ns
¶
Namespace for topics and services.
protected
GaussMarkovProcess
currentVelModel
¶
Gauss-Markov process instance for the current velocity.
protected
GaussMarkovProcess
currentHorzAngleModel
¶
Gauss-Markov process instance for horizontal angle model.
protected
GaussMarkovProcess
currentVertAngleModel
¶
Gauss-Markov process instance for vertical angle model.
protected common::Time
lastUpdate
¶
Last update time stamp.
protected ignition::math::Vector3d
currentVelocity
¶
Current linear velocity vector.
protected void
PublishCurrentVelocity
()
¶
Publish current velocity and the pose of its frame.