ThrusterROSPlugin
class uuv_simulator_ros::ThrusterROSPlugin
¶
class uuv_simulator_ros::ThrusterROSPlugin : public ThrusterPlugin
Summary¶
Members | Descriptions |
---|---|
public ThrusterROSPlugin () |
Constrcutor. |
public ~ThrusterROSPlugin () |
Destructor. |
public void Load (gazebo::physics::ModelPtr _parent,sdf::ElementPtr _sdf) |
Load module and read parameters from SDF. |
public void RosPublishStates () |
Publish thruster state via ROS. |
public void SetThrustReference (const uuv_gazebo_ros_plugins_msgs::FloatStamped::ConstPtr & _msg) |
Set new set point (desired thrust [N]) for thruster. |
public gazebo::common::Time GetRosPublishPeriod () |
Return the ROS publish period. |
public void SetRosPublishRate (double _hz) |
Set the ROS publish frequency (Hz). |
public virtual void Init () |
Initialize Module. |
public virtual void Reset () |
Reset Module. |
public bool SetThrustForceEfficiency (uuv_gazebo_ros_plugins_msgs::SetThrusterEfficiency::Request & _req,uuv_gazebo_ros_plugins_msgs::SetThrusterEfficiency::Response & _res) |
Set the thrust efficiency factor. |
public bool GetThrustForceEfficiency (uuv_gazebo_ros_plugins_msgs::GetThrusterEfficiency::Request & _req,uuv_gazebo_ros_plugins_msgs::GetThrusterEfficiency::Response & _res) |
Get the thrust efficiency factor. |
public bool SetDynamicStateEfficiency (uuv_gazebo_ros_plugins_msgs::SetThrusterEfficiency::Request & _req,uuv_gazebo_ros_plugins_msgs::SetThrusterEfficiency::Response & _res) |
Set the dynamic state efficiency factor. |
public bool GetDynamicStateEfficiency (uuv_gazebo_ros_plugins_msgs::GetThrusterEfficiency::Request & _req,uuv_gazebo_ros_plugins_msgs::GetThrusterEfficiency::Response & _res) |
Get the dynamic state efficiency factor. |
public bool SetThrusterState (uuv_gazebo_ros_plugins_msgs::SetThrusterState::Request & _req,uuv_gazebo_ros_plugins_msgs::SetThrusterState::Response & _res) |
Turn thruster on/off. |
public bool GetThrusterState (uuv_gazebo_ros_plugins_msgs::GetThrusterState::Request & _req,uuv_gazebo_ros_plugins_msgs::GetThrusterState::Response & _res) |
Get thruster state. |
public bool GetThrusterConversionFcn (uuv_gazebo_ros_plugins_msgs::GetThrusterConversionFcn::Request & _req,uuv_gazebo_ros_plugins_msgs::GetThrusterConversionFcn::Response & _res) |
Get thruster conversion function parameters. |
Members¶
public
ThrusterROSPlugin
()
¶
Constrcutor.
public
~ThrusterROSPlugin
()
¶
Destructor.
public void
Load
(gazebo::physics::ModelPtr _parent,sdf::ElementPtr _sdf)
¶
Load module and read parameters from SDF.
public void
RosPublishStates
()
¶
Publish thruster state via ROS.
public void
SetThrustReference
(const uuv_gazebo_ros_plugins_msgs::FloatStamped::ConstPtr & _msg)
¶
Set new set point (desired thrust [N]) for thruster.
public gazebo::common::Time
GetRosPublishPeriod
()
¶
Return the ROS publish period.
public void
SetRosPublishRate
(double _hz)
¶
Set the ROS publish frequency (Hz).
public virtual void
Init
()
¶
Initialize Module.
public virtual void
Reset
()
¶
Reset Module.
public bool
SetThrustForceEfficiency
(uuv_gazebo_ros_plugins_msgs::SetThrusterEfficiency::Request & _req,uuv_gazebo_ros_plugins_msgs::SetThrusterEfficiency::Response & _res)
¶
Set the thrust efficiency factor.
public bool
GetThrustForceEfficiency
(uuv_gazebo_ros_plugins_msgs::GetThrusterEfficiency::Request & _req,uuv_gazebo_ros_plugins_msgs::GetThrusterEfficiency::Response & _res)
¶
Get the thrust efficiency factor.
public bool
SetDynamicStateEfficiency
(uuv_gazebo_ros_plugins_msgs::SetThrusterEfficiency::Request & _req,uuv_gazebo_ros_plugins_msgs::SetThrusterEfficiency::Response & _res)
¶
Set the dynamic state efficiency factor.
public bool
GetDynamicStateEfficiency
(uuv_gazebo_ros_plugins_msgs::GetThrusterEfficiency::Request & _req,uuv_gazebo_ros_plugins_msgs::GetThrusterEfficiency::Response & _res)
¶
Get the dynamic state efficiency factor.
public bool
SetThrusterState
(uuv_gazebo_ros_plugins_msgs::SetThrusterState::Request & _req,uuv_gazebo_ros_plugins_msgs::SetThrusterState::Response & _res)
¶
Turn thruster on/off.
public bool
GetThrusterState
(uuv_gazebo_ros_plugins_msgs::GetThrusterState::Request & _req,uuv_gazebo_ros_plugins_msgs::GetThrusterState::Response & _res)
¶
Get thruster state.
public bool
GetThrusterConversionFcn
(uuv_gazebo_ros_plugins_msgs::GetThrusterConversionFcn::Request & _req,uuv_gazebo_ros_plugins_msgs::GetThrusterConversionFcn::Response & _res)
¶
Get thruster conversion function parameters.