TraveSim Adapters
0.1
Protobuf adapters for TraveSim project
|
Data structure to hold the state of a robot in the simulation. More...
#include "robot_state.hpp"
Public Member Functions | |
RobotState () | |
Construct a new Robot State object. More... | |
RobotState (Vector2D position, double angular_position, Vector2D velocity, double angular_velocity, bool is_yellow, int id) | |
Construct a new Robot State object. More... | |
RobotState (EntityState *entity_state, bool is_yellow, int id) | |
Construct a new Robot State object from EntityState object. More... | |
![]() | |
EntityState () | |
Construct a new Entity State object. More... | |
EntityState (Vector2D position, double angular_position, Vector2D velocity, double angular_velocity) | |
Construct a new Entity State object. More... | |
virtual | ~EntityState ()=default |
Public Attributes | |
bool | is_yellow |
Public attributes. More... | |
int | id |
![]() | |
Vector2D | position |
Position in meters. More... | |
Vector2D | velocity |
Velocity in m/s. More... | |
double | angular_position |
Angular position in radinans. More... | |
double | angular_velocity |
Angular velocity in rad/s. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &output, const RobotState &robot_state) |
Output stream operator overloading. More... | |
Data structure to hold the state of a robot in the simulation.
Definition at line 23 of file robot_state.hpp.
travesim::RobotState::RobotState | ( | ) |
Construct a new Robot State object.
Definition at line 20 of file robot_state.cpp.
travesim::RobotState::RobotState | ( | Vector2D | position, |
double | angular_position, | ||
Vector2D | velocity, | ||
double | angular_velocity, | ||
bool | is_yellow, | ||
int | id | ||
) |
Construct a new Robot State object.
position | Position in meters |
angular_position | Angular position in radinans |
velocity | Velocity in m/s |
angular_velocity | Angular velocity in rad/s |
is_yellow | Wheter the robot is from the yellow team or not |
id | Identification number |
Definition at line 23 of file robot_state.cpp.
travesim::RobotState::RobotState | ( | EntityState * | entity_state, |
bool | is_yellow, | ||
int | id | ||
) |
Construct a new Robot State object from EntityState object.
entity_state | Object to be promoted |
is_yellow | Wheter the robot is from the yellow team or not |
id | Identification number |
Definition at line 30 of file robot_state.cpp.
|
friend |
Output stream operator overloading.
Definition at line 39 of file robot_state.cpp.
int travesim::RobotState::id |
Definition at line 65 of file robot_state.hpp.
bool travesim::RobotState::is_yellow |
Public attributes.
Definition at line 64 of file robot_state.hpp.