Swerve Kinematics
data class SwerveKinematics(val modules: List<Vector2d>) : RobotKinematics<SwerveKinematics.SwerveWheelIncrements<*>, SwerveKinematics.SwerveWheelVelocities<*>>
Parameters
modules
list of swerve module configurations (position and orientation)
Types
Link copied to clipboard
data class SwerveWheelIncrements<Param>(val deltas: List<SwerveModuleIncrements<Param>>) : WheelIncrements<Param>
Link copied to clipboard
data class SwerveWheelVelocities<Param>(val states: List<SwerveModuleState<Param>>) : WheelVelocities<Param>
Functions
Link copied to clipboard
Link copied to clipboard
open override fun <Param> inverse(t: PoseVelocity2dDual<Param>): SwerveKinematics.SwerveWheelVelocities<Param>
Performs inverse kinematics: computes wheel velocities required to achieve the desired robot velocity.