MRPT
2.0.1
|
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 96 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::config::CConfigFileBase &c, const std::string &s) const |
Saves waypoints to a config file section. More... | |
void | load (const mrpt::config::CConfigFileBase &c, const std::string &s) |
Loads waypoints to a config file section. More... | |
Public Attributes | |
std::vector< TWaypoint > | waypoints |
|
default |
Ctor with default values.
|
inline |
Definition at line 100 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 145 of file TWaypoint.cpp.
References mrpt::opengl::CSetOfObjects::clear(), mrpt::opengl::CArrow::Create(), mrpt::opengl::CDisk::Create(), mrpt::format(), mrpt::opengl::CSetOfObjects::insert(), mrpt::nav::TWaypoint::INVALID_NUM, params, and waypoints.
std::string TWaypointSequence::getAsText | ( | ) | const |
Gets navigation params as a human-readable format.
Definition at line 77 of file TWaypoint.cpp.
References mrpt::format(), and waypoints.
void TWaypointSequence::load | ( | const mrpt::config::CConfigFileBase & | c, |
const std::string & | s | ||
) |
Loads waypoints to a config file section.
Definition at line 252 of file TWaypoint.cpp.
References clear(), mrpt::format(), mrpt::nav::TWaypoint::INVALID_NUM, mrpt::config::CConfigFileBase::read_bool(), mrpt::config::CConfigFileBase::read_double(), mrpt::config::CConfigFileBase::read_int(), mrpt::config::CConfigFileBase::read_string(), and waypoints.
void TWaypointSequence::save | ( | mrpt::config::CConfigFileBase & | c, |
const std::string & | s | ||
) | const |
Saves waypoints to a config file section.
Definition at line 225 of file TWaypoint.cpp.
References mrpt::format(), waypoints, and mrpt::config::CConfigFileBase::write().
std::vector<TWaypoint> mrpt::nav::TWaypointSequence::waypoints |
Definition at line 98 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 2.0.1 Git: 0fef1a6d7 Fri Apr 3 23:00:21 2020 +0200 at vie abr 3 23:20:28 CEST 2020 |