◆ ScheduleCommandEvent()
pathplanner::ScheduleCommandEvent::ScheduleCommandEvent |
( |
units::second_t |
timestamp, |
|
|
std::shared_ptr< frc2::Command > |
command |
|
) |
| |
|
inline |
Create an event to schedule a command
- Parameters
-
timestamp | The trajectory timestamp for this event |
command | The command to schedule |
◆ cancelEvent()
void pathplanner::ScheduleCommandEvent::cancelEvent |
( |
EventScheduler * |
eventScheduler | ) |
|
|
inlineoverridevirtual |
Cancel this event. This will be called if a path following command ends before this event gets handled.
- Parameters
-
Implements pathplanner::Event.
◆ copyWithTimestamp()
std::shared_ptr< Event > pathplanner::ScheduleCommandEvent::copyWithTimestamp |
( |
units::second_t |
timestamp | ) |
|
|
inlineoverridevirtual |
Copy this event with a different timestamp
- Parameters
-
timestamp | The new timestamp |
- Returns
- Copied event with new time
Implements pathplanner::Event.
◆ handleEvent()
void pathplanner::ScheduleCommandEvent::handleEvent |
( |
EventScheduler * |
eventScheduler | ) |
|
|
inlineoverridevirtual |
The documentation for this class was generated from the following file: