Class MecanumDriveWheelPositions

java.lang.Object
edu.wpi.first.math.kinematics.MecanumDriveWheelPositions
All Implemented Interfaces:
Interpolatable<MecanumDriveWheelPositions>, ProtobufSerializable, StructSerializable, WPISerializable

Represents the wheel positions for a mecanum drive drivetrain.
  • Field Details

  • Constructor Details

    • MecanumDriveWheelPositions

      Constructs a MecanumDriveWheelPositions with zeros for all member fields.
    • MecanumDriveWheelPositions

      public MecanumDriveWheelPositions(double frontLeftMeters, double frontRightMeters, double rearLeftMeters, double rearRightMeters)
      Constructs a MecanumDriveWheelPositions.
      Parameters:
      frontLeftMeters - Distance measured by the front left wheel.
      frontRightMeters - Distance measured by the front right wheel.
      rearLeftMeters - Distance measured by the rear left wheel.
      rearRightMeters - Distance measured by the rear right wheel.
    • MecanumDriveWheelPositions

      public MecanumDriveWheelPositions(Distance frontLeft, Distance frontRight, Distance rearLeft, Distance rearRight)
      Constructs a MecanumDriveWheelPositions.
      Parameters:
      frontLeft - Distance measured by the front left wheel.
      frontRight - Distance measured by the front right wheel.
      rearLeft - Distance measured by the rear left wheel.
      rearRight - Distance measured by the rear right wheel.
  • Method Details