Package com.pathplanner.lib.events
Class PointTowardsZoneEvent
java.lang.Object
com.pathplanner.lib.events.Event
com.pathplanner.lib.events.PointTowardsZoneEvent
Event for setting the value of a point towards zone trigger
-
Constructor Summary
ConstructorsConstructorDescriptionPointTowardsZoneEvent(double timestamp, String name, boolean active) Create an event for changing the value of a point towards zone triggerPointTowardsZoneEvent(Time timestamp, String name, boolean active) Create an event for changing the value of a point towards zone trigger -
Method Summary
Modifier and TypeMethodDescriptionvoidcancelEvent(EventScheduler eventScheduler) Cancel this event.copyWithTimestamp(double timestampSeconds) Copy this event with a different timestampvoidhandleEvent(EventScheduler eventScheduler) Handle this eventMethods inherited from class com.pathplanner.lib.events.Event
copyWithTimestamp, getTimestamp, getTimestampSeconds, setTimestamp, setTimestamp
-
Constructor Details
-
PointTowardsZoneEvent
Create an event for changing the value of a point towards zone trigger- Parameters:
timestamp- The trajectory timestamp of this eventname- The name of the point towards zone trigger to controlactive- Should the trigger be activated by this event
-
PointTowardsZoneEvent
Create an event for changing the value of a point towards zone trigger- Parameters:
timestamp- The trajectory timestamp of this eventname- The name of the point towards zone trigger to controlactive- Should the trigger be activated by this event
-
-
Method Details
-
handleEvent
Handle this event- Specified by:
handleEventin classEvent- Parameters:
eventScheduler- Reference to the EventScheduler running this event
-
cancelEvent
Description copied from class:EventCancel this event. This will be called if a path following command ends before this event gets handled.- Specified by:
cancelEventin classEvent- Parameters:
eventScheduler- Reference to the EventScheduler handling this event
-
copyWithTimestamp
Description copied from class:EventCopy this event with a different timestamp- Specified by:
copyWithTimestampin classEvent- Parameters:
timestampSeconds- The new timestamp- Returns:
- Copied event with new time
-