core / com.acmerobotics.roadrunner.drive / TankKinematics / robotToWheelVelocities

robotToWheelVelocities

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

Computes the wheel velocities corresponding to robotPoseVelocity given trackWidth.

Parameters

robotPoseVelocity - velocity of the robot in its reference frame

trackWidth - lateral distance between pairs of wheels on different sides of the robot