◆ EventScheduler()
pathplanner::EventScheduler::EventScheduler |
( |
| ) |
|
|
inline |
◆ cancelCommand()
void EventScheduler::cancelCommand |
( |
std::shared_ptr< frc2::Command > |
command | ) |
|
Cancel a command on this scheduler. Do not call this.
- Parameters
-
command | The command to cancel |
◆ end()
void EventScheduler::end |
( |
| ) |
|
End commands currently/events currently being handled by this scheduler. This should be called from the end method of the command running this scheduler.
◆ execute()
void EventScheduler::execute |
( |
units::second_t |
time | ) |
|
Run the scheduler. This should be called from the execute method of the command running this scheduler.
- Parameters
-
time | The current time along the trajectory |
◆ getSchedulerRequirements()
static wpi::SmallSet< frc2::Subsystem *, 4 > pathplanner::EventScheduler::getSchedulerRequirements |
( |
std::shared_ptr< PathPlannerPath > |
path | ) |
|
|
inlinestatic |
Get the event requirements for the given path
- Parameters
-
path | The path to get all requirements for |
- Returns
- Set of event requirements for the given path
◆ initialize()
Initialize the EventScheduler for the given trajectory. This should be called from the initialize method of the command running this scheduler.
- Parameters
-
trajectory | The trajectory this scheduler should handle events for |
◆ scheduleCommand()
void EventScheduler::scheduleCommand |
( |
std::shared_ptr< frc2::Command > |
command | ) |
|
Schedule a command on this scheduler. This will cancel other commands that share requirements with the given command. Do not call this.
- Parameters
-
command | The command to schedule |
The documentation for this class was generated from the following files:
- src/main/native/include/pathplanner/lib/events/EventScheduler.h
- src/main/native/cpp/pathplanner/lib/events/EventScheduler.cpp