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

Simple path feedback class. More...

#include <laeTraj.h>

Public Member Functions

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

Protected Attributes

LaePath 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 821 of file laeTraj.h.

Member Function Documentation

size_t laelaps::LaePathFeedback::getNumPoints ( )
inline

Get the number of wheel points in trajectory.

Returns
Number of points.

Definition at line 858 of file laeTraj.h.

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

859  {
860  return m_path[TrajDesired].getNumPoints();
861  }
size_t getNumPoints()
Get the number of wheel points in trajectory.
Definition: laeTraj.h:761
static const int TrajDesired
Trajectory feedback identifiers (and indices).
Definition: laeTraj.h:78
LaePathFeedback LaePathFeedback::operator= ( const LaePathFeedback rhs)

Assignment operator.

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

Definition at line 206 of file laeTraj.cxx.

References laelaps::TrajNumOf.

207 {
208  for(int i = 0; i < TrajNumOf; ++i)
209  {
210  m_path[i] = rhs.m_path[i];
211  }
212  return *this;
213 }
static const int TrajNumOf
number of trajectories ids
Definition: laeTraj.h:81
LaePath & LaePathFeedback::operator[] ( const size_t  i)

Subscript operator to get reference to given trajectory.

Parameters
iTrajectory point Index.
Returns
Trajectory.

Definition at line 215 of file laeTraj.cxx.

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

216 {
217  return i < TrajNumOf? m_path[i]: m_path[TrajDesired];
218 }
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: