TraveSim Adapters
0.1
Protobuf adapters for TraveSim project
|
Data structure to hold the state of a entity in the simulation. More...
#include "entity_state.hpp"
Public Member Functions | |
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 | |
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 EntityState &entity_state) |
Output stream operator overloading. More... | |
Data structure to hold the state of a entity in the simulation.
Definition at line 56 of file entity_state.hpp.
travesim::EntityState::EntityState | ( | ) |
Construct a new Entity State object.
Definition at line 46 of file entity_state.cpp.
travesim::EntityState::EntityState | ( | Vector2D | position, |
double | angular_position, | ||
Vector2D | velocity, | ||
double | angular_velocity | ||
) |
Construct a new Entity State object.
position | Position in meters |
angular_position | Angular position in radinans |
velocity | Velocity in m/s |
angular_velocity | Angular velocity in rad/s |
Definition at line 49 of file entity_state.cpp.
References angular_position, angular_velocity, position, and velocity.
|
virtualdefault |
|
friend |
Output stream operator overloading.
Definition at line 56 of file entity_state.cpp.
double travesim::EntityState::angular_position |
Angular position in radinans.
Definition at line 98 of file entity_state.hpp.
double travesim::EntityState::angular_velocity |
Angular velocity in rad/s.
Definition at line 104 of file entity_state.hpp.
Vector2D travesim::EntityState::position |
Position in meters.
Definition at line 86 of file entity_state.hpp.
Vector2D travesim::EntityState::velocity |
Velocity in m/s.
Definition at line 92 of file entity_state.hpp.