An event data variant 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... | |
bool | operator== (const PeriodicEventData &other) const |
Implements CopyConstructible, CopyAssignable, MoveConstructible, MoveAssignable | |
PeriodicEventData (const PeriodicEventData &)=default | |
PeriodicEventData & | operator= (const PeriodicEventData &)=default |
PeriodicEventData (PeriodicEventData &&)=default | |
PeriodicEventData & | operator= (PeriodicEventData &&)=default |
|
default |
|
default |
double offset_sec | ( | ) | const |
Gets the time after zero when this event should first occur.
|
default |
|
default |
bool operator== | ( | const PeriodicEventData & | other | ) | const |
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.