WPILibC++ 2027.0.0-alpha-4
Loading...
Searching...
No Matches
wpi::math::MecanumDriveWheelPositions Struct Reference

Represents the wheel positions for a mecanum drive drivetrain. More...

#include <wpi/math/kinematics/MecanumDriveWheelPositions.hpp>

Public Member Functions

constexpr bool operator== (const MecanumDriveWheelPositions &other) const =default
 Checks equality between this MecanumDriveWheelPositions and another object.
constexpr MecanumDriveWheelPositions Interpolate (const MecanumDriveWheelPositions &endValue, double t) const

Public Attributes

wpi::units::meter_t frontLeft = 0_m
 Distance driven by the front-left wheel.
wpi::units::meter_t frontRight = 0_m
 Distance driven by the front-right wheel.
wpi::units::meter_t rearLeft = 0_m
 Distance driven by the rear-left wheel.
wpi::units::meter_t rearRight = 0_m
 Distance driven by the rear-right wheel.

Detailed Description

Represents the wheel positions for a mecanum drive drivetrain.

Member Function Documentation

◆ Interpolate()

MecanumDriveWheelPositions wpi::math::MecanumDriveWheelPositions::Interpolate ( const MecanumDriveWheelPositions & endValue,
double t ) const
inlineconstexpr

◆ operator==()

bool wpi::math::MecanumDriveWheelPositions::operator== ( const MecanumDriveWheelPositions & other) const
constexprdefault

Checks equality between this MecanumDriveWheelPositions and another object.

Parameters
otherThe other object.
Returns
Whether the two objects are equal.

Member Data Documentation

◆ frontLeft

wpi::units::meter_t wpi::math::MecanumDriveWheelPositions::frontLeft = 0_m

Distance driven by the front-left wheel.

◆ frontRight

wpi::units::meter_t wpi::math::MecanumDriveWheelPositions::frontRight = 0_m

Distance driven by the front-right wheel.

◆ rearLeft

wpi::units::meter_t wpi::math::MecanumDriveWheelPositions::rearLeft = 0_m

Distance driven by the rear-left wheel.

◆ rearRight

wpi::units::meter_t wpi::math::MecanumDriveWheelPositions::rearRight = 0_m

Distance driven by the rear-right wheel.


The documentation for this struct was generated from the following file: