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

robotToWheelVelocities

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

Computes the wheel velocities corresponding to robotVel given trackWidth.

Parameters

robotVel - velocity of the robot in its reference frame

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