52 #include <sys/types.h> 59 #include "rnr/rnrconfig.h" 292 m_fAcceleration = 0.0;
303 const double fVelocity,
304 const double fAcceleration)
307 m_fVelocity = fVelocity;
308 m_fAcceleration = fAcceleration;
355 double &fAcceleration)
358 fVelocity = m_fVelocity;
359 fAcceleration = m_fAcceleration;
442 m_timeStart = timeStart;
452 return m_path.size();
464 double fAcceleration)
467 m_path.push_back(pt);
602 const double fVelocity,
603 const double fAcceleration,
604 const std::string &strName=
"",
605 const timespec_t &timeStart=StartImmediately);
639 void get(std::string &strName,
643 double &fAcceleration);
663 m_timeStart = timeStart;
753 m_timeStart = timeStart;
763 return m_path.size();
775 void append(
const LaePose &pose,
776 const double fVelocity,
777 const double fAcceleration,
778 const std::string &strName=
"",
779 const timespec_t &timeStart=StartImmediately);
870 LaePath &operator[](
const size_t i);
884 #endif // _LAE_TRAJ_H std::map< std::string, double > LaeMapDutyCycle
Duty cycle trajectory type.
void setStartTime(timespec_t &timeStart)
Set navigation start time.
timespec_t getStartTime()
Get navigation start time.
~LaeSimplePathFeedback()
Destructor.
timespec_t getStartTime()
Get waypoint navigation start time.
size_t getNumPoints()
Get the number of wheel points in trajectory.
LaePose(const LaePose &src)
Copy constructor.
Robot fully-defined waypoint.
virtual ~LaePoint()
Destructor.
LaeSimplePath operator=(const LaeSimplePath &rhs)
Assignment operator.
LaePose m_pose
robot pose at waypoint
LaeSimplePathFeedback()
Default constructor.
size_t getNumPoints()
Get the number of wheel points in trajectory.
static const int TrajDesired
Trajectory feedback identifiers (and indices).
double m_fAcceleration
robot target acceleration (meters/s^2)
LaeSimpleWaypoint()
Default constructor.
virtual ~LaePose()
Destructor.
~LaeWaypoint()
Destructor.
double m_y
robot absolute y position (meters)
double m_theta
robot orientation (radians)
void setStartTime(timespec_t timeStart)
Set waypoint navigation start time.
LaeSimplePath()
Default constructor.
std::string m_strName
waypoint name
LaeSimpleWaypoint operator=(const LaeSimpleWaypoint &rhs)
Assignment operator.
LaeSimpleWaypoint & operator[](const size_t i)
Subscript operator to get reference to wheel point at the given index.
static const timespec_t StartImmediately
Start navigation immediately.
std::vector< LaeWaypoint > m_path
path
timespec_t m_timeStart
time to start navigation
static const int TrajNumOf
number of trajectories ids
Simple path feedback class.
LaeSimpleWaypoint(const LaeSimpleWaypoint &src)
Copy constructor.
LaePose operator=(const LaePose &rhs)
Assignment operator.
LaePoint(double x, double y, double theta=0.0)
Initialization constructor.
timespec_t m_timeStart
start time
size_t getNumPoints()
Get the number of wheel points in trajectory.
double m_x
robot absolute x position (meters)
double m_fVelocity
robot target velocity (meters/second)
struct timespec timespec_t
typedef'ed timespec structure
The <b><i>Laelaps</i></b> namespace encapsulates all <b><i>Laelaps</i></b> related constructs...
LaePose(double x, double y, double theta=0.0)
Initialization constructor.
~LaePathFeedback()
Destructor.
void append(LaePoint &ptDist, double fVelocity, double fAcceleration)
Append wheel point to end of trajectory.
LaePoint()
Default constructor.
Laelaps common utilities.
Simple path feedback class.
LaePath operator=(const LaePath &rhs)
Assignment operator.
double m_fAcceleration
target acceleration (meters/s^2)
Robot simple path waypoint.
LaePath(const LaePath &src)
Copy constructor.
timespec_t getStartTime()
Get navigation start time.
timespec_t m_timeStart
start time
void setStartTime(timespec_t timeStart)
Set navigation start time.
double m_fVelocity
target velocity at waypoint (meters/s)
~LaeSimplePath()
Destructor.
static const int TrajError
errors in trajectory
LaePath()
Default constructor.
static const int TrajActual
actual trajectory
~LaeSimpleWaypoint()
Destructor.
LaePose()
Default constructor.
LaePathFeedback()
Default constructor.
LaeWaypoint & operator[](const size_t i)
Subscript operator to get reference to wheel point at the given index.
size_t getNumPoints()
Get the number of wheel points in trajectory.
LaeSimpleWaypoint(const LaePoint &ptDist, const double fVelocity, const double fAcceleration)
Initialization constructor.
LaePoint m_ptDist
robot goal x,y distance (meters, meters)
std::map< std::string, double > LaeMapVelocity
Velocity trajectory type.
std::vector< LaeSimpleWaypoint > m_path
path
LaePoint operator=(const LaePoint &rhs)
Assignment operator.
LaeSimplePath(const LaeSimplePath &src)
Copy constructor.
Top-level package include file.
LaePoint(const LaePoint &src)
Copy constructor.