core / com.acmerobotics.roadrunner.kinematics / SwerveKinematics / robotToModuleOrientations

robotToModuleOrientations

@JvmStatic @JvmOverloads fun robotToModuleOrientations(robotVel: Pose2d, trackWidth: Double, wheelBase: Double = trackWidth): List<Double> (source)

Computes the module orientations (in radians) corresponding to robotVel given the provided trackWidth and wheelBase.

Parameters

robotVel - velocity of the robot in its reference frame

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

wheelBase - distance between pairs of wheels on the same side of the robot