KiwiKinematics

class KiwiKinematics(radius: Double)

Used to compute the various physics related to the kiwi drive (Killough platform).

This was based off of MecanumKinematics and TankKinematics.

Constructors

Link copied to clipboard
constructor(radius: Double)

Types

Link copied to clipboard
data class WheelTicks<Param>(val red: DualNum<Param>, val green: DualNum<Param>, val blue: DualNum<Param>)

Represents the amount of ticks each wheel on the drive rotated.

Link copied to clipboard
inner class WheelVelConstraint(maxWheelVel: Double) : VelConstraint
Link copied to clipboard
data class WheelVelocities<Param>(val red: DualNum<Param>, val green: DualNum<Param>, val blue: DualNum<Param>)

Represents the velocities of each wheel on the drive.

Functions

Link copied to clipboard

Calculates the position and rotation of the robot based off of the wheel ticks.

Link copied to clipboard
fun <Param> inverse(t: PoseVelocity2dDual<Param>): KiwiKinematics.WheelVelocities<Param>

Calculates the velocity of each wheel from the linear and angular velocity of the robot.