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

    • frontLeft

      public double frontLeft
      Distance measured by the front left wheel in meters.
    • frontRight

      public double frontRight
      Distance measured by the front right wheel in meters.
    • rearLeft

      public double rearLeft
      Distance measured by the rear left wheel in meters.
    • rearRight

      public double rearRight
      Distance measured by the rear right wheel in meters.
    • proto

      MecanumDriveWheelPositions protobuf for serialization.
    • struct

      MecanumDriveWheelPositions struct for serialization.
  • Constructor Details

    • MecanumDriveWheelPositions

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

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

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