40 c.getAllKeys(
s, lstKeys);
42 for (
size_t i = 0; i < lstKeys.size(); i++)
45 std::vector<std::string> toks;
50 "Wrong format while parsing CNavigatorManualSequence "
51 "cfg file in entry: ") +
54 const double t = atof(toks[0].c_str());
57 const size_t nComps = toks.size() - 1;
72 for (
size_t i = 0; i < nComps; i++)
73 krc.
cmd_vel->setVelCmdElement(i, atof(toks[i + 1].c_str()));
98 mrpt::utils::LVL_DEBUG,
99 "[CNavigatorManualSequence] Sending cmd: t=%f\n",
106 mrpt::utils::LVL_ERROR,
107 "[CNavigatorManualSequence] **ERROR** sending cmd to robot.");
Kinematic model for Ackermann-like or differential-driven vehicles.
This is the base class for any reactive/planned navigation system.
CRobot2NavInterface & m_robot
The navigator-robot interface.
virtual bool stop(bool isEmergencyStop)
Default: forward call to m_robot.stop().
virtual bool changeSpeeds(const mrpt::kinematics::CVehicleVelCmd &vel_cmd)
Default: forward call to m_robot.changeSpeed().
void initialize() override
Must be called for loading collision grids, etc.
virtual void loadConfigFile(const mrpt::utils::CConfigFileBase &c) override
Loads all params from a file.
std::map< double, TVelCmd > programmed_orders
map [time_in_secs_since_beginning] -> orders.
virtual void saveConfigFile(mrpt::utils::CConfigFileBase &c) const override
Saves all current options to a config file.
void navigationStep() override
Overriden in this class to ignore the cancel/pause/...
virtual ~CNavigatorManualSequence()
CNavigatorManualSequence(CRobot2NavInterface &react_iterf_impl)
The pure virtual interface between a real or simulated robot and any CAbstractNavigator-derived class...
virtual void resetNavigationTimer()
see getNavigationTime()
virtual double getNavigationTime()
Returns the number of seconds ellapsed since the constructor of this class was invoked,...
This class allows loading and storing values and vectors of different types from a configuration text...
GLsizei const GLchar ** string
std::shared_ptr< T > make_aligned_shared(Args &&... args)
Creates a shared_ptr with 16-byte aligned memory.
std::vector< std::string > vector_string
A type for passing a vector of strings.
void tokenize(const std::string &inString, const std::string &inDelimiters, std::deque< std::string > &outTokens, bool skipBlankTokens=true) noexcept
Tokenizes a string according to a set of delimiting characters.
#define THROW_EXCEPTION(msg)
#define ASSERTMSG_(f, __ERROR_MSG)
mrpt::kinematics::CVehicleVelCmd::Ptr cmd_vel
all with the same meaning than in CRobot2NavInterface::changeSpeeds()