Package com.pathplanner.lib.trajectory
Class SwerveModuleTrajectoryState
java.lang.Object
edu.wpi.first.math.kinematics.SwerveModuleState
com.pathplanner.lib.trajectory.SwerveModuleTrajectoryState
- All Implemented Interfaces:
ProtobufSerializable
,StructSerializable
,WPISerializable
,Comparable<SwerveModuleState>
Extension of a SwerveModuleState to include its field-relative position and angle
-
Field Summary
Modifier and TypeFieldDescriptionprotected double
Difference in module position between this state and the previous stateprotected Rotation2d
Field relative angle of the swerve moduleprotected Translation2d
Position of this module on the fieldFields inherited from class edu.wpi.first.math.kinematics.SwerveModuleState
angle, proto, speedMetersPerSecond, struct
-
Constructor Summary
-
Method Summary
Methods inherited from class edu.wpi.first.math.kinematics.SwerveModuleState
compareTo, cosineScale, equals, hashCode, optimize, optimize, toString
-
Field Details
-
fieldAngle
Field relative angle of the swerve module -
fieldPos
Position of this module on the field -
deltaPos
protected double deltaPosDifference in module position between this state and the previous state
-
-
Constructor Details
-
SwerveModuleTrajectoryState
public SwerveModuleTrajectoryState()
-