Kuon  1.1.3
RoadNarrows Robotics Large Outdoor Mobile Robot Project
kuon::KuonWheelTraj Class Reference

Wheel trajectory class. More...

#include <kuonTraj.h>

Public Member Functions

 KuonWheelTraj ()
 Default constructor.
 
 KuonWheelTraj (const std::string &strName, const double fPosition, const double fVelocity, const double fAcceleration)
 Initialization constructor. More...
 
 KuonWheelTraj (const KuonWheelTraj &src)
 Copy constructor. More...
 
 ~KuonWheelTraj ()
 Destructor.
 
KuonWheelTraj operator= (const KuonWheelTraj &rhs)
 Assignment operator. More...
 
void get (std::string &strName, double &fPosition, double &fVelocity, double &fAcceleration)
 Get wheel point data. More...
 

Protected Attributes

std::string m_strName
 wheel name
 
double m_fPosition
 wheel position (radians)
 
double m_fVelocity
 wheel velocity (% of maximum)
 
double m_fAcceleration
 wheel acceleration (not used)
 

Detailed Description

Wheel trajectory class.

A wheel trajectory specifies the goal position, velocity, and acceleration of one wheel.

Definition at line 80 of file kuonTraj.h.

Constructor & Destructor Documentation

kuon::KuonWheelTraj::KuonWheelTraj ( const std::string &  strName,
const double  fPosition,
const double  fVelocity,
const double  fAcceleration 
)
inline

Initialization constructor.

Parameters
strNameWheel name.
fPositionWheel position.
fVelocityWheel velocity.
fAccelerationWheel acceleration.

Definition at line 101 of file kuonTraj.h.

References m_fAcceleration, m_fPosition, m_fVelocity, and m_strName.

105  {
106  m_strName = strName;
107  m_fPosition = fPosition;
108  m_fVelocity = fVelocity;
109  m_fAcceleration = fAcceleration;
110  }
double m_fVelocity
wheel velocity (% of maximum)
Definition: kuonTraj.h:171
std::string m_strName
wheel name
Definition: kuonTraj.h:169
double m_fPosition
wheel position (radians)
Definition: kuonTraj.h:170
double m_fAcceleration
wheel acceleration (not used)
Definition: kuonTraj.h:172
kuon::KuonWheelTraj::KuonWheelTraj ( const KuonWheelTraj src)
inline

Copy constructor.

Parameters
srcSource object.

Definition at line 117 of file kuonTraj.h.

References m_fAcceleration, m_fPosition, m_fVelocity, and m_strName.

118  {
119  m_strName = src.m_strName;
120  m_fPosition = src.m_fPosition;
121  m_fVelocity = src.m_fVelocity;
122  m_fAcceleration = src.m_fAcceleration;
123  }
double m_fVelocity
wheel velocity (% of maximum)
Definition: kuonTraj.h:171
std::string m_strName
wheel name
Definition: kuonTraj.h:169
double m_fPosition
wheel position (radians)
Definition: kuonTraj.h:170
double m_fAcceleration
wheel acceleration (not used)
Definition: kuonTraj.h:172

Member Function Documentation

void kuon::KuonWheelTraj::get ( std::string &  strName,
double &  fPosition,
double &  fVelocity,
double &  fAcceleration 
)
inline

Get wheel point data.

Parameters
[out]strNameWheel name.
[out]fPositionWheel position.
[out]fVelocityWheel velocity.
[out]fAccelerationWheel acceleration.

Definition at line 157 of file kuonTraj.h.

References m_fAcceleration, m_fPosition, m_fVelocity, and m_strName.

161  {
162  strName = m_strName;
163  fPosition = m_fPosition;
164  fVelocity = m_fVelocity;
165  fAcceleration = m_fAcceleration;
166  }
double m_fVelocity
wheel velocity (% of maximum)
Definition: kuonTraj.h:171
std::string m_strName
wheel name
Definition: kuonTraj.h:169
double m_fPosition
wheel position (radians)
Definition: kuonTraj.h:170
double m_fAcceleration
wheel acceleration (not used)
Definition: kuonTraj.h:172
KuonWheelTraj kuon::KuonWheelTraj::operator= ( const KuonWheelTraj rhs)
inline

Assignment operator.

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

Definition at line 139 of file kuonTraj.h.

References m_fAcceleration, m_fPosition, m_fVelocity, and m_strName.

140  {
141  m_strName = rhs.m_strName;
142  m_fPosition = rhs.m_fPosition;
143  m_fVelocity = rhs.m_fVelocity;
144  m_fAcceleration = rhs.m_fAcceleration;
145 
146  return *this;
147  }
double m_fVelocity
wheel velocity (% of maximum)
Definition: kuonTraj.h:171
std::string m_strName
wheel name
Definition: kuonTraj.h:169
double m_fPosition
wheel position (radians)
Definition: kuonTraj.h:170
double m_fAcceleration
wheel acceleration (not used)
Definition: kuonTraj.h:172

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