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