Public Member Functions | Public Attributes
RobotState Class Reference

Defines a robot position in cartesian coordinates and an angle of rotation. More...

#include <state_data.h>

List of all members.

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

Detailed Description

Defines a robot position in cartesian coordinates and an angle of rotation.

Definition at line 14 of file state_data.h.


Constructor & Destructor Documentation

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.

Parameters:
x,y,thetaThe position and the orientation of a robot.

Definition at line 24 of file state_data.h.


Member Function Documentation

void RobotState::update ( double  d_x,
double  d_y,
double  d_theta 
) [inline]

Updates the state of a robot by the given deltas.

Parameters:
d_x,d_y,d_thetaDelta of the position of a robot.

Definition at line 30 of file state_data.h.


Member Data Documentation

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.


The documentation for this class was generated from the following file:


tiny_slam
Author(s):
autogenerated on Thu Jun 6 2019 17:44:58