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

wheelToRobotVelocities

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

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

Parameters

wheelVelocities - wheel velocities (or wheel position deltas)

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