ThrusterPlugin
class gazebo::ThrusterPlugin
¶
class gazebo::ThrusterPlugin : public ModelPlugin
Class for the thruster plugin.
Summary¶
Members | Descriptions |
---|---|
public ThrusterPlugin () |
Constructor. |
public virtual ~ThrusterPlugin () |
Destructor. |
public virtual void Load (physics::ModelPtr _model,sdf::ElementPtr _sdf) |
|
public virtual void Init () |
|
public virtual void Reset () |
Custom plugin reset behavior. |
public void Update (const common::UpdateInfo & _info) |
Update the simulation state. |
protected std::shared_ptr< Dynamics > thrusterDynamics |
Thruster dynamic model. |
protected std::shared_ptr< ConversionFunction > conversionFunction |
Thruster conversion function. |
protected event::ConnectionPtr updateConnection |
Update event. |
protected physics::LinkPtr thrusterLink |
Pointer to the thruster link. |
protected transport::NodePtr node |
Gazebo node. |
protected transport::SubscriberPtr commandSubscriber |
Subscriber to the reference signal topic. |
protected transport::PublisherPtr thrustTopicPublisher |
Publisher to the output thrust topic. |
protected double inputCommand |
Input command, typically desired angular velocity of the rotor. |
protected double thrustForce |
Latest thrust force in [N]. |
protected common::Time thrustForceStamp |
Time stamp of latest thrust force. |
protected physics::JointPtr joint |
Optional: The rotor joint, used for visualization. |
protected double clampMin |
: Optional: Commands less than this value will be clamped. |
protected double clampMax |
: Optional: Commands greater than this value will be clamped. |
protected double thrustMin |
: Optional: Minimum thrust force output |
protected double thrustMax |
: Optional: Maximum thrust force output |
protected int thrusterID |
Thruster ID, used to generated topic names automatically. |
protected std::string topicPrefix |
Thruster topics prefix. |
protected double gain |
: Optional: Gain factor: Desired angular velocity = command * gain |
protected bool isOn |
Optional: Flag to indicate if the thruster is turned on or off. |
protected double thrustEfficiency |
Optional: Output thrust efficiency factor of the thruster. |
protected double propellerEfficiency |
Optional: Propeller angular velocity efficiency term. |
protected ignition::math::Vector3d thrusterAxis |
The axis about which the thruster rotates. |
protected void UpdateInput ( ConstDoublePtr & _msg) |
Callback for the input topic subscriber. |
Members¶
public
ThrusterPlugin
()
¶
Constructor.
public virtual
~ThrusterPlugin
()
¶
Destructor.
public virtual void
Load
(physics::ModelPtr _model,sdf::ElementPtr _sdf)
¶
public virtual void
Init
()
¶
public virtual void
Reset
()
¶
Custom plugin reset behavior.
public void
Update
(const common::UpdateInfo & _info)
¶
Update the simulation state.
Parameters¶
_info
Information used in the update event.
protected std::shared_ptr<
Dynamics
>
thrusterDynamics
¶
Thruster dynamic model.
protected std::shared_ptr<
ConversionFunction
>
conversionFunction
¶
Thruster conversion function.
protected event::ConnectionPtr
updateConnection
¶
Update event.
protected physics::LinkPtr
thrusterLink
¶
Pointer to the thruster link.
protected transport::NodePtr
node
¶
Gazebo node.
protected transport::SubscriberPtr
commandSubscriber
¶
Subscriber to the reference signal topic.
protected transport::PublisherPtr
thrustTopicPublisher
¶
Publisher to the output thrust topic.
protected double
inputCommand
¶
Input command, typically desired angular velocity of the rotor.
protected double
thrustForce
¶
Latest thrust force in [N].
protected common::Time
thrustForceStamp
¶
Time stamp of latest thrust force.
protected physics::JointPtr
joint
¶
Optional: The rotor joint, used for visualization.
protected double
clampMin
¶
- Optional: Commands less than this value will be clamped.
protected double
clampMax
¶
- Optional: Commands greater than this value will be clamped.
protected double
thrustMin
¶
- Optional: Minimum thrust force output
protected double
thrustMax
¶
- Optional: Maximum thrust force output
protected int
thrusterID
¶
Thruster ID, used to generated topic names automatically.
protected std::string
topicPrefix
¶
Thruster topics prefix.
protected double
gain
¶
- Optional: Gain factor: Desired angular velocity = command * gain
protected bool
isOn
¶
Optional: Flag to indicate if the thruster is turned on or off.
protected double
thrustEfficiency
¶
Optional: Output thrust efficiency factor of the thruster.
protected double
propellerEfficiency
¶
Optional: Propeller angular velocity efficiency term.
protected ignition::math::Vector3d
thrusterAxis
¶
The axis about which the thruster rotates.
protected void
UpdateInput
(
ConstDoublePtr
& _msg)
¶
Callback for the input topic subscriber.