56 TWaypoint(
double target_x,
double target_y,
double allowed_distance,
bool allow_skip =
true,
double target_heading_ = INVALID_NUM,
double speed_ratio_ = 1.0);
83 void clear() { waypoints.clear(); }
uint64_t TTimeStamp
A system independent time type, it holds the the number of 100-nanosecond intervals since January 1...
bool allow_skip
[Default=true] Whether it is allowed to the navigator to proceed to a more advanced waypoint in the s...
mrpt::system::TTimeStamp timestamp_reach
Timestamp of when this waypoint was reached. (Default=INVALID_TIMESTAMP means not reached so far) ...
double outter_radius_non_skippable
A set of object, which are referenced to the coordinates framework established in this object...
static const double INVALID_NUM
The default value of fields (used to detect non-set values)
used in getAsOpenglVisualization()
std::vector< TWaypoint > waypoints
A single waypoint within TWaypointSequence.
The struct for requesting navigation requests for a sequence of waypoints.
GLsizei GLsizei GLuint * obj
This class allows loading and storing values and vectors of different types from a configuration text...
bool reached
Whether this waypoint has been reached already (to within the allowed distance as per user specificat...
double outter_radius_reached
mrpt::math::TPose2D last_robot_pose
Robot pose at last time step (has INVALID_NUM fields upon initialization)
The struct for querying the status of waypoints navigation.
mrpt::utils::TColor color_regular
A waypoint with an execution status.
bool final_goal_reached
Whether the final waypoint has been reached successfuly.
GLsizei const GLchar ** string
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
mrpt::math::TPoint2D target
[Must be set by the user] Coordinates of desired target location (world/global coordinates).
double target_heading
[Default=any heading] Optionally, set to the desired orientation [radians] of the robot at this waypo...
double allowed_distance
[Must be set by the user] How close should the robot get to this waypoint for it to be considered rea...
mrpt::system::TTimeStamp timestamp_nav_started
Timestamp of user navigation command.
bool skipped
If reached==true this boolean tells whether the waypoint was physically reached (false) or marked as ...
std::vector< TWaypointStatus > waypoints
Waypoints parameters and status (reached, skipped, etc.)
int waypoint_index_current_goal
Index in waypoints of the waypoint the navigator is currently trying to reach.
GLenum const GLfloat * params
int counter_seen_reachable
(Initialized to 0 automatically) How many times this waypoint has been seen as "reachable" before it ...
double speed_ratio
(Default=1.0) Desired robot speed at the target, as a ratio of the full robot speed.
std::string target_frame_id
(Default="map") Frame ID in which target is given. Optional, use only for submapping applications...