rm_control
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
rm_common::CommandSenderBase< MsgType > Class Template Referenceabstract

#include <command_sender.h>

Inheritance diagram for rm_common::CommandSenderBase< MsgType >:

Public Member Functions

 CommandSenderBase (ros::NodeHandle &nh)
 
void setMode (int mode)
 
virtual void sendCommand (const ros::Time &time)
 
virtual void updateGameRobotStatus (const rm_msgs::GameRobotStatus data)
 
virtual void updateGameStatus (const rm_msgs::GameStatus data)
 
virtual void updateCapacityData (const rm_msgs::PowerManagementSampleAndStatusData data)
 
virtual void updatePowerHeatData (const rm_msgs::PowerHeatData data)
 
virtual void setZero ()=0
 
MsgType * getMsg ()
 

Protected Attributes

std::string topic_
 
uint32_t queue_size_
 
ros::Publisher pub_
 
MsgType msg_
 

Constructor & Destructor Documentation

◆ CommandSenderBase()

template<class MsgType >
rm_common::CommandSenderBase< MsgType >::CommandSenderBase ( ros::NodeHandle & nh)
inlineexplicit

Member Function Documentation

◆ getMsg()

template<class MsgType >
MsgType * rm_common::CommandSenderBase< MsgType >::getMsg ( )
inline

◆ sendCommand()

◆ setMode()

template<class MsgType >
void rm_common::CommandSenderBase< MsgType >::setMode ( int mode)
inline

◆ setZero()

◆ updateCapacityData()

template<class MsgType >
virtual void rm_common::CommandSenderBase< MsgType >::updateCapacityData ( const rm_msgs::PowerManagementSampleAndStatusData data)
inlinevirtual

◆ updateGameRobotStatus()

template<class MsgType >
virtual void rm_common::CommandSenderBase< MsgType >::updateGameRobotStatus ( const rm_msgs::GameRobotStatus data)
inlinevirtual

◆ updateGameStatus()

template<class MsgType >
virtual void rm_common::CommandSenderBase< MsgType >::updateGameStatus ( const rm_msgs::GameStatus data)
inlinevirtual

◆ updatePowerHeatData()

template<class MsgType >
virtual void rm_common::CommandSenderBase< MsgType >::updatePowerHeatData ( const rm_msgs::PowerHeatData data)
inlinevirtual

Member Data Documentation

◆ msg_

template<class MsgType >
MsgType rm_common::CommandSenderBase< MsgType >::msg_
protected

◆ pub_

template<class MsgType >
ros::Publisher rm_common::CommandSenderBase< MsgType >::pub_
protected

◆ queue_size_

template<class MsgType >
uint32_t rm_common::CommandSenderBase< MsgType >::queue_size_
protected

◆ topic_

template<class MsgType >
std::string rm_common::CommandSenderBase< MsgType >::topic_
protected

The documentation for this class was generated from the following file: