Go to the documentation of this file.
25 for (
size_t i = 0; i < getVelCmdLength(); i++)
28 "%s=%.03f ", getVelCmdDescription(i).c_str(), getVelCmdElement(i));
38 typeid(*
this) ==
typeid(other),
"Trying to copy incompatible classes");
39 for (
size_t i = 0; i < nThis; i++)
58 "Max. linear speed (m/s) [Default=-1 (not set), will raise exception "
59 "if needed and not set]");
61 "robotMax_W_degps", robotMax_W_radps,
62 "Max. angular speed (deg/s) [Default=-1 (not set), will raise "
63 "exception if needed and not set]");
66 "Min. radius of curvature of paths (m) [Default=-1 (not set), will "
67 "raise exception if needed and not set]");
71 : robotMax_V_mps(-1.), robotMax_W_radps(-1.), robotMinCurvRadius(-1.)
#define MRPT_SAVE_CONFIG_VAR_COMMENT(variableName, __comment)
#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...
std::string asString() const
Returns a human readable description of the cmd.
void saveToConfigFile(mrpt::config::CConfigFileBase &c, const std::string &s) const
virtual void setVelCmdElement(const int index, const double val)=0
Set each velocity command component.
virtual ~CVehicleVelCmd()
#define MRPT_LOAD_CONFIG_VAR_NO_DEFAULT( variableName, variableType, configFileObject, sectionNameStr)
void loadConfigFile(const mrpt::config::CConfigFileBase &cfg, const std::string §ion)
Load any parameter required by a CVehicleVelCmd derived class.
This class allows loading and storing values and vectors of different types from a configuration text...
std::string format(const char *fmt,...) MRPT_printf_format_check(1
A std::string version of C sprintf.
double robotMinCurvRadius
Min.
#define MRPT_SAVE_CONFIG_VAR_DEGREES_COMMENT( __entryName, __variable, __comment)
virtual double getVelCmdElement(const int index) const =0
Get each velocity command component.
#define MRPT_LOAD_HERE_CONFIG_VAR_DEGREES_NO_DEFAULT( variableName, variableType, targetVariable, configFileObject, sectionNameStr)
#define IMPLEMENTS_VIRTUAL_SERIALIZABLE( class_name, base_class_name, NameSpace)
This must be inserted as implementation of some required members for virtual CSerializable classes:
double robotMax_W_radps
Max.
#define ASSERTMSG_(f, __ERROR_MSG)
Defines an assertion mechanism.
double robotMax_V_mps
Max.
GLsizei const GLchar ** string
virtual size_t getVelCmdLength() const =0
Get number of components in each velocity command.
Virtual base for velocity commands of different kinematic models of planar mobile robot.
CVehicleVelCmd & operator=(const CVehicleVelCmd &other)
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 | |