Go to the documentation of this file.
19 : m_firmware_control_period(500e-6), m_use_odo_error(false)
32 const double final_t =
m_time + dt;
double m_firmware_control_period
The period at which the low-level controller updates velocities (Default: 0.5 ms)
void rotate(const double ang)
Transform the (vx,vy) components for a counterclockwise rotation of ang radians.
virtual ~CVehicleSimulVirtualBase()
double drawGaussian1D_normalized()
Generate a normalized (mean=0, std=1) normally distributed sample.
double phi
Orientation (rads)
double vx
Velocity components: X,Y (m/s)
void wrapToPiInPlace(T &a)
Modifies the given angle to translate it into the ]-pi,pi] range.
mrpt::math::TPose2D m_GT_pose
ground truth pose in world coordinates.
CVehicleSimulVirtualBase()
void resetTime()
Reset all simulator variables to 0 (except the.
virtual void internal_simulControlStep(const double dt)=0
mrpt::math::TTwist2D m_GT_vel
Velocity in (x,y,omega)
void setCurrentGTPose(const mrpt::math::TPose2D &pose)
Brute-force move robot to target coordinates ("teleport")
mrpt::math::TTwist2D getCurrentOdometricVelLocal() const
Returns the instantaneous, odometric velocity vector (vx,vy,omega) in the robot local frame.
mrpt::math::TTwist2D getCurrentGTVelLocal() const
Returns the instantaneous, ground truth velocity vector (vx,vy,omega) in the robot local frame.
CRandomGenerator & getRandomGenerator()
A static instance of a CRandomGenerator class, for use in single-thread applications.
virtual void internal_clear()=0
Resets all pending cmds.
mrpt::math::TTwist2D m_odometric_vel
Velocity in (x,y,omega)
mrpt::math::TPose2D m_odometry
double omega
Angular velocity (rad/s)
void simulateOneTimeStep(const double dt)
Runs the simulator during "dt" seconds.
double m_time
simulation running time
2D twist: 2D velocity vector (vx,vy) + planar angular velocity (omega)
bool m_use_odo_error
Whether to corrupt odometry with noise.
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 | |