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. | |
template<typename T> | |
static ConnectionPtr | ConnectBeforePhysicsUpdate (T _subscriber) |
Connect a callback to the before physics update signal. | |
template<typename T> | |
static ConnectionPtr | ConnectCreateEntity (T _subscriber) |
Connect a callback to the add entity signal. | |
template<typename T> | |
static ConnectionPtr | ConnectCreateSensor (T _subscriber) |
Connect to the create sensor signal. | |
template<typename T> | |
static ConnectionPtr | ConnectDeleteEntity (T _subscriber) |
Connect a callback to the delete entity signal. | |
template<typename T> | |
static ConnectionPtr | ConnectDiagTimerStart (T _subscriber) |
Connect a callback to the diagnostic timer start signal. | |
template<typename T> | |
static ConnectionPtr | ConnectDiagTimerStop (T _subscriber) |
Connect a callback to the diagnostic timer stop signal. | |
template<typename T> | |
static ConnectionPtr | ConnectPause (T _subscriber) |
Connect a callback to the pause signal. | |
template<typename T> | |
static ConnectionPtr | ConnectPostRender (T _subscriber) |
Connect a callback to the post render update signal. | |
template<typename T> | |
static ConnectionPtr | ConnectPreRender (T _subscriber) |
Render start signal. | |
template<typename T> | |
static ConnectionPtr | ConnectRemoveSensor (T _subscriber) |
Connect to the remove sensor signal. | |
template<typename T> | |
static ConnectionPtr | ConnectRender (T _subscriber) |
Connect a callback to the render update signal. | |
template<typename T> | |
static ConnectionPtr | ConnectSetSelectedEntity (T _subscriber) |
Connect a callback to the set selected entity signal. | |
template<typename T> | |
static ConnectionPtr | ConnectSigInt (T _subscriber) |
Connect a callback to the sigint event. | |
template<typename T> | |
static ConnectionPtr | ConnectStep (T _subscriber) |
Connect a callback to the step signal. | |
template<typename T> | |
static ConnectionPtr | ConnectStop (T _subscriber) |
Connect a callback to the stop signal. | |
template<typename T> | |
static ConnectionPtr | ConnectTimeReset (T _subscriber) |
Connect to the time reset signal. | |
template<typename T> | |
static ConnectionPtr | ConnectWorldCreated (T _subscriber) |
Connect a callback to the world created signal. | |
template<typename T> | |
static ConnectionPtr | ConnectWorldReset (T _subscriber) |
Connect to the world reset signal. | |
template<typename T> | |
static ConnectionPtr | ConnectWorldUpdateBegin (T _subscriber) |
Connect a callback to the world update start signal. | |
template<typename T> | |
static ConnectionPtr | ConnectWorldUpdateEnd (T _subscriber) |
Connect a callback to the world update end signal. |
Static Public Attributes | |
static EventT< void(std::string)> | addEntity |
An entity has been added. | |
static EventT< void(const common::UpdateInfo &)> | beforePhysicsUpdate |
Collision detection has been done, physics update not yet. | |
static EventT< void(sdf::ElementPtr, const std::string &, const std::string &, const uint32_t)> | createSensor |
Create a sensor. | |
static EventT< void(std::string)> | deleteEntity |
An entity has been deleted. | |
static EventT< void(std::string)> | diagTimerStart |
Diagnostic timer start. | |
static EventT< void(std::string)> | diagTimerStop |
Diagnostic timer stop. | |
static EventT< void(std::string)> | entityCreated |
An entity has been created. | |
static EventT< void(bool)> | pause |
Pause signal. | |
static EventT< void()> | postRender |
Post-Render. | |
static EventT< void()> | preRender |
Pre-render. | |
static EventT< void(std::string)> | removeSensor |
Remove a sensor. | |
static EventT< void()> | render |
Render. | |
static EventT< void(std::string, std::string)> | setSelectedEntity |
An entity has been selected. | |
static EventT< void()> | sigInt |
Simulation SIGINT/SIGTERM signal. | |
static EventT< void()> | step |
Step the simulation once signal. | |
static EventT< void()> | stop |
Simulation stop signal. | |
static EventT< void()> | timeReset |
Time reset signal. | |
static EventT< void(std::string)> | worldCreated |
A world has been created. | |
static EventT< void()> | worldReset |
World reset signal. | |
static EventT< void(const common::UpdateInfo &)> | worldUpdateBegin |
World update has started. | |
static EventT< void()> | worldUpdateEnd |
World update has ended. |
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 addEntity.
|
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 beforePhysicsUpdate.
|
inlinestatic |
Connect a callback to the add entity signal.
[in] | _subscriber | the subscriber to this event |
References entityCreated.
|
inlinestatic |
Connect to the create sensor signal.
[in] | _subscriber | the subscriber to this event |
References createSensor.
|
inlinestatic |
Connect a callback to the delete entity signal.
[in] | _subscriber | the subscriber to this event |
References deleteEntity.
|
inlinestatic |
Connect a callback to the diagnostic timer start signal.
[in] | _subscriber | the subscriber to this event |
References diagTimerStart.
|
inlinestatic |
Connect a callback to the diagnostic timer stop signal.
[in] | _subscriber | the subscriber to this event |
References diagTimerStop.
|
inlinestatic |
Connect a callback to the pause signal.
[in] | _subscriber | the subscriber to this event |
References pause.
|
inlinestatic |
Connect a callback to the post render update signal.
[in] | _subscriber | the subscriber to this event |
References postRender.
|
inlinestatic |
Render start signal.
[in] | _subscriber | the subscriber to this event |
References preRender.
|
inlinestatic |
Connect to the remove sensor signal.
[in] | _subscriber | the subscriber to this event |
References removeSensor.
|
inlinestatic |
Connect a callback to the render update signal.
[in] | _subscriber | the subscriber to this event |
References render.
|
inlinestatic |
Connect a callback to the set selected entity signal.
[in] | _subscriber | the subscriber to this event |
References setSelectedEntity.
|
inlinestatic |
Connect a callback to the sigint event.
[in] | _subscriber | the subscriber to this event |
References sigInt.
|
inlinestatic |
Connect a callback to the step signal.
[in] | _subscriber | the subscriber to this event |
References step.
|
inlinestatic |
Connect a callback to the stop signal.
[in] | _subscriber | the subscriber to this event |
References stop.
|
inlinestatic |
Connect to the time reset signal.
[in] | _subscriber | the subscriber to this event |
References timeReset.
|
inlinestatic |
Connect a callback to the world created signal.
[in] | _subscriber | the subscriber to this event |
References worldCreated.
|
inlinestatic |
Connect to the world reset signal.
[in] | _subscriber | the subscriber to this event |
References worldReset.
|
inlinestatic |
Connect a callback to the world update start signal.
[in] | _subscriber | the subscriber to this event |
References worldUpdateBegin.
|
inlinestatic |
Connect a callback to the world update end signal.
[in] | _subscriber | the subscriber to this event |
References worldUpdateEnd.
|
static |
An entity has been added.
Referenced by ConnectAddEntity().
|
static |
Collision detection has been done, physics update not yet.
Referenced by ConnectBeforePhysicsUpdate().
|
static |
Create a sensor.
Referenced by ConnectCreateSensor().
|
static |
An entity has been deleted.
Referenced by ConnectDeleteEntity().
|
static |
Diagnostic timer start.
Referenced by ConnectDiagTimerStart().
|
static |
Diagnostic timer stop.
Referenced by ConnectDiagTimerStop().
|
static |
An entity has been created.
Referenced by ConnectCreateEntity().
|
static |
Pause signal.
Referenced by ConnectPause().
|
static |
Post-Render.
Referenced by ConnectPostRender().
|
static |
Pre-render.
Referenced by ConnectPreRender().
|
static |
Remove a sensor.
Referenced by ConnectRemoveSensor().
|
static |
Render.
Referenced by ConnectRender().
|
static |
An entity has been selected.
Referenced by ConnectSetSelectedEntity().
|
static |
Simulation SIGINT/SIGTERM signal.
Referenced by ConnectSigInt().
|
static |
Step the simulation once signal.
Referenced by ConnectStep().
|
static |
Simulation stop signal.
Referenced by ConnectStop().
|
static |
Time reset signal.
Referenced by ConnectTimeReset().
|
static |
A world has been created.
Referenced by ConnectWorldCreated().
|
static |
World reset signal.
Referenced by ConnectWorldReset().
|
static |
World update has started.
Referenced by ConnectWorldUpdateBegin().
|
static |
World update has ended.
Referenced by ConnectWorldUpdateEnd().