20 : vel(.0), dir_local(.0), ramp_time(.0), rot_speed(.0)
25 double vel,
double dir_local,
double ramp_time,
double rot_speed)
26 : vel(vel), dir_local(dir_local), ramp_time(ramp_time), rot_speed(rot_speed)
141 params.robotMax_V_mps >= .0,
142 "[CVehicleVelCmd_Holo] `robotMax_V_mps` must be set to valid values: " 143 "either assign values programmatically or call loadConfigFile()");
Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values, timewatch, extensions to STL.
std::string getVelCmdDescription(const int index) const override
Get textual, human-readable description of each velocity command component.
#define IMPLEMENTS_SERIALIZABLE(class_name, base, NameSpace)
This must be inserted in all CSerializable classes implementation files.
#define THROW_EXCEPTION_FMT(_FORMAT_STRING,...)
void cmdVel_scale(double vel_scale) override
Scale the velocity command encoded in this object.
virtual ~CVehicleVelCmd_Holo()
size_t getVelCmdLength() const override
Get number of components in each velocity command.
void setToStop() override
Set to a command that means "do not move" / "stop".
Virtual base for velocity commands of different kinematic models of planar mobile robot...
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...
void setVelCmdElement(const int index, const double val) override
Set each velocity command component.
double dir_local
: direction, relative to the current robot heading (radians).
void readFromStream(mrpt::utils::CStream &in, int version) override
Introduces a pure virtual method responsible for loading from a CStream This can not be used directly...
#define MRPT_THROW_UNKNOWN_SERIALIZATION_VERSION(__V)
For use in CSerializable implementations.
double getVelCmdElement(const int index) const override
Get each velocity command component.
void writeToStream(mrpt::utils::CStream &out, int *getVersion) const override
Introduces a pure virtual method responsible for writing to a CStream.
GLsizei const GLchar ** string
double cmdVel_limits(const mrpt::kinematics::CVehicleVelCmd &prev_vel_cmd, const double beta, const TVelCmdParams ¶ms) override
Updates this command, computing a blended version of beta (within [0,1]) of vel_cmd and 1-beta of pre...
bool isStopCmd() const override
Returns true if the command means "do not move" / "stop".
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.