Main MRPT website > C++ reference for MRPT 1.9.9
CNavigatorManualSequence.h
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 #pragma once
10 
12 #include <map>
13 #include <mrpt/system/CTicTac.h>
14 
15 namespace mrpt
16 {
17 namespace nav
18 {
19 /** "Fake navigator" for tests: it just sends out a pre-programmed sequence of
20  * commands to the robot.
21  * For a short discussion of the API, see CNavigatorVirtualBase
22  */
24 {
25  public:
27  virtual ~CNavigatorManualSequence();
28 
29  /** @name Initialization API
30  * @{ */
32  override; // See base class docs!
34  const override; // See base class docs!
35  /** Must be called for loading collision grids, etc. before invoking any
36  * navigation command */
37  void initialize() override;
38  /** @} */
39 
40  /** Overriden in this class to ignore the cancel/pause/... commands */
41  void navigationStep() override;
42 
43  struct TVelCmd
44  {
45  /** all with the same meaning than in
46  * CRobot2NavInterface::changeSpeeds() */
48  };
49 
50  /** map [time_in_secs_since_beginning] -> orders. */
51  std::map<double, TVelCmd> programmed_orders;
52 
53  protected:
54  virtual void onStartNewNavigation() override {}
55  private:
56  // Not used in this class:
57  virtual void navigate(const TNavigationParams* params) override {}
58  virtual void performNavigationStep() override {}
59 };
60 }
61 }
c
const GLubyte * c
Definition: glext.h:6313
mrpt::nav::CNavigatorManualSequence::onStartNewNavigation
virtual void onStartNewNavigation() override
Called whenever a new navigation has been started.
Definition: CNavigatorManualSequence.h:54
mrpt::nav::CNavigatorManualSequence::programmed_orders
std::map< double, TVelCmd > programmed_orders
map [time_in_secs_since_beginning] -> orders.
Definition: CNavigatorManualSequence.h:51
mrpt
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Definition: CKalmanFilterCapable.h:30
mrpt::nav::CAbstractNavigator
This is the base class for any reactive/planned navigation system.
Definition: CAbstractNavigator.h:59
mrpt::nav::CNavigatorManualSequence::CNavigatorManualSequence
CNavigatorManualSequence(CRobot2NavInterface &react_iterf_impl)
Definition: CNavigatorManualSequence.cpp:20
mrpt::nav::CRobot2NavInterface
The pure virtual interface between a real or simulated robot and any CAbstractNavigator-derived class...
Definition: CRobot2NavInterface.h:44
mrpt::nav::CNavigatorManualSequence::~CNavigatorManualSequence
virtual ~CNavigatorManualSequence()
Definition: CNavigatorManualSequence.cpp:27
mrpt::nav::CAbstractNavigator::TNavigationParams
The struct for configuring navigation requests.
Definition: CAbstractNavigator.h:118
mrpt::nav::CNavigatorManualSequence::navigate
virtual void navigate(const TNavigationParams *params) override
Navigation request to a single target location.
Definition: CNavigatorManualSequence.h:57
mrpt::config::CConfigFileBase
This class allows loading and storing values and vectors of different types from a configuration text...
Definition: config/CConfigFileBase.h:44
mrpt::nav::CNavigatorManualSequence::navigationStep
void navigationStep() override
Overriden in this class to ignore the cancel/pause/...
Definition: CNavigatorManualSequence.cpp:86
CAbstractNavigator.h
mrpt::nav::CNavigatorManualSequence::TVelCmd::cmd_vel
mrpt::kinematics::CVehicleVelCmd::Ptr cmd_vel
all with the same meaning than in CRobot2NavInterface::changeSpeeds()
Definition: CNavigatorManualSequence.h:47
mrpt::kinematics::CVehicleVelCmd::Ptr
std::shared_ptr< CVehicleVelCmd > Ptr
Definition: CVehicleVelCmd.h:24
mrpt::nav::CNavigatorManualSequence::performNavigationStep
virtual void performNavigationStep() override
To be implemented in derived classes.
Definition: CNavigatorManualSequence.h:58
mrpt::nav::CNavigatorManualSequence
"Fake navigator" for tests: it just sends out a pre-programmed sequence of commands to the robot.
Definition: CNavigatorManualSequence.h:23
CTicTac.h
mrpt::nav::CNavigatorManualSequence::initialize
void initialize() override
Must be called for loading collision grids, etc.
Definition: CNavigatorManualSequence.cpp:79
mrpt::nav::CNavigatorManualSequence::TVelCmd
Definition: CNavigatorManualSequence.h:43
mrpt::nav::CNavigatorManualSequence::saveConfigFile
virtual void saveConfigFile(mrpt::config::CConfigFileBase &c) const override
Saves all current options to a config file.
Definition: CNavigatorManualSequence.cpp:28
mrpt::nav::CNavigatorManualSequence::loadConfigFile
virtual void loadConfigFile(const mrpt::config::CConfigFileBase &c) override
Loads all params from a file.
Definition: CNavigatorManualSequence.cpp:33
params
GLenum const GLfloat * params
Definition: glext.h:3534



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