An Event class to get notifications for simulator events. More...
#include <common/common.hh>
Static Public Member Functions | |
template<typename T > | |
static ConnectionPtr | ConnectAddEntity (T _subscriber) |
Connect a callback to the add entity signal. More... | |
template<typename T > | |
static ConnectionPtr | ConnectBeforePhysicsUpdate (T _subscriber) |
Connect a callback to the before physics update signal. More... | |
template<typename T > | |
static ConnectionPtr | ConnectCreateEntity (T _subscriber) |
Connect a callback to the add entity signal. More... | |
template<typename T > | |
static ConnectionPtr | ConnectCreateSensor (T _subscriber) |
Connect to the create sensor signal. More... | |
template<typename T > | |
static ConnectionPtr | ConnectDeleteEntity (T _subscriber) |
Connect a callback to the delete entity signal. More... | |
template<typename T > | |
static ConnectionPtr | ConnectDiagTimerStart (T _subscriber) |
Connect a callback to the diagnostic timer start signal. More... | |
template<typename T > | |
static ConnectionPtr | ConnectDiagTimerStop (T _subscriber) |
Connect a callback to the diagnostic timer stop signal. More... | |
template<typename T > | |
static ConnectionPtr | ConnectPause (T _subscriber) |
Connect a callback to the pause signal. More... | |
template<typename T > | |
static ConnectionPtr | ConnectPostRender (T _subscriber) |
Connect a callback to the post render update signal. More... | |
template<typename T > | |
static ConnectionPtr | ConnectPreRender (T _subscriber) |
Render start signal. More... | |
template<typename T > | |
static ConnectionPtr | ConnectRemoveSensor (T _subscriber) |
Connect to the remove sensor signal. More... | |
template<typename T > | |
static ConnectionPtr | ConnectRender (T _subscriber) |
Connect a callback to the render update signal. More... | |
template<typename T > | |
static ConnectionPtr | ConnectSetSelectedEntity (T _subscriber) |
Connect a callback to the set selected entity signal. More... | |
template<typename T > | |
static ConnectionPtr | ConnectSigInt (T _subscriber) |
Connect a callback to the sigint event. More... | |
template<typename T > | |
static ConnectionPtr | ConnectStep (T _subscriber) |
Connect a callback to the step signal. More... | |
template<typename T > | |
static ConnectionPtr | ConnectStop (T _subscriber) |
Connect a callback to the stop signal. More... | |
template<typename T > | |
static ConnectionPtr | ConnectTimeReset (T _subscriber) |
Connect to the time reset signal. More... | |
template<typename T > | |
static ConnectionPtr | ConnectWorldCreated (T _subscriber) |
Connect a callback to the world created signal. More... | |
template<typename T > | |
static ConnectionPtr | ConnectWorldReset (T _subscriber) |
Connect to the world reset signal. More... | |
template<typename T > | |
static ConnectionPtr | ConnectWorldUpdateBegin (T _subscriber) |
Connect a callback to the world update start signal. More... | |
template<typename T > | |
static ConnectionPtr | ConnectWorldUpdateEnd (T _subscriber) |
Connect a callback to the world update end signal. More... | |
Static Public Attributes | |
static EventT< void(std::string)> | addEntity |
An entity has been added. More... | |
static EventT< void(const common::UpdateInfo &)> | beforePhysicsUpdate |
Collision detection has been done, physics update not yet. More... | |
static EventT< void(sdf::ElementPtr, const std::string &, const std::string &, const uint32_t)> | createSensor |
Create a sensor. More... | |
static EventT< void(std::string)> | deleteEntity |
An entity has been deleted. More... | |
static EventT< void(std::string)> | diagTimerStart |
Diagnostic timer start. More... | |
static EventT< void(std::string)> | diagTimerStop |
Diagnostic timer stop. More... | |
static EventT< void(std::string)> | entityCreated |
An entity has been created. More... | |
static EventT< void(bool)> | pause |
Pause signal. More... | |
static EventT< void()> | postRender |
Post-Render. More... | |
static EventT< void()> | preRender |
Pre-render. More... | |
static EventT< void(std::string)> | removeSensor |
Remove a sensor. More... | |
static EventT< void()> | render |
Render. More... | |
static EventT< void(std::string, std::string)> | setSelectedEntity |
An entity has been selected. More... | |
static EventT< void()> | sigInt |
Simulation stop signal. More... | |
static EventT< void()> | step |
Step the simulation once signal. More... | |
static EventT< void()> | stop |
Simulation stop signal. More... | |
static EventT< void()> | timeReset |
Time reset signal. More... | |
static EventT< void(std::string)> | worldCreated |
A world has been created. More... | |
static EventT< void()> | worldReset |
World reset signal. More... | |
static EventT< void(const common::UpdateInfo &)> | worldUpdateBegin |
World update has started. More... | |
static EventT< void()> | worldUpdateEnd |
World update has ended. More... | |
An Event class to get notifications for simulator events.
|
inlinestatic |
Connect a callback to the add entity signal.
[in] | _subscriber | the subscriber to this event |
References Events::addEntity, and EventT< T >::Connect().
|
inlinestatic |
Connect a callback to the before physics update signal.
[in] | _subscriber | the subscriber to this event |
The signal is called after collision detection has finished and before the physics update step. So you can e.g. change some forces depending on the collisions that have occured.
References Events::beforePhysicsUpdate, and EventT< T >::Connect().
|
inlinestatic |
Connect a callback to the add entity signal.
[in] | _subscriber | the subscriber to this event |
References EventT< T >::Connect(), and Events::entityCreated.
|
inlinestatic |
Connect to the create sensor signal.
[in] | _subscriber | the subscriber to this event |
References EventT< T >::Connect(), and Events::createSensor.
|
inlinestatic |
Connect a callback to the delete entity signal.
[in] | _subscriber | the subscriber to this event |
References EventT< T >::Connect(), and Events::deleteEntity.
|
inlinestatic |
Connect a callback to the diagnostic timer start signal.
[in] | _subscriber | the subscriber to this event |
References EventT< T >::Connect(), and Events::diagTimerStart.
|
inlinestatic |
Connect a callback to the diagnostic timer stop signal.
[in] | _subscriber | the subscriber to this event |
References EventT< T >::Connect(), and Events::diagTimerStop.
|
inlinestatic |
Connect a callback to the pause signal.
[in] | _subscriber | the subscriber to this event |
References EventT< T >::Connect(), and Events::pause.
|
inlinestatic |
Connect a callback to the post render update signal.
[in] | _subscriber | the subscriber to this event |
References EventT< T >::Connect(), and Events::postRender.
|
inlinestatic |
Render start signal.
[in] | _subscriber | the subscriber to this event |
References EventT< T >::Connect(), and Events::preRender.
|
inlinestatic |
Connect to the remove sensor signal.
[in] | _subscriber | the subscriber to this event |
References EventT< T >::Connect(), and Events::removeSensor.
|
inlinestatic |
Connect a callback to the render update signal.
[in] | _subscriber | the subscriber to this event |
References EventT< T >::Connect(), and Events::render.
|
inlinestatic |
Connect a callback to the set selected entity signal.
[in] | _subscriber | the subscriber to this event |
References EventT< T >::Connect(), and Events::setSelectedEntity.
|
inlinestatic |
Connect a callback to the sigint event.
[in] | _subscriber | the subscriber to this event |
References EventT< T >::Connect(), and Events::sigInt.
|
inlinestatic |
Connect a callback to the step signal.
[in] | _subscriber | the subscriber to this event |
References EventT< T >::Connect(), and Events::step.
|
inlinestatic |
Connect a callback to the stop signal.
[in] | _subscriber | the subscriber to this event |
References EventT< T >::Connect(), and Events::stop.
|
inlinestatic |
Connect to the time reset signal.
[in] | _subscriber | the subscriber to this event |
References EventT< T >::Connect(), and Events::timeReset.
|
inlinestatic |
Connect a callback to the world created signal.
[in] | _subscriber | the subscriber to this event |
References EventT< T >::Connect(), and Events::worldCreated.
|
inlinestatic |
Connect to the world reset signal.
[in] | _subscriber | the subscriber to this event |
References EventT< T >::Connect(), and Events::worldReset.
|
inlinestatic |
Connect a callback to the world update start signal.
[in] | _subscriber | the subscriber to this event |
References EventT< T >::Connect(), and Events::worldUpdateBegin.
|
inlinestatic |
Connect a callback to the world update end signal.
[in] | _subscriber | the subscriber to this event |
References EventT< T >::Connect(), and Events::worldUpdateEnd.
|
static |
An entity has been added.
Referenced by Events::ConnectAddEntity().
|
static |
Collision detection has been done, physics update not yet.
Referenced by Events::ConnectBeforePhysicsUpdate().
|
static |
Create a sensor.
Referenced by Events::ConnectCreateSensor().
|
static |
An entity has been deleted.
Referenced by Events::ConnectDeleteEntity().
|
static |
Diagnostic timer start.
Referenced by Events::ConnectDiagTimerStart().
|
static |
Diagnostic timer stop.
Referenced by Events::ConnectDiagTimerStop().
|
static |
An entity has been created.
Referenced by Events::ConnectCreateEntity().
|
static |
Pause signal.
Referenced by Events::ConnectPause().
|
static |
Post-Render.
Referenced by Events::ConnectPostRender().
|
static |
Pre-render.
Referenced by Events::ConnectPreRender().
|
static |
Remove a sensor.
Referenced by Events::ConnectRemoveSensor().
|
static |
Render.
Referenced by Events::ConnectRender().
|
static |
An entity has been selected.
Referenced by Events::ConnectSetSelectedEntity().
|
static |
Simulation stop signal.
Referenced by Events::ConnectSigInt().
|
static |
Step the simulation once signal.
Referenced by Events::ConnectStep().
|
static |
Simulation stop signal.
Referenced by Events::ConnectStop().
|
static |
Time reset signal.
Referenced by Events::ConnectTimeReset().
|
static |
A world has been created.
Referenced by Events::ConnectWorldCreated().
|
static |
World reset signal.
Referenced by Events::ConnectWorldReset().
|
static |
World update has started.
Referenced by Events::ConnectWorldUpdateBegin().
|
static |
World update has ended.
Referenced by Events::ConnectWorldUpdateEnd().