Communication - Razorbotz/RMC-Code-20-21 GitHub Wiki
File: RMC-Code-20-21/ROS2/skinny/src/communication/src/communication_node.cpp
The communication node handles the passing of information between the robot and the GUI, as well as connects the IP Protocol with the broadcast IP function. It is responsible for handling user input.
Subscribers and Publishers
Functions
void insert(float value, uint8_t* array)
//Description of insert
void insert(int value, uint8_t* array)
//Description of insert
float parseFloat(uint8_t* array)
//Description
int parseInt(uint8_t* array)
//Description
void powerCallback(const messages::msg::Power::SharedPtr power)
//Description
void talon1Callback(const messages::msg::TalonOut::SharedPtr talonOut)
//Description
void talon2Callback(const messages::msg::TalonOut::SharedPtr talonOut)
//Description, maybe note about combining this and the first one into a more object-oriented function
void victor1Callback(const messages::msg::VictorOut::SharedPtr victorOut)
//Description
void victor2Callback(const messages::msg::VictorOut::SharedPtr victorOut)
//Description
void victor3Callback(const messages::msg::VictorOut::SharedPtr victorOut)
//Description, same object-oriented comment as with the Talon callbacks
void driveStateCallback(const std_msgs::msg::Bool::SharedPtr state)
//Description
void sendRobotState()
//Description
std::string getAddressString(int family, std::string interfaceName)
//Description
void printAddresses()
//Description
void reboot()
//Description
void broadcastIP()
//Description
QUESTION: How do we document the main function in this file?