object TankKinematics
Tank drive kinematic equations based upon the unicycle model. This page gives a motivated derivation.
fun robotToWheelAccelerations(robotPoseAcceleration: Pose2d, trackWidth: Double): List<Double>
Computes the wheel accelerations corresponding to robotPoseAcceleration given trackWidth. |
|
fun robotToWheelVelocities(robotPoseVelocity: Pose2d, trackWidth: Double): List<Double>
Computes the wheel velocities corresponding to robotPoseVelocity given trackWidth. |
|
fun wheelToRobotVelocities(wheelVelocities: List<Double>, trackWidth: Double): Pose2d
Computes the robot velocity corresponding to wheelVelocities and the given drive parameters. |