![]() |
Laelaps
2.3.5
RoadNarrows Robotics Small Outdoor Mobile Robot Project
|
Robot path class. More...
#include <laeTraj.h>
Public Member Functions | |
LaePath () | |
Default constructor. | |
LaePath (const LaePath &src) | |
Copy constructor. | |
~LaePath () | |
Destructor. | |
LaePath | operator= (const LaePath &rhs) |
Assignment operator. More... | |
timespec_t | getStartTime () |
Get navigation start time. More... | |
void | setStartTime (timespec_t timeStart) |
Set navigation start time. More... | |
size_t | getNumPoints () |
Get the number of wheel points in trajectory. More... | |
void | append (const LaePose &pose, const double fVelocity, const double fAcceleration, const std::string &strName="", const timespec_t &timeStart=StartImmediately) |
Append waypoint to end of path. More... | |
LaeWaypoint & | operator[] (const size_t i) |
Subscript operator to get reference to wheel point at the given index. More... | |
void | clear () |
Clear data. | |
Protected Attributes | |
timespec_t | m_timeStart |
start time | |
std::vector< LaeWaypoint > | m_path |
path | |
Robot path class.
A waypoint specifies the goal pose (absolute x,y,theta position), plus the target velocity with the given acceleration at the destination. The waypoint is used in path navigation.
A sequence of waypoints points Wp_i, i=0,n define a path.
void LaePath::append | ( | const LaePose & | pose, |
const double | fVelocity, | ||
const double | fAcceleration, | ||
const std::string & | strName = "" , |
||
const timespec_t & | timeStart = StartImmediately |
||
) |
Append waypoint to end of path.
Pose | Robot 2D pose (x,y,theta). |
fVelocity | Robot target velocity at waypoint (meters/second). |
fAcceleration | Robot target acceleration (meters/second^2). |
strName | Name of waypoint |
timeStart | Start time to navigate to this waypoint. |
Definition at line 172 of file laeTraj.cxx.
|
inline |
|
inline |
Assignment operator.
rhs | Right hand side object. |
Definition at line 727 of file laeTraj.h.
References m_path, and m_timeStart.
|
inline |
|
inline |