17 #include "packet.pb.h" 19 #ifndef __TEAM_RECEIVER_H__ 20 #define __TEAM_RECEIVER_H__ 100 #endif // __TEAM_RECEIVER_H__ void force_specific_source(bool force_specific_source)
Set wheter to enable any source or source specific multicast. True for specific source,...
Receiver data using UDP in unicast mode.
void set_receiver_endpoint(const std::string receiver_address, const short receiver_port)
Set the receiver endpoint.
Team command data structure.
Data structure to hold the command for a team.
TeamReceiver(const std::string receiver_address, const short receiver_port, bool is_yellow, bool force_specific_source=false, TeamsFormation teams_formation=TeamsFormation::THREE_ROBOTS_PER_TEAM)
Construct a new TeamReceiver object.
Team control data receiver class with UDP and protobuf.
std::unique_ptr< udp::UnicastReceiver > unicast_receiver
TeamsFormation
Formation of the teams.
void packet_pb_msg_to_team_command(fira_message::sim_to_ref::Packet *p_packet, TeamCommand *p_team_cmd)
Update a TeamCommand object from a Packet protobuf message.
void reset(void)
Reset the receiver.
std::unique_ptr< TeamCommand > last_team_cmd
bool receive(TeamCommand *p_team_cmd)
Receive the command from a team.