Drake
|
A token describing an event that recurs on a fixed period.
The events are triggered at time = offset_sec + i * period_sec, where i is a non-negative integer.
#include <drake/systems/framework/event.h>
Public Member Functions | |
PeriodicEventData () | |
double | period_sec () const |
Gets the period with which this event should recur. More... | |
void | set_period_sec (double period_sec) |
Sets the period with which this event should recur. More... | |
double | offset_sec () const |
Gets the time after zero when this event should first occur. More... | |
void | set_offset_sec (double offset_sec) |
Sets the time after zero when this event should first occur. More... | |
Implements CopyConstructible, CopyAssignable, MoveConstructible, MoveAssignable | |
PeriodicEventData (const PeriodicEventData &)=default | |
PeriodicEventData & | operator= (const PeriodicEventData &)=default |
PeriodicEventData (PeriodicEventData &&)=default | |
PeriodicEventData & | operator= (PeriodicEventData &&)=default |
![]() | |
EventData () | |
virtual | ~EventData () |
virtual std::unique_ptr< EventData > | Clone () const |
EventData (const EventData &)=default | |
EventData & | operator= (const EventData &)=default |
EventData (EventData &&)=default | |
EventData & | operator= (EventData &&)=default |
Additional Inherited Members |
|
default |
|
default |
double offset_sec | ( | ) | const |
Gets the time after zero when this event should first occur.
|
default |
|
default |
double period_sec | ( | ) | const |
Gets the period with which this event should recur.
void set_offset_sec | ( | double | offset_sec | ) |
Sets the time after zero when this event should first occur.
void set_period_sec | ( | double | period_sec | ) |
Sets the period with which this event should recur.