33 cDELAY = CMD_delay_sec;
39 double getV() {
return m_v;}
40 double getW() {
return m_w;}
46 void movementCommand(
double lin_vel,
double ang_vel );
50 ASSERTMSG_(cmd,
"Wrong vehicle kinematic class, expected `CVehicleVelCmd_DiffDriven`");
73 void internal_simulControlStep(
const double dt)
MRPT_OVERRIDE;
double cDELAY
The delay constant for the velocities changes.
This class can be used to simulate the kinematics and dynamics of a differential driven planar mobile...
#define MRPT_OVERRIDE
C++11 "override" for virtuals:
double cTAU
The time-constants for the first order low-pass filter for the velocities changes.
GLubyte GLubyte GLubyte GLubyte w
CVehicleVelCmdPtr getVelCmdType() const MRPT_OVERRIDE
Gets an empty velocity command object that can be queried to find out the number of velcmd components...
Virtual base for velocity commands of different kinematic models of planar mobile robot...
Simulates the kinematics of a differential-driven planar mobile robot/vehicle, including odometry err...
double ang_vel
Angular velocity (rad/s)
CVehicleVelCmd_DiffDriven kinematic_cmd_t
double lin_vel
Linear velocity (m/s)
#define KINEMATICS_IMPEXP
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
void setDelayModelParams(double TAU_delay_sec=1.8, double CMD_delay_sec=0.)
Change the model of delays used for the orders sent to the robot.
void sendVelCmd(const CVehicleVelCmd &cmd_vel) MRPT_OVERRIDE
Sends a velocity command to the robot.
#define ASSERTMSG_(f, __ERROR_MSG)
Kinematic model for Ackermann-like or differential-driven vehicles.
double m_w
lin & angular velocity in the robot local frame.