15 #include <google/protobuf/util/json_util.h> 16 #include <google/protobuf/text_format.h> 25 const short multicast_port = 30001;
26 const std::string multicast_address_str =
"239.255.0.1";
35 field_state.
blue_team[2].angular_position = 3.14;
41 google::protobuf::util::JsonPrintOptions options;
42 options.add_whitespace =
true;
43 options.always_print_primitive_fields =
true;
45 google::protobuf::util::MessageToJsonString(env_data, &buffer, options);
EntityState ball
Field entities.
Data structure to hold the field state.
std::vector< EntityState > yellow_team
Vector2D velocity
Velocity in m/s.
double x
Public attributes.
Vision data sender with UDP and protobuf.
Vector2D position
Position in meters.
Vision sender class with UDP and protobuf.
static fira_message::sim_to_ref::Environment field_state_to_env_pb_msg(FieldState *p_field_state)
Convert a FieldState object to a Environment protobuf message object.
std::vector< EntityState > blue_team