Laelaps  2.3.5
RoadNarrows Robotics Small Outdoor Mobile Robot Project
laelaps::LaePose Class Reference

Laelaps 2D pose class. More...

#include <laeTraj.h>

Public Member Functions

 LaePose ()
 Default constructor.
 
 LaePose (double x, double y, double theta=0.0)
 Initialization constructor. More...
 
 LaePose (const LaePose &src)
 Copy constructor. More...
 
virtual ~LaePose ()
 Destructor.
 
LaePose operator= (const LaePose &rhs)
 Assignment operator. More...
 
void clear ()
 

Public Attributes

double m_x
 robot absolute x position (meters)
 
double m_y
 robot absolute y position (meters)
 
double m_theta
 robot orientation (radians)
 

Detailed Description

Laelaps 2D pose class.

Pose = (x, y, theta)

Definition at line 170 of file laeTraj.h.

Constructor & Destructor Documentation

laelaps::LaePose::LaePose ( double  x,
double  y,
double  theta = 0.0 
)
inline

Initialization constructor.

Parameters
xRobot absolute x position (meters).
yRobot absolute y position (meters).
thetaRobot orientation (radians).

Definition at line 192 of file laeTraj.h.

193  {
194  m_x = x;
195  m_y = y;
196  m_theta = theta;
197  }
double m_y
robot absolute y position (meters)
Definition: laeTraj.h:174
double m_theta
robot orientation (radians)
Definition: laeTraj.h:175
double m_x
robot absolute x position (meters)
Definition: laeTraj.h:173
laelaps::LaePose::LaePose ( const LaePose src)
inline

Copy constructor.

Parameters
srcSource object.

Definition at line 204 of file laeTraj.h.

References m_theta, m_x, and m_y.

205  {
206  m_x = src.m_x;
207  m_y = src.m_y;
208  m_theta = src.m_theta;
209  }
double m_y
robot absolute y position (meters)
Definition: laeTraj.h:174
double m_theta
robot orientation (radians)
Definition: laeTraj.h:175
double m_x
robot absolute x position (meters)
Definition: laeTraj.h:173

Member Function Documentation

LaePose laelaps::LaePose::operator= ( const LaePose rhs)
inline

Assignment operator.

Parameters
rhsRight hand side object.
Returns
Returns copy of this.

Definition at line 225 of file laeTraj.h.

References m_theta, m_x, and m_y.

226  {
227  m_x = rhs.m_x;
228  m_y = rhs.m_y;
229  m_theta = rhs.m_theta;
230 
231  return *this;
232  }
double m_y
robot absolute y position (meters)
Definition: laeTraj.h:174
double m_theta
robot orientation (radians)
Definition: laeTraj.h:175
double m_x
robot absolute x position (meters)
Definition: laeTraj.h:173

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