Skip to content

Mecanum drive kinematics

MecanumDriveKinematics

public static final double kTrackWidth = 0; // Distance between centers of right and left wheels on robot
public static final double kWheelBase = 0; // Distance between centers of front and back wheels on robot

public static final MecanumDriveKinematics kDriveKinematics =
    new MecanumDriveKinematics(
        new Translation2d(kWheelBase / 2, kTrackWidth / 2),
        new Translation2d(kWheelBase / 2, -kTrackWidth / 2),
        new Translation2d(-kWheelBase / 2, kTrackWidth / 2),
        new Translation2d(-kWheelBase / 2, -kTrackWidth / 2));