The struct for requesting navigation requests for a sequence of waypoints.
Used in CWaypointsNavigator::navigateWaypoints(). Users can directly fill in the list of waypoints manipulating the public field waypoints
.
Definition at line 87 of file TWaypoint.h.
#include <mrpt/nav/reactive/TWaypoint.h>
Public Member Functions | |
void | clear () |
TWaypointSequence () | |
Ctor with default values. More... | |
std::string | getAsText () const |
Gets navigation params as a human-readable format. More... | |
void | getAsOpenglVisualization (mrpt::opengl::CSetOfObjects &obj, const mrpt::nav::TWaypointsRenderingParams ¶ms=mrpt::nav::TWaypointsRenderingParams()) const |
Renders the sequence of waypoints (previous contents of obj are cleared) More... | |
void | save (mrpt::utils::CConfigFileBase &c, const std::string &s) const |
Saves waypoints to a config file section. More... | |
void | load (const mrpt::utils::CConfigFileBase &c, const std::string &s) |
Loads waypoints to a config file section. More... | |
Public Attributes | |
std::vector< TWaypoint > | waypoints |
TWaypointSequence::TWaypointSequence | ( | ) |
Ctor with default values.
Definition at line 73 of file TWaypoint.cpp.
|
inline |
Definition at line 91 of file TWaypoint.h.
References waypoints.
Referenced by load().
void TWaypointSequence::getAsOpenglVisualization | ( | mrpt::opengl::CSetOfObjects & | obj, |
const mrpt::nav::TWaypointsRenderingParams & | params = mrpt::nav::TWaypointsRenderingParams() |
||
) | const |
Renders the sequence of waypoints (previous contents of obj
are cleared)
Definition at line 157 of file TWaypoint.cpp.
References mrpt::mrpt::format(), mrpt::nav::TWaypoint::INVALID_NUM, and waypoints.
std::string TWaypointSequence::getAsText | ( | ) | const |
Gets navigation params as a human-readable format.
Definition at line 75 of file TWaypoint.cpp.
References mrpt::mrpt::format(), and waypoints.
void TWaypointSequence::load | ( | const mrpt::utils::CConfigFileBase & | c, |
const std::string & | s | ||
) |
Loads waypoints to a config file section.
Definition at line 269 of file TWaypoint.cpp.
References clear(), mrpt::mrpt::format(), mrpt::nav::TWaypoint::INVALID_NUM, and waypoints.
void TWaypointSequence::save | ( | mrpt::utils::CConfigFileBase & | c, |
const std::string & | s | ||
) | const |
Saves waypoints to a config file section.
Definition at line 243 of file TWaypoint.cpp.
References mrpt::mrpt::format(), and waypoints.
std::vector<TWaypoint> mrpt::nav::TWaypointSequence::waypoints |
Definition at line 89 of file TWaypoint.h.
Referenced by clear(), getAsOpenglVisualization(), getAsText(), load(), mrpt::nav::CWaypointsNavigator::navigateWaypoints(), and save().
Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019 |