FinPlugin
class gazebo::FinPlugin
¶
class gazebo::FinPlugin : public ModelPlugin
Summary¶
Members | Descriptions |
---|---|
public FinPlugin () |
Constructor. |
public virtual ~FinPlugin () |
Destructor. |
public virtual void Load (physics::ModelPtr _model,sdf::ElementPtr _sdf) |
|
public virtual void Init () |
|
public void OnUpdate (const common::UpdateInfo & _info) |
Update the simulation state. |
protected std::shared_ptr< Dynamics > dynamics |
Fin dynamic model. |
protected std::shared_ptr< LiftDrag > liftdrag |
Lift&Drag model. |
protected event::ConnectionPtr updateConnection |
Update event. |
protected transport::NodePtr node |
Gazebo node. |
protected physics::JointPtr joint |
The fin joint. |
protected physics::LinkPtr link |
The fin link. |
protected transport::SubscriberPtr commandSubscriber |
Subscriber to the reference signal topic. |
protected transport::PublisherPtr anglePublisher |
Publisher to the output thrust topic. |
protected ignition::math::Vector3d finForce |
Force component calculated from the lift and drag module. |
protected double inputCommand |
Latest input command. |
protected int finID |
Fin ID. |
protected std::string topicPrefix |
Topic prefix. |
protected double angle |
Latest fin angle in [rad]. |
protected common::Time angleStamp |
Time stamp of latest thrust force. |
protected transport::SubscriberPtr currentSubscriber |
Subcriber to current message. |
protected ignition::math::Vector3d currentVelocity |
Current velocity vector read from topic. |
protected void UpdateInput ( ConstDoublePtr & _msg) |
Callback for the input topic subscriber. |
protected void UpdateCurrentVelocity (ConstVector3dPtr & _msg) |
Reads current velocity topic. |
Members¶
public
FinPlugin
()
¶
Constructor.
public virtual
~FinPlugin
()
¶
Destructor.
public virtual void
Load
(physics::ModelPtr _model,sdf::ElementPtr _sdf)
¶
public virtual void
Init
()
¶
public void
OnUpdate
(const common::UpdateInfo & _info)
¶
Update the simulation state.
Parameters¶
_info
Information used in the update event.
protected std::shared_ptr<
Dynamics
>
dynamics
¶
Fin dynamic model.
protected std::shared_ptr<
LiftDrag
>
liftdrag
¶
Lift&Drag model.
protected event::ConnectionPtr
updateConnection
¶
Update event.
protected transport::NodePtr
node
¶
Gazebo node.
protected physics::JointPtr
joint
¶
The fin joint.
protected physics::LinkPtr
link
¶
The fin link.
protected transport::SubscriberPtr
commandSubscriber
¶
Subscriber to the reference signal topic.
protected transport::PublisherPtr
anglePublisher
¶
Publisher to the output thrust topic.
protected ignition::math::Vector3d
finForce
¶
Force component calculated from the lift and drag module.
protected double
inputCommand
¶
Latest input command.
protected int
finID
¶
Fin ID.
protected std::string
topicPrefix
¶
Topic prefix.
protected double
angle
¶
Latest fin angle in [rad].
protected common::Time
angleStamp
¶
Time stamp of latest thrust force.
protected transport::SubscriberPtr
currentSubscriber
¶
Subcriber to current message.
protected ignition::math::Vector3d
currentVelocity
¶
Current velocity vector read from topic.
protected void
UpdateInput
(
ConstDoublePtr
& _msg)
¶
Callback for the input topic subscriber.
protected void
UpdateCurrentVelocity
(ConstVector3dPtr & _msg)
¶
Reads current velocity topic.