This class allows loading and storing values and vectors of different types from a configuration text...
A set of object, which are referenced to the coordinates framework established in this object.
GLsizei GLsizei GLuint * obj
GLenum const GLfloat * params
GLsizei const GLchar ** string
mrpt::Clock::time_point TTimeStamp
A system independent time type, it holds the the number of 100-nanosecond intervals since January 1,...
A single waypoint within TWaypointSequence.
std::string getAsText() const
get in human-readable format
static const int 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...
TWaypoint()
Ctor with default values.
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...
bool isValid() const
Check whether all the minimum mandatory fields have been filled by the user.
std::string target_frame_id
(Default="map") Frame ID in which target is given.
The struct for requesting navigation requests for a sequence of waypoints.
void save(mrpt::config::CConfigFileBase &c, const std::string &s) const
Saves waypoints to a config file section.
std::string getAsText() const
Gets navigation params as a human-readable format.
std::vector< TWaypoint > waypoints
TWaypointSequence()
Ctor with default values.
void load(const mrpt::config::CConfigFileBase &c, const std::string &s)
Loads waypoints to a config file section.
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)
A waypoint with an execution status.
mrpt::system::TTimeStamp timestamp_reach
Timestamp of when this waypoint was reached.
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...
std::string getAsText() const
Gets navigation params as a human-readable format.
TWaypointStatus & operator=(const TWaypoint &wp)
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.
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)
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)
std::string getAsText() const
Gets navigation params as a human-readable format.
TWaypointStatusSequence()
Ctor with default values.
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 outter_radius_reached
double outter_radius_non_skippable
mrpt::img::TColor color_reached
double inner_radius_reached
TWaypointsRenderingParams()
mrpt::img::TColor color_regular
mrpt::img::TColor color_current_goal