22 double vel_,
double dir_local_,
double ramp_time_,
double rot_speed_)
24 dir_local(dir_local_),
25 ramp_time(ramp_time_),
137 params.robotMax_V_mps >= .0,
138 "[CVehicleVelCmd_Holo] `robotMax_V_mps` must be set to valid values: " 139 "either assign values programmatically or call loadConfigFile()");
std::string getVelCmdDescription(const int index) const override
Get textual, human-readable description of each velocity command component.
void serializeTo(mrpt::serialization::CArchive &out) const override
Pure virtual method for writing (serializing) to an abstract archive.
#define IMPLEMENTS_SERIALIZABLE(class_name, base, NameSpace)
To be added to all CSerializable-classes implementation files.
void cmdVel_scale(double vel_scale) override
Scale the velocity command encoded in this object.
mrpt::vision::TStereoCalibParams params
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...
uint8_t serializeGetVersion() const override
Must return the current versioning number of the object.
#define MRPT_THROW_UNKNOWN_SERIALIZATION_VERSION(__V)
For use in CSerializable implementations.
double ramp_time
: Blending time between current and target time.
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).
#define ASSERTMSG_(f, __ERROR_MSG)
Defines an assertion mechanism.
double getVelCmdElement(const int index) const override
Get each velocity command component.
~CVehicleVelCmd_Holo() override
Virtual base class for "archives": classes abstracting I/O streams.
mrpt::vision::TStereoCalibResults out
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".
#define THROW_EXCEPTION_FMT(_FORMAT_STRING,...)
Parameters that may be used by cmdVel_limits() in any derived classes.
double rot_speed
: (rad/s) rotational speed for rotating such as the robot slowly faces forward.
void serializeFrom(mrpt::serialization::CArchive &in, uint8_t serial_version) override
Pure virtual method for reading (deserializing) from an abstract archive.