PathPlannerLib
Loading...
Searching...
No Matches
pathplanner::PointTowardsZoneEvent Class Reference
Inheritance diagram for pathplanner::PointTowardsZoneEvent:
pathplanner::Event

Public Member Functions

 PointTowardsZoneEvent (units::second_t timestamp, std::string name, bool active)
 
void handleEvent (EventScheduler *eventScheduler) override
 
void cancelEvent (EventScheduler *eventScheduler) override
 
std::shared_ptr< EventcopyWithTimestamp (units::second_t timestamp) override
 
- Public Member Functions inherited from pathplanner::Event
constexpr Event (units::second_t timestamp)
 
constexpr units::second_t getTimestamp () const
 
constexpr void setTimestamp (units::second_t timestamp)
 
virtual void handleEvent (EventScheduler *eventScheduler)=0
 
virtual void cancelEvent (EventScheduler *eventScheduler)=0
 
virtual std::shared_ptr< EventcopyWithTimestamp (units::second_t timestamp)=0
 

Constructor & Destructor Documentation

◆ PointTowardsZoneEvent()

pathplanner::PointTowardsZoneEvent::PointTowardsZoneEvent ( units::second_t  timestamp,
std::string  name,
bool  active 
)
inline

Create an event for changing the value of a point towards zone trigger

Parameters
timestampThe trajectory timestamp of this event
nameThe name of the point towards zone trigger to control
activeShould the trigger be activated by this event

Member Function Documentation

◆ cancelEvent()

void pathplanner::PointTowardsZoneEvent::cancelEvent ( EventScheduler eventScheduler)
inlineoverridevirtual

Cancel this event. This will be called if a path following command ends before this event gets handled.

Parameters
eventSchedulerReference to the EventScheduler handling this event

Implements pathplanner::Event.

◆ copyWithTimestamp()

std::shared_ptr< Event > pathplanner::PointTowardsZoneEvent::copyWithTimestamp ( units::second_t  timestamp)
inlineoverridevirtual

Copy this event with a different timestamp

Parameters
timestampThe new timestamp
Returns
Copied event with new time

Implements pathplanner::Event.

◆ handleEvent()

void pathplanner::PointTowardsZoneEvent::handleEvent ( EventScheduler eventScheduler)
inlineoverridevirtual

Handle this event

Parameters
eventSchedulerPointer to the EventScheduler handling this event

Implements pathplanner::Event.


The documentation for this class was generated from the following file: