rm_control
Loading...
Searching...
No Matches
rm_referee::InteractiveSender Class Reference

#include <interactive_data.h>

Inheritance diagram for rm_referee::InteractiveSender:
Collaboration diagram for rm_referee::InteractiveSender:

Public Member Functions

 InteractiveSender (XmlRpc::XmlRpcValue &rpc_value, Base &base, std::deque< Graph > *graph_queue=nullptr, std::deque< Graph > *character_queue=nullptr)
 
void sendInteractiveData (int data_cmd_id, int receiver_id, unsigned char data)
 
void sendRadarInteractiveData (const rm_msgs::ClientMapReceiveData::ConstPtr &data)
 
void sendMapSentryData (const rm_referee::MapSentryData &data)
 
void sendSentryCmdData (const rm_msgs::SentryCmdConstPtr &data)
 
void sendRadarCmdData (const rm_msgs::RadarInfoConstPtr &data)
 
virtual bool needSendInteractiveData ()
 
- Public Member Functions inherited from rm_referee::UiBase
 UiBase (XmlRpc::XmlRpcValue &rpc_value, Base &base, std::deque< Graph > *graph_queue=nullptr, std::deque< Graph > *character_queue=nullptr)
 
 ~UiBase ()=default
 
virtual void add ()
 
virtual void update ()
 
virtual void updateForQueue ()
 
virtual void erasure ()
 
virtual void addForQueue (int add_times=1)
 
virtual void updateManualCmdData (const rm_msgs::ManualToReferee::ConstPtr data)
 
virtual void updateManualCmdData (const rm_msgs::ManualToReferee::ConstPtr data, const ros::Time &last_get_data_time)
 
virtual void sendUi (const ros::Time &time)
 
void sendCharacter (const ros::Time &time, Graph *graph)
 
void sendSingleGraph (const ros::Time &time, Graph *graph)
 
void sendSerial (const ros::Time &time, int data_len)
 
void clearTxBuffer ()
 
virtual void display (bool check_repeat=true)
 
virtual void displayTwice (bool check_repeat=true)
 
virtual void display (const ros::Time &time)
 
void display (const ros::Time &time, bool state, bool once=false)
 
void pack (uint8_t *tx_buffer, uint8_t *data, int cmd_id, int len) const
 

Public Attributes

ros::Time last_send_time_
 
- Public Attributes inherited from rm_referee::UiBase
uint8_t tx_buffer_ [127]
 
int tx_len_
 

Additional Inherited Members

- Protected Attributes inherited from rm_referee::UiBase
Basebase_
 
Graphgraph_
 
std::deque< Graph > * graph_queue_
 
std::deque< Graph > * character_queue_
 
tf2_ros::Buffer tf_buffer_
 
tf2_ros::TransformListener tf_listener_
 
ros::Time last_send_
 
ros::Duration delay_ = ros::Duration(0.)
 
const int k_frame_length_ = 128
 
const int k_header_length_ = 5
 
const int k_cmd_id_length_ = 2
 
const int k_tail_length_ = 2
 
- Static Protected Attributes inherited from rm_referee::UiBase
static int id_
 

Constructor & Destructor Documentation

◆ InteractiveSender()

rm_referee::InteractiveSender::InteractiveSender ( XmlRpc::XmlRpcValue & rpc_value,
Base & base,
std::deque< Graph > * graph_queue = nullptr,
std::deque< Graph > * character_queue = nullptr )
inlineexplicit

Member Function Documentation

◆ needSendInteractiveData()

bool rm_referee::InteractiveSender::needSendInteractiveData ( )
virtual

◆ sendInteractiveData()

void rm_referee::InteractiveSender::sendInteractiveData ( int data_cmd_id,
int receiver_id,
unsigned char data )

◆ sendMapSentryData()

void rm_referee::InteractiveSender::sendMapSentryData ( const rm_referee::MapSentryData & data)

◆ sendRadarCmdData()

void rm_referee::InteractiveSender::sendRadarCmdData ( const rm_msgs::RadarInfoConstPtr & data)

◆ sendRadarInteractiveData()

void rm_referee::InteractiveSender::sendRadarInteractiveData ( const rm_msgs::ClientMapReceiveData::ConstPtr & data)

◆ sendSentryCmdData()

void rm_referee::InteractiveSender::sendSentryCmdData ( const rm_msgs::SentryCmdConstPtr & data)

Member Data Documentation

◆ last_send_time_

ros::Time rm_referee::InteractiveSender::last_send_time_

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