Package xbot.common.trajectory
Class XbotSwervePoint
java.lang.Object
xbot.common.trajectory.XbotSwervePoint
- All Implemented Interfaces:
ProvidesInterpolationData
-
Field Summary
-
Constructor Summary
ConstructorDescriptionXbotSwervePoint
(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 XbotSwervePoint
createPotentiallyFilppedXbotSwervePoint
(Pose2d pose, double durationInSeconds) static XbotSwervePoint
createPotentiallyFilppedXbotSwervePoint
(Translation2d targetLocation, Rotation2d targetHeading, double durationInSeconds) static Trajectory
generateTrajectory
(List<XbotSwervePoint> swervePoints) double
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
-
setPose
-
generateTrajectory
-
getTranslation2d
- Specified by:
getTranslation2d
in interfaceProvidesInterpolationData
-
getSecondsForSegment
public double getSecondsForSegment()- Specified by:
getSecondsForSegment
in interfaceProvidesInterpolationData
-
getRotation2d
- Specified by:
getRotation2d
in interfaceProvidesInterpolationData
-
createPotentiallyFilppedXbotSwervePoint
public static XbotSwervePoint createPotentiallyFilppedXbotSwervePoint(Translation2d targetLocation, Rotation2d targetHeading, double durationInSeconds) -
createPotentiallyFilppedXbotSwervePoint
public static XbotSwervePoint createPotentiallyFilppedXbotSwervePoint(Pose2d pose, double durationInSeconds)
-