Hekateros  3.4.3
RoadNarrows Robotics Robot Arm Project
hekateros::HekJointTrajectoryFeedback Class Reference

Joint trajectory feedback class. More...

#include <hekTraj.h>

Public Member Functions

 HekJointTrajectoryFeedback ()
 Default constructor.
 
 HekJointTrajectoryFeedback (const HekJointTrajectoryFeedback &src)
 Copy constructor.
 
 ~HekJointTrajectoryFeedback ()
 Destructor.
 
HekJointTrajectoryFeedback operator= (const HekJointTrajectoryFeedback &rhs)
 Assignment operator. More...
 
uint_t getTimeFromStart ()
 Get time from start of desired trajectory. More...
 
size_t getNumPoints ()
 Get the number of joint points in trajectory. More...
 
HekJointTrajectoryPointoperator[] (const size_t i)
 Subscript operator to get reference to given trajectory. More...
 
void clear ()
 Clear data.
 

Static Public Attributes

static const int TRAJ_DESIRED = 0
 desired trajectory
 
static const int TRAJ_ACTUAL = 1
 actual trajectory
 
static const int TRAJ_NUMOF = 2
 number of trajectories
 

Protected Attributes

HekJointTrajectoryPoint m_trajectory [TRAJ_NUMOF]
 

Detailed Description

Joint trajectory feedback class.

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

Definition at line 313 of file hekTraj.h.

Member Function Documentation

size_t hekateros::HekJointTrajectoryFeedback::getNumPoints ( )
inline

Get the number of joint points in trajectory.

Returns
Number of points.

Definition at line 376 of file hekTraj.h.

377  {
378  return m_trajectory[TRAJ_DESIRED].getNumPoints();
379  }
static const int TRAJ_DESIRED
desired trajectory
Definition: hekTraj.h:316
size_t getNumPoints()
Get the number of joint points in trajectory.
Definition: hekTraj.h:251
uint_t hekateros::HekJointTrajectoryFeedback::getTimeFromStart ( )
inline

Get time from start of desired trajectory.

Returns
Duration.

Definition at line 366 of file hekTraj.h.

367  {
368  return m_trajectory[TRAJ_DESIRED].getTimeFromStart();
369  }
uint_t getTimeFromStart()
Get time from start.
Definition: hekTraj.h:229
static const int TRAJ_DESIRED
desired trajectory
Definition: hekTraj.h:316
HekJointTrajectoryFeedback hekateros::HekJointTrajectoryFeedback::operator= ( const HekJointTrajectoryFeedback rhs)
inline

Assignment operator.

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

Definition at line 352 of file hekTraj.h.

353  {
354  for(int i = 0; i< TRAJ_NUMOF; ++i)
355  {
356  m_trajectory[i] = rhs.m_trajectory[i];
357  }
358  return *this;
359  }
std::vector< HekJointTraj > m_trajectory
trajectory
Definition: hekTraj.h:298
static const int TRAJ_NUMOF
number of trajectories
Definition: hekTraj.h:318
HekJointTrajectoryPoint& hekateros::HekJointTrajectoryFeedback::operator[] ( const size_t  i)
inline

Subscript operator to get reference to given trajectory.

Parameters
iTrajectory point Index.
Returns
Trajectory.

Definition at line 388 of file hekTraj.h.

389  {
390  return i < TRAJ_NUMOF? m_trajectory[i]: m_trajectory[TRAJ_DESIRED];
391  }
static const int TRAJ_NUMOF
number of trajectories
Definition: hekTraj.h:318
static const int TRAJ_DESIRED
desired trajectory
Definition: hekTraj.h:316

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