Skip to content

LinearBatteryROSPlugin

class gazebo::LinearBatteryROSPlugin

class gazebo::LinearBatteryROSPlugin
  : public LinearBatteryPlugin
Summary
Members Descriptions
publicLinearBatteryROSPlugin() Constructor.
public virtual~LinearBatteryROSPlugin() Destructor.
public voidLoad(physics::ModelPtr _parent,sdf::ElementPtr _sdf) Load module and read parameters from SDF.
public virtual voidInit() Initialize Module.
public virtual voidReset() Reset Module.
protected boost::scoped_ptr< ros::NodeHandle >rosNode Pointer to this ROS node's handle.
protected std::stringrobotNamespace Namespace for this ROS node.
protected sensor_msgs::BatteryStatebatteryStateMsg Battery state ROS message.
protected ros::TimerupdateTimer Connection for callbacks on update world.
protected voidPublishBatteryState() Publish battery states.
Members
publicLinearBatteryROSPlugin()

Constructor.

public virtual~LinearBatteryROSPlugin()

Destructor.

public voidLoad(physics::ModelPtr _parent,sdf::ElementPtr _sdf)

Load module and read parameters from SDF.

public virtual voidInit()

Initialize Module.

public virtual voidReset()

Reset Module.

protected boost::scoped_ptr< ros::NodeHandle >rosNode

Pointer to this ROS node's handle.

protected std::stringrobotNamespace

Namespace for this ROS node.

protected sensor_msgs::BatteryStatebatteryStateMsg

Battery state ROS message.

protected ros::TimerupdateTimer

Connection for callbacks on update world.

protected voidPublishBatteryState()

Publish battery states.