Package xbot.common.trajectory
Class XbotSwervePoint
java.lang.Object
xbot.common.trajectory.XbotSwervePoint
- All Implemented Interfaces:
ProvidesInterpolationData
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionXbotSwervePoint(double x, double y, double degrees, double secondsToPoint) XbotSwervePoint(Pose2d keyPose, double secondsToPoint) XbotSwervePoint(Translation2d translation, Rotation2d rotation, double secondsToPoint) -
Method Summary
Modifier and TypeMethodDescriptionstatic XbotSwervePointcreatePotentiallyFilppedXbotSwervePoint(Pose2d pose, double durationInSeconds) static XbotSwervePointcreatePotentiallyFilppedXbotSwervePoint(Translation2d targetLocation, Rotation2d targetHeading, double durationInSeconds) static TrajectorygenerateTrajectory(List<XbotSwervePoint> swervePoints) doublevoidsetKinematics(SwervePointKinematics kinematics) void
-
Field Details
-
keyPose
-
secondsToPoint
public double secondsToPoint
-
-
Constructor Details
-
XbotSwervePoint
-
XbotSwervePoint
-
XbotSwervePoint
public XbotSwervePoint(double x, double y, double degrees, double secondsToPoint)
-
-
Method Details
-
setKinematics
-
getKinematics
- Specified by:
getKinematicsin interfaceProvidesInterpolationData
-
setPose
-
generateTrajectory
-
getTranslation2d
- Specified by:
getTranslation2din interfaceProvidesInterpolationData
-
getSecondsForSegment
public double getSecondsForSegment()- Specified by:
getSecondsForSegmentin interfaceProvidesInterpolationData
-
getRotation2d
- Specified by:
getRotation2din interfaceProvidesInterpolationData
-
createPotentiallyFilppedXbotSwervePoint
public static XbotSwervePoint createPotentiallyFilppedXbotSwervePoint(Translation2d targetLocation, Rotation2d targetHeading, double durationInSeconds) -
createPotentiallyFilppedXbotSwervePoint
public static XbotSwervePoint createPotentiallyFilppedXbotSwervePoint(Pose2d pose, double durationInSeconds)
-