core / com.acmerobotics.roadrunner.drive / TankKinematics

TankKinematics

object TankKinematics

Tank drive kinematic equations based upon the unicycle model. This page gives a motivated derivation.

Functions

robotToWheelAccelerations

fun robotToWheelAccelerations(robotPoseAcceleration: Pose2d, trackWidth: Double): List<Double>

Computes the wheel accelerations corresponding to robotPoseAcceleration given trackWidth.

robotToWheelVelocities

fun robotToWheelVelocities(robotPoseVelocity: Pose2d, trackWidth: Double): List<Double>

Computes the wheel velocities corresponding to robotPoseVelocity given trackWidth.

wheelToRobotVelocities

fun wheelToRobotVelocities(wheelVelocities: List<Double>, trackWidth: Double): Pose2d

Computes the robot velocity corresponding to wheelVelocities and the given drive parameters.