MecanumKinematics

data class MecanumKinematics @JvmOverloads constructor(val trackWidth: Double, val lateralMultiplier: Double = 1.0)

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
fun MecanumKinematics(    trackWidth: Double,     wheelbase: Double,     lateralMultiplier: Double = 1.0)
Link copied to clipboard
fun MecanumKinematics(trackWidth: Double, lateralMultiplier: Double = 1.0)

Types

Link copied to clipboard
data class WheelIncrements<Param>(    val leftFront: DualNum<Param>,     val leftBack: DualNum<Param>,     val rightBack: DualNum<Param>,     val rightFront: DualNum<Param>)
Link copied to clipboard
inner class WheelVelConstraint(val maxWheelVel: Double) : VelConstraint
Link copied to clipboard
data class WheelVelocities<Param>(    val leftFront: DualNum<Param>,     val leftBack: DualNum<Param>,     val rightBack: DualNum<Param>,     val rightFront: DualNum<Param>)

Functions

Link copied to clipboard
Link copied to clipboard
fun <Param> inverse(t: Twist2dDual<Param>): MecanumKinematics.WheelVelocities<Param>

Properties

Link copied to clipboard
val lateralMultiplier: Double = 1.0
Link copied to clipboard
val trackWidth: Double