Go to the documentation of this file.
56 virtual std::unique_ptr<TNavigationParams>
clone()
const override
58 return std::unique_ptr<TNavigationParams>(
76 virtual void cancel()
override;
bool isRelativePointReachable(const mrpt::math::TPoint2D &wp_local_wrt_robot) const
Returns true if, according to the information gathered at the last navigation step,...
double waypoint_angle_tolerance
[rad] Angular error tolerance for waypoints with an assigned heading (Default: 5 deg)
virtual std::unique_ptr< TNavigationParams > clone() const override
virtual bool impl_waypoint_is_reachable(const mrpt::math::TPoint2D &wp_local_wrt_robot) const =0
Implements the way to waypoint is free function in children classes: true must be returned if,...
bool m_was_aligning
Whether the last timestep was "is_aligning" in a waypoint with heading.
virtual ~CWaypointsNavigator()
dtor
mrpt::system::TTimeStamp m_last_alignment_cmd
virtual void navigationStep() override
This method must be called periodically in order to effectively run the navigation.
virtual bool checkHasReachedTarget(const double targetDist) const override
Default implementation: check if target_dist is below the accepted distance.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
This is the base class for any reactive/planned navigation system.
The struct for configuring navigation requests to CWaypointsNavigator and derived classes.
TWaypointStatusSequence getWaypointNavStatus() const
Get a copy of the control structure which describes the progress status of the waypoint navigation.
The pure virtual interface between a real or simulated robot and any CAbstractNavigator-derived class...
This class extends CAbstractNavigator with the capability of following a list of waypoints.
uint64_t TTimeStamp
A system independent time type, it holds the the number of 100-nanosecond intervals since January 1,...
virtual void waypoints_navigationStep()
The waypoints-specific part of navigationStep()
virtual void onNavigateCommandReceived() override
Called after each call to CAbstractNavigator::navigate()
virtual void cancel() override
Cancel current navegation.
The struct for configuring navigation requests.
bool waypoints_isAligning() const
TWaypointsNavigatorParams params_waypoints_navigator
double max_distance_to_allow_skip_waypoint
In meters.
This class allows loading and storing values and vectors of different types from a configuration text...
This is a virtual base class for sets of options than can be loaded from and/or saved to configuratio...
virtual void saveToConfigFile(mrpt::config::CConfigFileBase &c, const std::string &s) const override
This method saves the options to a ".ini"-like file or memory-stored string list.
std::vector< mrpt::nav::CAbstractNavigator::TargetInfo > multiple_targets
If not empty, this will prevail over the base class single goal target.
std::recursive_mutex m_nav_waypoints_cs
TWaypointsNavigatorParams()
virtual bool isEqual(const CAbstractNavigator::TNavigationParamsBase &o) const override
The struct for requesting navigation requests for a sequence of waypoints.
virtual void saveConfigFile(mrpt::config::CConfigFileBase &c) const override
Saves all current options to a config file.
CWaypointsNavigator(CRobot2NavInterface &robot_interface_impl)
ctor
virtual std::string getAsText() const override
Gets navigation params as a human-readable format.
int min_timesteps_confirm_skip_waypoints
How many times shall a future waypoint be seen as reachable to skip to it (Default: 1)
GLsizei const GLchar ** string
virtual void navigateWaypoints(const TWaypointSequence &nav_request)
Waypoint navigation request.
int multitarget_look_ahead
>=0 number of waypoints to forward to the underlying navigation engine, to ease obstacles avoidance w...
double rel_speed_for_stop_waypoints
[0,1] Relative speed when aiming at a stop-point waypoint (Default=0.10)
virtual void loadConfigFile(const mrpt::config::CConfigFileBase &c) override
Loads all params from a file.
The struct for querying the status of waypoints navigation.
TWaypointStatusSequence m_waypoint_nav_status
The latest waypoints navigation command and the up-to-date control status.
virtual void loadFromConfigFile(const mrpt::config::CConfigFileBase &c, const std::string &s) override
This method load the options from a ".ini"-like file or memory-stored string list.
Base for all high-level navigation commands.
virtual void onStartNewNavigation() override
Called whenever a new navigation has been started.
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |