Package com.acmerobotics.roadrunner
Class MecanumKinematics
-
- All Implemented Interfaces:
public final class MecanumKinematics
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
MecanumKinematics.WheelIncrements
public final class
MecanumKinematics.WheelVelocities
public final class
MecanumKinematics.WheelVelConstraint
-
Field Summary
Fields Modifier and Type Field Description public final Double
trackWidth
public final Double
lateralMultiplier
-
Constructor Summary
Constructors Constructor Description MecanumKinematics(Double trackWidth, Double wheelbase, Double lateralMultiplier)
MecanumKinematics(Double trackWidth, Double lateralMultiplier)
MecanumKinematics(Double trackWidth)
-
Method Summary
Modifier and Type Method Description final <Param extends Any> Twist2dDual<Param>
forward(MecanumKinematics.WheelIncrements<Param> w)
final <Param extends Any> MecanumKinematics.WheelVelocities<Param>
inverse(PoseVelocity2dDual<Param> t)
-
-
Constructor Detail
-
MecanumKinematics
MecanumKinematics(Double trackWidth, Double wheelbase, Double lateralMultiplier)
- Parameters:
wheelbase
- distance between wheels on the same side; see the diagram in MecanumKinematics
-
MecanumKinematics
MecanumKinematics(Double trackWidth, Double lateralMultiplier)
- Parameters:
trackWidth
- distance between wheels on opposite sides; see the diagram belowlateralMultiplier
- factor that multiplies strafe velocity to compensate for slip; increase it to boost the distance traveled in the strafe direction
-
MecanumKinematics
MecanumKinematics(Double trackWidth)
- Parameters:
trackWidth
- distance between wheels on opposite sides; see the diagram below
-
-
Method Detail
-
forward
final <Param extends Any> Twist2dDual<Param> forward(MecanumKinematics.WheelIncrements<Param> w)
-
inverse
final <Param extends Any> MecanumKinematics.WheelVelocities<Param> inverse(PoseVelocity2dDual<Param> t)
-
-
-
-