97 double breadcrumb_dist) ;
< An ordered vector of path poses.
double trg_v
Desired linear velocity at the target point, ie: the robot should program its velocities such as afte...
float ptg_dist
PTGs distance.
double max_w
Maximum velocities along this path segment.
bool getBreadcrumbPoint(mrpt::nav::TPath::TPathData &out_next_point, mrpt::math::TPose2D &robotPose, mrpt::math::TPose2D &m_target_pose, double breadcrumb_dist)
Get the next point to follow for the reactive method, the idea is reactively navigate to the target t...
double lengthPsm() const
Return the path length.
This class contains methods for path data structures and handling.
bool isApproximate
the path is approximate if the target is not reached
double lengthEuclidean() const
Return the path length.
mrpt::math::TPose2D p
Coordinates are "global".
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
int ind_ptg
The PTG index is needed in order to get the correct "trajectory" path.
int getClosestPathIndex(mrpt::math::TPose2D &robotPose) const
Given a robot pose, get the closest path index.
bool save_to_text_file(const std::string &file) const
Save the path in a file.