Go to the documentation of this file.
39 std::vector<std::string> lstKeys;
40 c.getAllKeys(
s, lstKeys);
42 for (
size_t i = 0; i < lstKeys.size(); i++)
45 std::vector<std::string> toks;
49 std::string(
"Wrong format while parsing CNavigatorManualSequence "
50 "cfg file in entry: ") +
53 const double t = atof(toks[0].c_str());
56 const size_t nComps = toks.size() - 1;
71 for (
size_t j = 0; j < nComps; j++)
72 krc.
cmd_vel->setVelCmdElement(j, atof(toks[j + 1].c_str()));
98 "[CNavigatorManualSequence] Sending cmd: t=%f\n",
106 "[CNavigatorManualSequence] **ERROR** sending cmd to robot.");
virtual bool changeSpeeds(const mrpt::kinematics::CVehicleVelCmd &vel_cmd)
Default: forward call to m_robot.changeSpeed().
virtual double getNavigationTime()
Returns the number of seconds ellapsed since the constructor of this class was invoked,...
std::shared_ptr< T > make_aligned_shared(Args &&... args)
Creates a shared_ptr with aligned memory via aligned_allocator_cpp11<>.
std::map< double, TVelCmd > programmed_orders
map [time_in_secs_since_beginning] -> orders.
This is the base class for any reactive/planned navigation system.
CNavigatorManualSequence(CRobot2NavInterface &react_iterf_impl)
The pure virtual interface between a real or simulated robot and any CAbstractNavigator-derived class...
#define THROW_EXCEPTION(msg)
#define ASSERT_(f)
Defines an assertion mechanism.
void tokenize(const std::string &inString, const std::string &inDelimiters, OUT_CONTAINER &outTokens, bool skipBlankTokens=true) noexcept
Tokenizes a string according to a set of delimiting characters.
virtual ~CNavigatorManualSequence()
void logFmt(const VerbosityLevel level, const char *fmt,...) const MRPT_printf_format_check(3
Alternative logging method, which mimics the printf behavior.
This class allows loading and storing values and vectors of different types from a configuration text...
CRobot2NavInterface & m_robot
The navigator-robot interface.
void navigationStep() override
Overriden in this class to ignore the cancel/pause/...
virtual bool stop(bool isEmergencyStop)
Default: forward call to m_robot.stop().
mrpt::kinematics::CVehicleVelCmd::Ptr cmd_vel
all with the same meaning than in CRobot2NavInterface::changeSpeeds()
#define ASSERTMSG_(f, __ERROR_MSG)
Defines an assertion mechanism.
void initialize() override
Must be called for loading collision grids, etc.
GLsizei const GLchar ** string
virtual void resetNavigationTimer()
see getNavigationTime()
virtual void saveConfigFile(mrpt::config::CConfigFileBase &c) const override
Saves all current options to a config file.
Kinematic model for Ackermann-like or differential-driven vehicles.
virtual void loadConfigFile(const mrpt::config::CConfigFileBase &c) override
Loads all params from a file.
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 | |