Class SwerveModuleTrajectoryState

java.lang.Object
edu.wpi.first.math.kinematics.SwerveModuleState
com.pathplanner.lib.trajectory.SwerveModuleTrajectoryState
All Implemented Interfaces:
ProtobufSerializable, StructSerializable, WPISerializable, Comparable<SwerveModuleState>

public class SwerveModuleTrajectoryState extends SwerveModuleState
Extension of a SwerveModuleState to include its field-relative position and angle
  • Field Details

    • fieldAngle

      protected Rotation2d fieldAngle
      Field relative angle of the swerve module
    • fieldPos

      protected Translation2d fieldPos
      Position of this module on the field
    • deltaPos

      protected double deltaPos
      Difference in module position between this state and the previous state
  • Constructor Details

    • SwerveModuleTrajectoryState

      public SwerveModuleTrajectoryState()