24 bool is_yellow,
int id) :
25 EntityState(position, angular_position, velocity, angular_velocity) {
32 entity_state->angular_position,
33 entity_state->velocity,
34 entity_state->angular_velocity) {
42 output <<
"TEAM YELLOW: " << robot_state.
is_yellow << std::endl;
43 output <<
"ROBOT ID: " << robot_state.
id << std::endl;
45 output <<
"POSITION: ";
46 output << robot_state.
position <<
" | ";
49 output <<
"VELOCITY: ";
50 output << robot_state.
velocity <<
" | ";
RobotState()
Construct a new Robot State object.
double angular_velocity
Angular velocity in rad/s.
Vector2D velocity
Velocity in m/s.
Common constants and types for the data structures.
Data structure to hold a two dimensional vector.
Robot state data structure.
Data structure to hold the state of a robot in the simulation.
double angular_position
Angular position in radinans.
Vector2D position
Position in meters.
#define PRINTING_DECIMAL_PRECISION
std::ostream & operator<<(std::ostream &output, const ReplacerConfigurer &repl_conf)
bool is_yellow
Public attributes.
Data structure to hold the state of a entity in the simulation.
#define PRINTING_MIN_WIDTH
Printing output configuration constants.