gz/math/DiffDriveOdometry.hh
Definition: gz/math/AdditivelySeparableScalarField3.hh:27
void SetWheelParams(double _wheelSeparation, double _leftWheelRadius, double _rightWheelRadius)
Set the wheel parameters including the radius and separation.
Computes odometry values based on a set of kinematic properties and wheel speeds for a diff-drive veh...
Definition: gz/math/DiffDriveOdometry.hh:81
void Init(const clock::time_point &_time)
Initialize the odometry.
DiffDriveOdometry(size_t _windowSize=10)
Constructor.
bool Initialized() const
Get whether Init has been called.
const Angle & AngularVelocity() const
Get the angular velocity.
double LinearVelocity() const
Get the linear velocity.
The Angle class is used to simplify and clarify the use of radians and degrees measurements....
Definition: gz/math/Angle.hh:61
bool Update(const Angle &_leftPos, const Angle &_rightPos, const clock::time_point &_time)
Updates the odometry class with latest wheels and steerings position.
void SetVelocityRollingWindowSize(size_t _size)
Set the velocity rolling window size.