SwerveKinematics

data class SwerveKinematics(val modules: <Error class: unknown class><<Error class: unknown class>>) : RobotKinematics<SwerveKinematics.SwerveWheelIncrements<*>, SwerveKinematics.SwerveWheelVelocities<*>>

Kinematics for a swerve drive train.

Parameters

modules

list of swerve module configurations (position and orientation)

Constructors

Link copied to clipboard
constructor(modules: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
data class SwerveWheelIncrements<Param>(val deltas: <Error class: unknown class><<Error class: unknown class><Param>>)
Link copied to clipboard
data class SwerveWheelVelocities<Param>(val states: <Error class: unknown class><<Error class: unknown class><Param>>)

Properties

Link copied to clipboard
val modules: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard

Performs forward kinematics: computes the twist (pose delta) that occurred based on the given wheel increments.

Performs forward kinematics: computes the chassis velocity required to achieve the given wheel velocities.

open fun <Param> forward(increments: SwerveKinematics.SwerveWheelIncrements<*>): <Error class: unknown class><Param>
open fun <Param> forward(velocities: SwerveKinematics.SwerveWheelVelocities<*>): <Error class: unknown class><Param>
Link copied to clipboard

Performs inverse kinematics: computes wheel velocities required to achieve the desired robot velocity.

open fun <Param> inverse(velocity: <Error class: unknown class><Param>): SwerveKinematics.SwerveWheelVelocities<Param>