TraveSim Adapters
0.1
Protobuf adapters for TraveSim project
|
#include "teams_sender.hpp"
Public Member Functions | |
TeamsSender (TeamsFormation teams_formation=TeamsFormation::THREE_ROBOTS_PER_TEAM) | |
Construct a new Teams Sender object. More... | |
void | send (TeamCommand *yellow_team_command, TeamCommand *blue_team_command) |
Send the stored commands to Gazebo controllers. More... | |
Private Attributes | |
std::vector< robot_command_pub_t > | yellow_pubs |
Yellow team ROS publishers. More... | |
std::vector< robot_command_pub_t > | blue_pubs |
Blue team ROS publishers. More... | |
uint8_t | robots_per_team |
Definition at line 37 of file teams_sender.hpp.
travesim::ros_side::TeamsSender::TeamsSender | ( | TeamsFormation | teams_formation = TeamsFormation::THREE_ROBOTS_PER_TEAM | ) |
Construct a new Teams Sender object.
teams_formation | Number of robots per team, default is 3 |
Definition at line 39 of file teams_sender.cpp.
References blue_pubs, BUFFER_SIZE, ROBOT_WHEEL_TOPIC, robots_per_team, and yellow_pubs.
void travesim::ros_side::TeamsSender::send | ( | TeamCommand * | yellow_team_command, |
TeamCommand * | blue_team_command | ||
) |
Send the stored commands to Gazebo controllers.
Definition at line 58 of file teams_sender.cpp.
References blue_pubs, travesim::TeamCommand::robot_command, robots_per_team, and yellow_pubs.
|
private |
Blue team ROS publishers.
Definition at line 49 of file teams_sender.hpp.
|
private |
Definition at line 51 of file teams_sender.hpp.
|
private |
Yellow team ROS publishers.
Definition at line 43 of file teams_sender.hpp.