Robot Core Documentation
|
Additional Inherited Members | |
![]() | |
Command () | |
![]() | |
Set< Subsystem > | m_requirements = new HashSet<>() |
Command that will run a path following command and trigger event markers along the way
com.pathplanner.lib.commands.FollowPathWithEvents.FollowPathWithEvents | ( | Command | pathFollowingCommand, |
PathPlannerPath | path, | ||
Supplier< Pose2d > | poseSupplier ) |
Constructs a new FollowPathWithEvents command.
pathFollowingCommand | the command to follow the path |
path | the path to follow |
poseSupplier | a supplier for the robot's current pose |
IllegalArgumentException | if an event command requires the drive subsystem |
void com.pathplanner.lib.commands.FollowPathWithEvents.end | ( | boolean | interrupted | ) |
The action to take when the command ends. Called when either the command finishes normally, or when it interrupted/canceled.
Do not schedule commands here that share requirements with this command. Use andThen(Command...)
instead.
interrupted | whether the command was interrupted/canceled |
Reimplemented from edu.wpi.first.wpilibj2.command.Command.
void com.pathplanner.lib.commands.FollowPathWithEvents.execute | ( | ) |
The main body of a command. Called repeatedly while the command is scheduled.
Reimplemented from edu.wpi.first.wpilibj2.command.Command.
void com.pathplanner.lib.commands.FollowPathWithEvents.initialize | ( | ) |
The initial subroutine of a command. Called once when the command is initially scheduled.
Reimplemented from edu.wpi.first.wpilibj2.command.Command.
boolean com.pathplanner.lib.commands.FollowPathWithEvents.isFinished | ( | ) |
Whether the command has finished. Once a command finishes, the scheduler will call its end() method and un-schedule it.
Reimplemented from edu.wpi.first.wpilibj2.command.Command.