![]() |
Kuon
1.1.3
RoadNarrows Robotics Large Outdoor Mobile Robot Project
|
Wheel trajectory point class. More...
#include <kuonTraj.h>
Public Member Functions | |
| KuonWheelTrajectoryPoint () | |
| Default constructor. | |
| KuonWheelTrajectoryPoint (const KuonWheelTrajectoryPoint &src) | |
| Copy constructor. | |
| ~KuonWheelTrajectoryPoint () | |
| Destructor. | |
| KuonWheelTrajectoryPoint | operator= (const KuonWheelTrajectoryPoint &rhs) |
| Assignment operator. More... | |
| uint_t | getTimeFromStart () |
| Get time from start. More... | |
| void | setTimeFromStart (uint_t uTimeFromStart) |
| Set time from start. More... | |
| size_t | getNumPoints () |
| Get the number of wheel points in trajectory. More... | |
| void | append (const std::string &strName, double fPosition, double fVelocity, double fAcceleration=0.0) |
| Append wheel point to end of trajectory. More... | |
| KuonWheelTraj & | operator[] (const size_t i) |
| Subscript operator to get reference to wheel point at the given index. More... | |
| void | clear () |
| Clear data. | |
Protected Attributes | |
| std::vector< KuonWheelTraj > | m_trajectory |
| trajectory | |
| uint_t | m_uTimeFromStart |
| duration | |
Wheel trajectory point class.
A wheel trajectory point (T0, T1, ..., Tn-1) specifies the goal position, velocity, and acceleration for a set of wheels (chain) Ti, i=0,n-1.
Definition at line 186 of file kuonTraj.h.
|
inline |
Append wheel point to end of trajectory.
| strName | Wheel name. |
| fPosition | Wheel position. |
| fVelocity | Wheel velocity. |
| fAcceleration | Wheel acceleration. |
Definition at line 270 of file kuonTraj.h.
|
inline |
Get the number of wheel points in trajectory.
Definition at line 257 of file kuonTraj.h.
|
inline |
Get time from start.
Definition at line 235 of file kuonTraj.h.
|
inline |
Assignment operator.
| rhs | Right hand side object. |
Definition at line 220 of file kuonTraj.h.
References m_trajectory, and m_uTimeFromStart.
|
inline |
Subscript operator to get reference to wheel point at the given index.
Big boy warranty. No out of bound checks are made.
| i | Index. |
Definition at line 289 of file kuonTraj.h.
|
inline |
Set time from start.
| uTimeFromStart | Duration. |
Definition at line 247 of file kuonTraj.h.