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

Simple path feedback class. More...

#include <laeTraj.h>

Public Member Functions

 LaeSimplePathFeedback ()
 Default constructor.
 
 LaeSimplePathFeedback (const LaeSimplePathFeedback &src)
 Copy constructor.
 
 ~LaeSimplePathFeedback ()
 Destructor.
 
LaeSimplePathFeedback operator= (const LaeSimplePathFeedback &rhs)
 Assignment operator. More...
 
size_t getNumPoints ()
 Get the number of wheel points in trajectory. More...
 
LaeSimplePathoperator[] (const size_t i)
 Subscript operator to get reference to given trajectory. More...
 
void clear ()
 Clear data.
 

Protected Attributes

LaeSimplePath m_path [TrajNumOf]
 

Detailed Description

Simple path feedback class.

The feedback provides informaation about the last issued desired path and the current trajectory.

Definition at line 510 of file laeTraj.h.

Member Function Documentation

size_t laelaps::LaeSimplePathFeedback::getNumPoints ( )
inline

Get the number of wheel points in trajectory.

Returns
Number of points.

Definition at line 547 of file laeTraj.h.

References laelaps::TrajDesired, and laelaps::TrajNumOf.

548  {
549  return m_path[TrajDesired].getNumPoints();
550  }
size_t getNumPoints()
Get the number of wheel points in trajectory.
Definition: laeTraj.h:450
static const int TrajDesired
Trajectory feedback identifiers (and indices).
Definition: laeTraj.h:78
LaeSimplePathFeedback LaeSimplePathFeedback::operator= ( const LaeSimplePathFeedback rhs)

Assignment operator.

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

Definition at line 79 of file laeTraj.cxx.

81 {
82  for(int i = 0; i < TrajNumOf; ++i)
83  {
84  m_path[i] = rhs.m_path[i];
85  }
86  return *this;
87 }
static const int TrajNumOf
number of trajectories ids
Definition: laeTraj.h:81
LaeSimplePath & LaeSimplePathFeedback::operator[] ( const size_t  i)

Subscript operator to get reference to given trajectory.

Parameters
iTrajectory point Index.
Returns
Trajectory.

Definition at line 89 of file laeTraj.cxx.

90 {
91  return i < TrajNumOf? m_path[i]: m_path[TrajDesired];
92 }
static const int TrajDesired
Trajectory feedback identifiers (and indices).
Definition: laeTraj.h:78
static const int TrajNumOf
number of trajectories ids
Definition: laeTraj.h:81

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