SwerveModulePosition

class wpimath.kinematics.SwerveModulePosition(distance: wpimath.units.meters = 0, angle: wpimath.geometry._geometry.Rotation2d = Rotation2d(0.000000))

Bases: pybind11_object

Represents the position of one swerve module.

WPIStruct = <capsule object "WPyStruct">
property angle wpimath.geometry._geometry.Rotation2d

Angle of the module.

property distance wpimath.units.meters

Distance the wheel of a module has traveled

property distance_ft
interpolate(endValue: wpimath.kinematics._kinematics.SwerveModulePosition, t: float) wpimath.kinematics._kinematics.SwerveModulePosition