Defines a robot position in cartesian coordinates and an angle of rotation. More...
#include <state_data.h>
Public Member Functions | |
RobotState () | |
Sets a robot in (0,0) oriented as zero angle. | |
RobotState (double x, double y, double theta) | |
void | update (double d_x, double d_y, double d_theta) |
Public Attributes | |
double | theta |
The position of robot. | |
double | x |
double | y |
Defines a robot position in cartesian coordinates and an angle of rotation.
Definition at line 14 of file state_data.h.
RobotState::RobotState | ( | ) | [inline] |
Sets a robot in (0,0) oriented as zero angle.
Definition at line 18 of file state_data.h.
RobotState::RobotState | ( | double | x, |
double | y, | ||
double | theta | ||
) | [inline] |
Initializes a state of a robot with given parameters.
x,y,theta | The position and the orientation of a robot. |
Definition at line 24 of file state_data.h.
void RobotState::update | ( | double | d_x, |
double | d_y, | ||
double | d_theta | ||
) | [inline] |
Updates the state of a robot by the given deltas.
d_x,d_y,d_theta | Delta of the position of a robot. |
Definition at line 30 of file state_data.h.
double RobotState::theta |
The position of robot.
Definition at line 38 of file state_data.h.
double RobotState::x |
Definition at line 38 of file state_data.h.
double RobotState::y |
Definition at line 38 of file state_data.h.