Package lib.commands.trajectory
Interface TrajectoryCommand
- All Known Subinterfaces:
TrajectoryCommand.Multi,TrajectoryCommand.Single
- All Known Implementing Classes:
AsyncPathPlannerSequence,ParallelDeadlinePathPlannerGroup,ParallelPathPlannerGroup,SequentialPathPlannerGroup
public interface TrajectoryCommand
A command that includes trajectory data, most likely a PathPlanner path.
Command compositions can be replaced with a custom wrapper that serves the same
functionality but also implements this interface:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interface -
Method Summary
Modifier and TypeMethodDescriptionstatic TrajectoryCommand[]filterTrajCommands(edu.wpi.first.wpilibj2.command.Command... commands) static TrajectoryCommandfindTrajCommand(edu.wpi.first.wpilibj2.command.Command... commands) doubleedu.wpi.first.math.geometry.Pose2dedu.wpi.first.math.geometry.Pose2ddefault edu.wpi.first.math.geometry.Pose2d[]edu.wpi.first.math.geometry.Pose2d[]getTrajPreview(int steps)
-
Method Details
-
getDuration
double getDuration() -
getTrajPreview
edu.wpi.first.math.geometry.Pose2d[] getTrajPreview(int steps) -
getTrajPreview
default edu.wpi.first.math.geometry.Pose2d[] getTrajPreview() -
getInitialPose
edu.wpi.first.math.geometry.Pose2d getInitialPose() -
getEndPose
edu.wpi.first.math.geometry.Pose2d getEndPose() -
filterTrajCommands
-
findTrajCommand
-