TraveSim Adapters
0.1
Protobuf adapters for TraveSim project
|
Data structure to hold the field state. More...
#include "field_state.hpp"
Public Member Functions | |
FieldState (TeamsFormation teams_formation=TeamsFormation::THREE_ROBOTS_PER_TEAM) | |
Construct a new Field State object. More... | |
Public Attributes | |
uint | time_step |
uint8_t | robots_per_team |
EntityState | ball |
Field entities. More... | |
std::vector< EntityState > | yellow_team |
std::vector< EntityState > | blue_team |
Friends | |
std::ostream & | operator<< (std::ostream &output, const FieldState &field_state) |
Output stream operator overloading. More... | |
Data structure to hold the field state.
Definition at line 25 of file field_state.hpp.
travesim::FieldState::FieldState | ( | TeamsFormation | teams_formation = TeamsFormation::THREE_ROBOTS_PER_TEAM | ) |
Construct a new Field State object.
teams_formation | Number of robots per team, default is 3 |
Definition at line 19 of file field_state.cpp.
References blue_team, robots_per_team, and yellow_team.
|
friend |
EntityState travesim::FieldState::ball |
Field entities.
Definition at line 48 of file field_state.hpp.
std::vector<EntityState> travesim::FieldState::blue_team |
Definition at line 51 of file field_state.hpp.
uint8_t travesim::FieldState::robots_per_team |
Definition at line 42 of file field_state.hpp.
uint travesim::FieldState::time_step |
ODE time step
Definition at line 40 of file field_state.hpp.
std::vector<EntityState> travesim::FieldState::yellow_team |
Definition at line 50 of file field_state.hpp.