19 #include "packet.pb.h" 21 #ifndef __REPLACER_RECEIVER_H__ 22 #define __REPLACER_RECEIVER_H__ 43 ReplacerReceiver(
const std::string receiver_address,
const short receiver_port,
53 bool receive(std::queue<std::shared_ptr<EntityState>>* p_replament_queue);
105 #endif // __REPLACER_RECEIVER_H__ Entity state data structure.
Receiver data using UDP in unicast mode.
Robot state data structure.
EntityState ball_rplcmt_pb_to_entity_state(const fira_message::sim_to_ref::BallReplacement *p_ball_pb_msg)
Convert a BallReplacement protobuf message to a EntityState.
Data structure to hold the state of a robot in the simulation.
ReplacerReceiver(const std::string receiver_address, const short receiver_port, bool force_specific_source=false)
Construct a new ReplacerReceiver object.
Replacer receiver class with UDP and protobuf.
void force_specific_source(bool force_specific_source)
Set wheter to enable any source or source specific multicast. True for specific source,...
bool receive(std::queue< std::shared_ptr< EntityState >> *p_replament_queue)
Receive the replacement commands.
Data structure to hold the state of a entity in the simulation.
void reset(void)
Reset the receiver.
RobotState robot_rplcmt_pb_to_robot_state(const fira_message::sim_to_ref::RobotReplacement *p_robot_pb_msg)
Convert a RobotReplacement protobuf message to a RobotState.
std::unique_ptr< udp::UnicastReceiver > unicast_receiver
void set_receiver_endpoint(const std::string receiver_address, const short receiver_port)
Set the receiver endpoint.