Go to the documentation of this file.
19 : vel(.0), dir_local(.0), ramp_time(.0), rot_speed(.0)
24 double vel_,
double dir_local_,
double ramp_time_,
double rot_speed_)
26 dir_local(dir_local_),
27 ramp_time(ramp_time_),
139 params.robotMax_V_mps >= .0,
140 "[CVehicleVelCmd_Holo] `robotMax_V_mps` must be set to valid values: "
141 "either assign values programmatically or call loadConfigFile()");
virtual ~CVehicleVelCmd_Holo()
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.
void setToStop() override
Set to a command that means "do not move" / "stop".
void cmdVel_scale(double vel_scale) override
Scale the velocity command encoded in this object.
Parameters that may be used by cmdVel_limits() in any derived classes.
size_t getVelCmdLength() const override
Get number of components in each velocity command.
uint8_t serializeGetVersion() const override
Must return the current versioning number of the object.
#define THROW_EXCEPTION_FMT(_FORMAT_STRING,...)
void setVelCmdElement(const int index, const double val) override
Set each velocity command component.
Virtual base class for "archives": classes abstracting I/O streams.
double ramp_time
: Blending time between current and target time.
double getVelCmdElement(const int index) const override
Get each velocity command component.
double dir_local
: direction, relative to the current robot heading (radians).
#define IMPLEMENTS_SERIALIZABLE(class_name, base, NameSpace)
This must be inserted in all CSerializable classes implementation files.
#define ASSERTMSG_(f, __ERROR_MSG)
Defines an assertion mechanism.
bool isStopCmd() const override
Returns true if the command means "do not move" / "stop".
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...
GLsizei const GLchar ** string
double rot_speed
: (rad/s) rotational speed for rotating such as the robot slowly faces forward.
#define MRPT_THROW_UNKNOWN_SERIALIZATION_VERSION(__V)
For use in CSerializable implementations.
Virtual base for velocity commands of different kinematic models of planar mobile robot.
void serializeFrom(mrpt::serialization::CArchive &in, uint8_t serial_version) override
Pure virtual method for reading (deserializing) from an abstract archive.
GLenum const GLfloat * params
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 | |