◆ OneShotTriggerEvent()
pathplanner::OneShotTriggerEvent::OneShotTriggerEvent |
( |
units::second_t |
timestamp, |
|
|
std::string |
name |
|
) |
| |
|
inline |
Create an event for activating a trigger, then deactivating it the next loop
- Parameters
-
timestamp | The trajectory timestamp of this event |
name | The name of the trigger to control |
◆ cancelEvent()
void pathplanner::OneShotTriggerEvent::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::OneShotTriggerEvent::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::OneShotTriggerEvent::handleEvent |
( |
EventScheduler * |
eventScheduler | ) |
|
|
inlineoverridevirtual |
The documentation for this class was generated from the following file: