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

Detailed Description

The struct for querying the status of waypoints navigation.

Used in CWaypointsNavigator::getWaypointNavStatus().

Definition at line 111 of file TWaypoint.h.

#include <mrpt/nav/reactive/TWaypoint.h>

Public Member Functions

 TWaypointStatusSequence ()
 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...
 

Public Attributes

std::vector< TWaypointStatuswaypoints
 Waypoints parameters and status (reached, skipped, etc.) More...
 
mrpt::system::TTimeStamp timestamp_nav_started
 Timestamp of user navigation command. More...
 
bool final_goal_reached
 Whether the final waypoint has been reached successfuly. More...
 
int waypoint_index_current_goal
 Index in waypoints of the waypoint the navigator is currently trying to reach. More...
 
mrpt::math::TPose2D last_robot_pose
 Robot pose at last time step (has INVALID_NUM fields upon initialization) More...
 

Constructor & Destructor Documentation

◆ TWaypointStatusSequence()

TWaypointStatusSequence::TWaypointStatusSequence ( )

Ctor with default values.

Definition at line 114 of file TWaypoint.cpp.

Member Function Documentation

◆ getAsOpenglVisualization()

void TWaypointStatusSequence::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 179 of file TWaypoint.cpp.

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

◆ getAsText()

std::string TWaypointStatusSequence::getAsText ( ) const

Gets navigation params as a human-readable format.

Definition at line 123 of file TWaypoint.cpp.

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

Member Data Documentation

◆ final_goal_reached

bool mrpt::nav::TWaypointStatusSequence::final_goal_reached

Whether the final waypoint has been reached successfuly.

Definition at line 115 of file TWaypoint.h.

Referenced by getAsText(), and mrpt::nav::CWaypointsNavigator::waypoints_navigationStep().

◆ last_robot_pose

mrpt::math::TPose2D mrpt::nav::TWaypointStatusSequence::last_robot_pose

Robot pose at last time step (has INVALID_NUM fields upon initialization)

Definition at line 121 of file TWaypoint.h.

Referenced by mrpt::nav::CWaypointsNavigator::waypoints_navigationStep().

◆ timestamp_nav_started

mrpt::system::TTimeStamp mrpt::nav::TWaypointStatusSequence::timestamp_nav_started

Timestamp of user navigation command.

Definition at line 114 of file TWaypoint.h.

Referenced by mrpt::nav::CWaypointsNavigator::navigateWaypoints(), and mrpt::nav::CWaypointsNavigator::onNavigateCommandReceived().

◆ waypoint_index_current_goal

int mrpt::nav::TWaypointStatusSequence::waypoint_index_current_goal

Index in waypoints of the waypoint the navigator is currently trying to reach.

This will point to the last waypoint after navigation ends successfully. Its value is -1 if navigation has not started yet

Definition at line 119 of file TWaypoint.h.

Referenced by getAsOpenglVisualization(), getAsText(), mrpt::nav::CWaypointsNavigator::onNavigateCommandReceived(), and mrpt::nav::CWaypointsNavigator::waypoints_navigationStep().

◆ waypoints

std::vector<TWaypointStatus> mrpt::nav::TWaypointStatusSequence::waypoints

Waypoints parameters and status (reached, skipped, etc.)

Definition at line 113 of file TWaypoint.h.

Referenced by getAsOpenglVisualization(), getAsText(), mrpt::nav::CWaypointsNavigator::navigateWaypoints(), and mrpt::nav::CWaypointsNavigator::waypoints_navigationStep().




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