gz/math/MecanumDriveOdometry.hh
Go to the documentation of this file.
The Angle class is used to simplify and clarify the use of radians and degrees measurements....
Definition: gz/math/Angle.hh:62
Computes odometry values based on a set of kinematic properties and wheel speeds for a Mecanum-drive ...
Definition: gz/math/MecanumDriveOdometry.hh:53
double WheelSeparation() const
Get the wheel separation.
bool Update(const Angle &_frontLeftPos, const Angle &_frontRightPos, const Angle &_backLeftPos, const Angle &_backRightPos, const clock::time_point &_time)
Updates the odometry class with latest wheels and steerings position.
double LinearVelocity() const
Get the linear velocity.
double LateralVelocity() const
Get the lateral velocity.
double RightWheelRadius() const
Get the rightwheel radius.
void SetVelocityRollingWindowSize(size_t _size)
Set the velocity rolling window size.
void SetWheelParams(double _wheelSeparation, double _wheelBase, double _leftWheelRadius, double _rightWheelRadius)
Set the wheel parameters including the radius and separation.
MecanumDriveOdometry(size_t _windowSize=10)
Constructor.
double LeftWheelRadius() const
Get the left wheel radius.
void Init(const clock::time_point &_time)
Initialize the odometry.
const Angle & AngularVelocity() const
Get the angular velocity.
bool Initialized() const
Get whether Init has been called.
Definition: gz/math/AdditivelySeparableScalarField3.hh:28