Tetrapod Project
SubAndPub Class Reference

Public Member Functions

 SubAndPub ()
 
void callback (const sensor_msgs::JointState &_msg)
 
 SubAndPub ()
 
void callback (const sensor_msgs::JointState &rx_msg)
 
void sendMessage ()
 

Private Attributes

ros::NodeHandle nh
 
ros::Publisher pub
 
ros::Subscriber sub
 
sensor_msgs::JointState tx_msg
 
double send_time = 0.0
 
int NUMBER_OF_MOTORS = 3
 

Detailed Description

Definition at line 4 of file rx_node.cpp.

Constructor & Destructor Documentation

◆ SubAndPub() [1/2]

SubAndPub::SubAndPub ( )
inline

Definition at line 7 of file rx_node.cpp.

◆ SubAndPub() [2/2]

SubAndPub::SubAndPub ( )
inline

Definition at line 7 of file tx_node.cpp.

Member Function Documentation

◆ callback() [1/2]

void SubAndPub::callback ( const sensor_msgs::JointState &  _msg)
inline

Definition at line 14 of file rx_node.cpp.

◆ callback() [2/2]

void SubAndPub::callback ( const sensor_msgs::JointState &  rx_msg)
inline

Definition at line 23 of file tx_node.cpp.

◆ sendMessage()

void SubAndPub::sendMessage ( )
inline

Definition at line 32 of file tx_node.cpp.

Member Data Documentation

◆ nh

ros::NodeHandle SubAndPub::nh
private

Definition at line 20 of file rx_node.cpp.

◆ pub

ros::Publisher SubAndPub::pub
private

Definition at line 21 of file rx_node.cpp.

◆ sub

ros::Subscriber SubAndPub::sub
private

Definition at line 22 of file rx_node.cpp.

◆ tx_msg

sensor_msgs::JointState SubAndPub::tx_msg
private

Definition at line 46 of file tx_node.cpp.

◆ send_time

double SubAndPub::send_time = 0.0
private

Definition at line 47 of file tx_node.cpp.

◆ NUMBER_OF_MOTORS

int SubAndPub::NUMBER_OF_MOTORS = 3
private

Definition at line 48 of file tx_node.cpp.


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