![]() |
Laelaps
2.3.5
RoadNarrows Robotics Small Outdoor Mobile Robot Project
|
Robot fully-defined waypoint. More...
#include <laeTraj.h>
Public Member Functions | |
LaeWaypoint () | |
Default constructor. | |
LaeWaypoint (const LaePose &pose, const double fVelocity, const double fAcceleration, const std::string &strName="", const timespec_t &timeStart=StartImmediately) | |
Initialization constructor. More... | |
LaeWaypoint (const LaeWaypoint &src) | |
Copy constructor. More... | |
~LaeWaypoint () | |
Destructor. | |
LaeWaypoint | operator= (const LaeWaypoint &rhs) |
Assignment operator. More... | |
void | get (std::string &strName, timespec_t &timeStart, LaePose &pose, double &fVelocity, double &fAcceleration) |
Get waypoint data. More... | |
timespec_t | getStartTime () |
Get waypoint navigation start time. More... | |
void | setStartTime (timespec_t timeStart) |
Set waypoint navigation start time. More... | |
void | clear () |
Clear (reset) waypoint data. | |
Protected Attributes | |
std::string | m_strName |
waypoint name | |
timespec_t | m_timeStart |
time to start navigation | |
LaePose | m_pose |
robot pose at waypoint | |
double | m_fVelocity |
target velocity at waypoint (meters/s) | |
double | m_fAcceleration |
target acceleration (meters/s^2) | |
Robot fully-defined waypoint.
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.
Each waypoint has an associtated name identifier and start time.
laelaps::LaeWaypoint::LaeWaypoint | ( | const LaePose & | pose, |
const double | fVelocity, | ||
const double | fAcceleration, | ||
const std::string & | strName = "" , |
||
const timespec_t & | timeStart = StartImmediately |
||
) |
Initialization constructor.
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. |
LaeWaypoint::LaeWaypoint | ( | const LaeWaypoint & | src | ) |
Copy constructor.
src | Source object. |
Definition at line 126 of file laeTraj.cxx.
References m_fAcceleration, m_fVelocity, and m_timeStart.
void LaeWaypoint::get | ( | std::string & | strName, |
timespec_t & | timeStart, | ||
LaePose & | pose, | ||
double & | fVelocity, | ||
double & | fAcceleration | ||
) |
Get waypoint data.
[out] | strName | Waypoint name. |
[out] | timeStart | Waypoint navigation start time. |
[out] | pose | Robot 2D pose (x,y,theta). |
[out] | fVelocity | Target waypoint velocity (meters/second). |
[out] | fAcceleration | Target acceleration (meters/second^2). |
Definition at line 145 of file laeTraj.cxx.
References m_fAcceleration, m_fVelocity, m_pose, m_strName, and m_timeStart.
|
inline |
Get waypoint navigation start time.
Definition at line 650 of file laeTraj.h.
LaeWaypoint LaeWaypoint::operator= | ( | const LaeWaypoint & | rhs | ) |
Assignment operator.
rhs | Right hand side object. |
Definition at line 134 of file laeTraj.cxx.
References m_fAcceleration, m_fVelocity, m_pose, m_strName, and m_timeStart.
|
inline |
Set waypoint navigation start time.
timeStart | Time to start execution. Time is in seconds,nanoseconds from last Epoch. |
Definition at line 661 of file laeTraj.h.