26 for (
size_t i = 0; i < getVelCmdLength(); i++)
29 "%s=%.03f ", getVelCmdDescription(i).c_str(), getVelCmdElement(i));
37 const size_t nThis = this->getVelCmdLength();
39 typeid(*
this) ==
typeid(other),
"Trying to copy incompatible classes");
40 for (
size_t i = 0; i < nThis; i++)
50 robotMax_W_degps,
double, robotMax_W_radps, cfg, section);
59 "Max. linear speed (m/s) [Default=-1 (not set), will raise exception " 60 "if needed and not set]");
62 "robotMax_W_degps", robotMax_W_radps,
63 "Max. angular speed (deg/s) [Default=-1 (not set), will raise " 64 "exception if needed and not set]");
67 "Min. radius of curvature of paths (m) [Default=-1 (not set), will " 68 "raise exception if needed and not set]");
72 : robotMax_V_mps(-1.), robotMax_W_radps(-1.), robotMinCurvRadius(-1.)
std::string asString() const
Returns a human readable description of the cmd.
Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values, timewatch, extensions to STL.
std::string format(const char *fmt,...) MRPT_printf_format_check(1
A std::string version of C sprintf.
The virtual base class which provides a unified interface for all persistent objects in MRPT...
#define MRPT_LOAD_HERE_CONFIG_VAR_DEGREES_NO_DEFAULT( variableName, variableType, targetVariable, configFileObject, sectionNameStr)
#define MRPT_SAVE_CONFIG_VAR_DEGREES_COMMENT( __entryName, __variable, __comment)
virtual ~CVehicleVelCmd()
void saveToConfigFile(mrpt::utils::CConfigFileBase &c, const std::string &s) const
This class allows loading and storing values and vectors of different types from a configuration text...
Virtual base for velocity commands of different kinematic models of planar mobile robot...
#define MRPT_SAVE_CONFIG_VAR_COMMENT(variableName, __comment)
void loadConfigFile(const mrpt::utils::CConfigFileBase &cfg, const std::string §ion)
Load any parameter required by a CVehicleVelCmd derived class.
GLsizei const GLchar ** string
#define MRPT_LOAD_CONFIG_VAR_NO_DEFAULT( variableName, variableType, configFileObject, sectionNameStr)
CVehicleVelCmd & operator=(const CVehicleVelCmd &other)
#define MRPT_LOAD_CONFIG_VAR( variableName, variableType, configFileObject, sectionNameStr)
An useful macro for loading variables stored in a INI-like file under a key with the same name that t...
#define ASSERTMSG_(f, __ERROR_MSG)
virtual double getVelCmdElement(const int index) const =0
Get each velocity command component.
#define IMPLEMENTS_VIRTUAL_SERIALIZABLE( class_name, base_class_name, NameSpace)
This must be inserted as implementation of some required members for virtual CSerializable classes: ...