Main MRPT website > C++ reference for MRPT 1.9.9
CRobot2NavInterface.cpp
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2018, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 
10 #include "nav-precomp.h" // Precomp header
13 
14 using namespace mrpt::nav;
15 
17  : mrpt::system::COutputLogger("CRobot2NavInterface")
18 {
19 }
22 {
24  10.0,
25  "[changeSpeedsNOP] Doing nothing : not implemented in user's derived "
26  "class.");
27  return true;
28 }
29 
31  const double relative_heading_radians)
32 {
34 }
35 
36 /** \callergraph */
38 {
40  "[startWatchdog] Period=%.03f ms. Doing nothing: not implemented in "
41  "user's derived class.",
42  T_ms);
43  return true;
44 }
45 
46 /** \callergraph */
48 {
50  "[stopWatchdog] Doing nothing: not implemented in user's derived "
51  "class.");
52  return true;
53 }
54 
55 /** \callergraph */
57 {
59  "[sendNavigationStartEvent] Doing nothing: not implemented in user's "
60  "derived class.");
61 }
62 /** \callergraph */
64 {
66  "[sendNavigationEndEvent] Doing nothing: not implemented in user's "
67  "derived class.");
68 }
69 /** \callergraph */
71  int waypoint_index, bool reached_nSkipped)
72 {
74  "[sendWaypointReachedEvent] Marking waypoint #"
75  << waypoint_index << " as done. Reason: "
76  << (reached_nSkipped ? "Physically reached" : "Skipped"));
77 }
78 /** \callergraph */
80 {
82  "[sendNewWaypointTargetEvent] Navigating towards waypoint #"
83  << waypoint_index);
84 }
85 /** \callergraph */
87 {
89  1.0,
90  "[sendNavigationEndDueToErrorEvent] Doing nothing: not implemented in "
91  "user's derived class.");
92 }
93 /** \callergraph */
95 {
97  1.0,
98  "[sendWaySeemsBlockedEvent] Doing nothing: not implemented in user's "
99  "derived class.");
100 }
101 /** \callergraph */
103 {
105  1.0,
106  "[sendApparentCollisionEvent] Doing nothing: not implemented in user's "
107  "derived class.");
108 }
109 /** \callergraph */
111 {
113  1.0,
114  "[sendCannotGetCloserToBlockedTargetEvent] Doing nothing: not "
115  "implemented in user's derived class.");
116 }
117 
118 /** \callergraph */
120 /** \callergraph */
nav-precomp.h
mrpt::nav::CRobot2NavInterface::sendCannotGetCloserToBlockedTargetEvent
virtual void sendCannotGetCloserToBlockedTargetEvent()
Callback: Target seems to be blocked by an obstacle.
Definition: CRobot2NavInterface.cpp:110
MRPT_LOG_INFO_FMT
#define MRPT_LOG_INFO_FMT(_FMT_STRING,...)
Definition: system/COutputLogger.h:463
mrpt::nav::CRobot2NavInterface::sendNavigationEndEvent
virtual void sendNavigationEndEvent()
Callback: End of navigation command (reach of single goal, or final waypoint of waypoint list)
Definition: CRobot2NavInterface.cpp:63
MRPT_LOG_INFO
#define MRPT_LOG_INFO(_STRING)
Definition: system/COutputLogger.h:429
mrpt::nav::CRobot2NavInterface::~CRobot2NavInterface
virtual ~CRobot2NavInterface()
Definition: CRobot2NavInterface.cpp:20
mrpt::nav::CRobot2NavInterface::startWatchdog
virtual bool startWatchdog(float T_ms)
Start the watchdog timer of the robot platform, if any, for maximum expected delay between consecutiv...
Definition: CRobot2NavInterface.cpp:37
mrpt::nav::CRobot2NavInterface::changeSpeedsNOP
virtual bool changeSpeedsNOP()
Just like changeSpeeds(), but will be called when the last velocity command is still the preferred so...
Definition: CRobot2NavInterface.cpp:21
mrpt::nav::CRobot2NavInterface::getNavigationTime
virtual double getNavigationTime()
Returns the number of seconds ellapsed since the constructor of this class was invoked,...
Definition: CRobot2NavInterface.cpp:119
mrpt::nav
Definition: CAbstractHolonomicReactiveMethod.h:23
mrpt
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Definition: CKalmanFilterCapable.h:30
mrpt::utils::COutputLogger
mrpt::system::COutputLogger COutputLogger
Definition: utils/COutputLogger.h:7
MRPT_LOG_THROTTLE_INFO
#define MRPT_LOG_THROTTLE_INFO(_PERIOD_SECONDS, _STRING)
Definition: system/COutputLogger.h:450
mrpt::nav::CRobot2NavInterface::sendApparentCollisionEvent
virtual void sendApparentCollisionEvent()
Callback: Apparent collision event (i.e.
Definition: CRobot2NavInterface.cpp:102
mrpt::system::CTicTac::Tac
double Tac() noexcept
Stops the stopwatch.
Definition: CTicTac.cpp:90
mrpt::nav::CRobot2NavInterface::getAlignCmd
virtual mrpt::kinematics::CVehicleVelCmd::Ptr getAlignCmd(const double relative_heading_radians)
Gets a motion command to make the robot to align with a given relative heading, without translating.
Definition: CRobot2NavInterface.cpp:30
mrpt::nav::CRobot2NavInterface::CRobot2NavInterface
CRobot2NavInterface()
Definition: CRobot2NavInterface.cpp:16
mrpt::nav::CRobot2NavInterface::stopWatchdog
virtual bool stopWatchdog()
Stop the watchdog timer.
Definition: CRobot2NavInterface.cpp:47
CRobot2NavInterface.h
COutputLogger.h
mrpt::nav::CRobot2NavInterface::sendWaySeemsBlockedEvent
virtual void sendWaySeemsBlockedEvent()
Callback: No progression made towards target for a predefined period of time.
Definition: CRobot2NavInterface.cpp:94
mrpt::system::CTicTac::Tic
void Tic() noexcept
Starts the stopwatch.
Definition: CTicTac.cpp:79
mrpt::kinematics::CVehicleVelCmd::Ptr
std::shared_ptr< CVehicleVelCmd > Ptr
Definition: CVehicleVelCmd.h:24
mrpt::nav::CRobot2NavInterface::sendWaypointReachedEvent
virtual void sendWaypointReachedEvent(int waypoint_index, bool reached_nSkipped)
Callback: Reached an intermediary waypoint in waypoint list navigation.
Definition: CRobot2NavInterface.cpp:70
mrpt::nav::CRobot2NavInterface::sendNavigationStartEvent
virtual void sendNavigationStartEvent()
Callback: Start of navigation command.
Definition: CRobot2NavInterface.cpp:56
MRPT_LOG_INFO_STREAM
#define MRPT_LOG_INFO_STREAM(__CONTENTS)
Definition: system/COutputLogger.h:473
mrpt::nav::CRobot2NavInterface::resetNavigationTimer
virtual void resetNavigationTimer()
see getNavigationTime()
Definition: CRobot2NavInterface.cpp:121
mrpt::nav::CRobot2NavInterface::sendNavigationEndDueToErrorEvent
virtual void sendNavigationEndDueToErrorEvent()
Callback: Error asking sensory data from robot or sending motor commands.
Definition: CRobot2NavInterface.cpp:86
mrpt::nav::CRobot2NavInterface::m_navtime
mrpt::system::CTicTac m_navtime
For getNavigationTime.
Definition: CRobot2NavInterface.h:197
mrpt::nav::CRobot2NavInterface::sendNewWaypointTargetEvent
virtual void sendNewWaypointTargetEvent(int waypoint_index)
Callback: Heading towards a new intermediary/final waypoint in waypoint list navigation.
Definition: CRobot2NavInterface.cpp:79



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