48 case 0:
return "vel";
break;
49 case 1:
return "dir_local";
break;
50 case 2:
return "ramp_time";
break;
51 case 3:
return "rot_speed";
break;
61 case 0:
return vel;
break;
126 params.robotMax_V_mps >= .0,
127 "[CVehicleVelCmd_Holo] `robotMax_V_mps` must be set to valid values: " 128 "either assign values programmatically or call loadConfigFile()");
Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values, timewatch, extensions to STL.
bool isStopCmd() const MRPT_OVERRIDE
Returns true if the command means "do not move" / "stop".
void writeToStream(mrpt::utils::CStream &out, int *getVersion) const
Introduces a pure virtual method responsible for writing to a CStream.
#define IMPLEMENTS_SERIALIZABLE(class_name, base, NameSpace)
This must be inserted in all CSerializable classes implementation files.
#define THROW_EXCEPTION_FMT(_FORMAT_STRING,...)
virtual ~CVehicleVelCmd_Holo()
void setVelCmdElement(const int index, const double val) MRPT_OVERRIDE
Set each velocity command component.
Virtual base for velocity commands of different kinematic models of planar mobile robot...
double cmdVel_limits(const mrpt::kinematics::CVehicleVelCmd &prev_vel_cmd, const double beta, const TVelCmdParams ¶ms) MRPT_OVERRIDE
Updates this command, computing a blended version of beta (within [0,1]) of vel_cmd and 1-beta of pre...
double ramp_time
: Blending time between current and target time.
This base class is used to provide a unified interface to files,memory buffers,..Please see the deriv...
double getVelCmdElement(const int index) const MRPT_OVERRIDE
Get each velocity command component.
double dir_local
: direction, relative to the current robot heading (radians). 0 means forward.
#define MRPT_THROW_UNKNOWN_SERIALIZATION_VERSION(__V)
For use in CSerializable implementations.
GLsizei const GLchar ** string
void cmdVel_scale(double vel_scale) MRPT_OVERRIDE
Scale the velocity command encoded in this object.
void setToStop() MRPT_OVERRIDE
Set to a command that means "do not move" / "stop".
std::string getVelCmdDescription(const int index) const MRPT_OVERRIDE
Get textual, human-readable description of each velocity command component.
void readFromStream(mrpt::utils::CStream &in, int version)
Introduces a pure virtual method responsible for loading from a CStream This can not be used directly...
Parameters that may be used by cmdVel_limits() in any derived classes.
#define ASSERTMSG_(f, __ERROR_MSG)
GLenum const GLfloat * params
double rot_speed
: (rad/s) rotational speed for rotating such as the robot slowly faces forward.
size_t getVelCmdLength() const MRPT_OVERRIDE
Get number of components in each velocity command.