MecanumKinematics

data class MecanumKinematics @JvmOverloads constructor(val trackWidth: Double, val lateralMultiplier: Double = 1.0) : RobotKinematics<MecanumKinematics.MecanumWheelIncrements<*>, WheelVelocities<*>>

Parameters

trackWidth

distance between wheels on opposite sides; see the diagram below Wheelbase and track width diagram

lateralMultiplier

factor that multiplies strafe velocity to compensate for slip; increase it to boost the distance traveled in the strafe direction

Constructors

Link copied to clipboard
constructor(trackWidth: Double, wheelbase: Double, lateralMultiplier: Double = 1.0)
constructor(trackWidth: Double, lateralMultiplier: Double = 1.0)

Types

Link copied to clipboard
data class MecanumWheelIncrements<Param>(val leftFront: DualNum<Param>, val leftBack: DualNum<Param>, val rightBack: DualNum<Param>, val rightFront: DualNum<Param>) : WheelIncrements<Param>
Link copied to clipboard
data class MecanumWheelVelocities<Param>(val leftFront: DualNum<Param>, val leftBack: DualNum<Param>, val rightBack: DualNum<Param>, val rightFront: DualNum<Param>) : WheelVelocities<Param>

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard

Performs inverse kinematics: computes wheel velocities required to achieve the desired robot velocity.