Main MRPT website > C++ reference for MRPT 1.5.9
List of all members | Public Member Functions | Public Attributes
mrpt::nav::TWaypointSequence Struct Reference

Detailed Description

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 79 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 &params=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< TWaypointwaypoints
 

Constructor & Destructor Documentation

◆ TWaypointSequence()

TWaypointSequence::TWaypointSequence ( )

Ctor with default values.

Definition at line 75 of file TWaypoint.cpp.

Member Function Documentation

◆ clear()

void mrpt::nav::TWaypointSequence::clear ( )
inline

Definition at line 83 of file TWaypoint.h.

Referenced by load().

◆ getAsOpenglVisualization()

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 150 of file TWaypoint.cpp.

References mrpt::opengl::CDisk::Create(), mrpt::opengl::CArrow::Create(), mrpt::mrpt::format(), mrpt::nav::TWaypoint::INVALID_NUM, and waypoints.

◆ getAsText()

std::string TWaypointSequence::getAsText ( ) const

Gets navigation params as a human-readable format.

Definition at line 80 of file TWaypoint.cpp.

References mrpt::mrpt::format(), and waypoints.

◆ load()

void TWaypointSequence::load ( const mrpt::utils::CConfigFileBase c,
const std::string s 
)

Loads waypoints to a config file section.

Definition at line 234 of file TWaypoint.cpp.

References clear(), mrpt::mrpt::format(), mrpt::nav::TWaypoint::INVALID_NUM, and waypoints.

◆ save()

void TWaypointSequence::save ( mrpt::utils::CConfigFileBase c,
const std::string s 
) const

Saves waypoints to a config file section.

Definition at line 213 of file TWaypoint.cpp.

References mrpt::mrpt::format(), and waypoints.

Member Data Documentation

◆ waypoints

std::vector<TWaypoint> mrpt::nav::TWaypointSequence::waypoints



Page generated by Doxygen 1.8.14 for MRPT 1.5.9 Git: 690a4699f Wed Apr 15 19:29:53 2020 +0200 at miƩ abr 15 19:30:12 CEST 2020