43 public:
template<
typename T>
45 {
return pause.Connect(_subscriber); }
52 { pause.Disconnect(_subscriber->Id()); }
58 public:
template<
typename T>
60 {
return step.Connect(_subscriber); }
66 { step.Disconnect(_subscriber->Id()); }
72 public:
template<
typename T>
74 {
return stop.Connect(_subscriber); }
80 {
stop.Disconnect(_subscriber->Id()); }
86 public:
template<
typename T>
88 {
return worldCreated.Connect(_subscriber); }
93 { worldCreated.Disconnect(_subscriber->Id()); }
99 public:
template<
typename T>
101 {
return entityCreated.Connect(_subscriber); }
107 { entityCreated.Disconnect(_subscriber->Id()); }
113 public:
template<
typename T>
115 {
return setSelectedEntity.Connect(_subscriber); }
121 { setSelectedEntity.Disconnect(_subscriber->Id()); }
126 public:
template<
typename T>
128 {
return deleteEntity.Connect(_subscriber); }
134 { deleteEntity.Disconnect(_subscriber->Id()); }
139 public:
template<
typename T>
141 {
return addEntity.Connect(_subscriber); }
147 { addEntity.Disconnect(_subscriber->Id()); }
153 public:
template<
typename T>
155 {
return worldUpdateBegin.Connect(_subscriber); }
160 public:
static void DisconnectWorldUpdateBegin(
171 public:
template<
typename T>
173 {
return beforePhysicsUpdate.Connect(_subscriber); }
181 { beforePhysicsUpdate.Disconnect(_subscriber->Id()); }
187 public:
template<
typename T>
189 {
return worldUpdateEnd.Connect(_subscriber); }
195 { worldUpdateEnd.Disconnect(_subscriber->Id()); }
201 public:
template<
typename T>
203 {
return worldReset.Connect(_subscriber); }
210 { worldReset.Disconnect(_subscriber->Id()); }
216 public:
template<
typename T>
218 {
return timeReset.Connect(_subscriber); }
225 { timeReset.Disconnect(_subscriber->Id()); }
231 public:
template<
typename T>
233 {
return removeSensor.Connect(_subscriber); }
240 { removeSensor.Disconnect(_subscriber->Id()); }
246 public:
template<
typename T>
248 {
return createSensor.Connect(_subscriber); }
255 { createSensor.Disconnect(_subscriber->Id()); }
261 public:
template<
typename T>
263 {
return preRender.Connect(_subscriber); }
269 { preRender.Disconnect(_subscriber->Id()); }
274 public:
template<
typename T>
276 {
return render.Connect(_subscriber); }
282 { render.Disconnect(_subscriber->Id()); }
287 public:
template<
typename T>
289 {
return postRender.Connect(_subscriber); }
295 { postRender.Disconnect(_subscriber->Id()); }
300 public:
template<
typename T>
302 {
return diagTimerStart.Connect(_subscriber); }
308 { diagTimerStart.Disconnect(_subscriber->Id()); }
314 public:
template<
typename T>
316 {
return diagTimerStop.Connect(_subscriber); }
322 { diagTimerStop.Disconnect(_subscriber->Id()); }
328 public:
template<
typename T>
330 {
return sigInt.Connect(_subscriber); }
336 { sigInt.Disconnect(_subscriber->Id()); }
409 public:
static EventT<void (sdf::ElementPtr,
static void DisconnectPause(ConnectionPtr _subscriber) GAZEBO_DEPRECATED(8.0)
Disconnect a callback from the pause signal.
Definition: Events.hh:50
static ConnectionPtr ConnectSigInt(T _subscriber)
Connect a callback to the sigint event.
Definition: Events.hh:329
static EventT< void(std::string, std::string)> setSelectedEntity
An entity has been selected.
Definition: Events.hh:357
static ConnectionPtr ConnectBeforePhysicsUpdate(T _subscriber)
Connect a callback to the before physics update signal.
Definition: Events.hh:172
static void DisconnectDeleteEntity(ConnectionPtr _subscriber) GAZEBO_DEPRECATED(8.0)
Disconnect a callback from the delete entity signal.
Definition: Events.hh:132
static void DisconnectRemoveSensor(ConnectionPtr _subscriber) GAZEBO_DEPRECATED(8.0)
Disconnect from the remove sensor signal.
Definition: Events.hh:238
static ConnectionPtr ConnectStop(T _subscriber)
Connect a callback to the stop signal.
Definition: Events.hh:73
static void DisconnectSigInt(ConnectionPtr _subscriber) GAZEBO_DEPRECATED(8.0)
Disconnect a callback from the sigint event.
Definition: Events.hh:334
An Event class to get notifications for simulator events.
Definition: Events.hh:37
static void DisconnectDiagTimerStart(ConnectionPtr _subscriber) GAZEBO_DEPRECATED(8.0)
Disconnect a callback from the diagnostic timer start signal.
Definition: Events.hh:306
static void DisconnectRender(ConnectionPtr _subscriber) GAZEBO_DEPRECATED(8.0)
Disconnect a callback from the render update signal.
Definition: Events.hh:280
static ConnectionPtr ConnectWorldUpdateBegin(T _subscriber)
Connect a callback to the world update start signal.
Definition: Events.hh:154
static void DisconnectAddEntity(ConnectionPtr _subscriber) GAZEBO_DEPRECATED(8.0)
Disconnect a callback from the add entity signal.
Definition: Events.hh:145
static void DisconnectPostRender(ConnectionPtr _subscriber) GAZEBO_DEPRECATED(8.0)
Disconnect a callback from the post render update signal.
Definition: Events.hh:293
static void DisconnectPreRender(ConnectionPtr _subscriber) GAZEBO_DEPRECATED(8.0)
Disconnect a render start signal.
Definition: Events.hh:267
static ConnectionPtr ConnectCreateSensor(T _subscriber)
Connect to the create sensor signal.
Definition: Events.hh:247
static ConnectionPtr ConnectTimeReset(T _subscriber)
Connect to the time reset signal.
Definition: Events.hh:217
static void DisconnectSetSelectedEntity(ConnectionPtr _subscriber) GAZEBO_DEPRECATED(8.0)
Disconnect a callback from the set selected entity signal.
Definition: Events.hh:119
static ConnectionPtr ConnectWorldReset(T _subscriber)
Connect to the world reset signal.
Definition: Events.hh:202
static EventT< void()> worldUpdateEnd
World update has ended.
Definition: Events.hh:373
static EventT< void(const common::UpdateInfo &)> worldUpdateBegin
World update has started.
Definition: Events.hh:366
static EventT< void(const common::UpdateInfo &)> beforePhysicsUpdate
Collision detection has been done, physics update not yet.
Definition: Events.hh:370
static void DisconnectWorldReset(ConnectionPtr _subscriber) GAZEBO_DEPRECATED(8.0)
Disconnect from the world reset signal.
Definition: Events.hh:208
static ConnectionPtr ConnectWorldUpdateEnd(T _subscriber)
Connect a callback to the world update end signal.
Definition: Events.hh:188
static ConnectionPtr ConnectPreRender(T _subscriber)
Render start signal.
Definition: Events.hh:262
static EventT< void()> timeReset
Time reset signal.
Definition: Events.hh:379
static EventT< void(std::string)> diagTimerStart
Diagnostic timer start.
Definition: Events.hh:391
static ConnectionPtr ConnectRemoveSensor(T _subscriber)
Connect to the remove sensor signal.
Definition: Events.hh:232
static ConnectionPtr ConnectPause(T _subscriber)
Connect a callback to the pause signal.
Definition: Events.hh:44
static ConnectionPtr ConnectDiagTimerStop(T _subscriber)
Connect a callback to the diagnostic timer stop signal.
Definition: Events.hh:315
static EventT< void(std::string)> deleteEntity
An entity has been deleted.
Definition: Events.hh:363
static ConnectionPtr ConnectRender(T _subscriber)
Connect a callback to the render update signal.
Definition: Events.hh:275
static EventT< void(bool)> pause
Pause signal.
Definition: Events.hh:339
static ConnectionPtr ConnectDiagTimerStart(T _subscriber)
Connect a callback to the diagnostic timer start signal.
Definition: Events.hh:301
static EventT< void(sdf::ElementPtr, const std::string &, const std::string &, const uint32_t)> createSensor
Create a sensor.
Definition: Events.hh:412
static EventT< void()> preRender
Pre-render.
Definition: Events.hh:382
static EventT< void()> stop
Simulation stop signal.
Definition: Events.hh:345
static EventT< void(std::string)> addEntity
An entity has been added.
Definition: Events.hh:360
static EventT< void()> sigInt
Simulation stop signal.
Definition: Events.hh:348
static ConnectionPtr ConnectPostRender(T _subscriber)
Connect a callback to the post render update signal.
Definition: Events.hh:288
static void DisconnectWorldUpdateEnd(ConnectionPtr _subscriber) GAZEBO_DEPRECATED(8.0)
Disconnect a callback from the world update end signal.
Definition: Events.hh:193
static void DisconnectStep(ConnectionPtr _subscriber) GAZEBO_DEPRECATED(8.0)
Disconnect a callback from the step signal.
Definition: Events.hh:64
static ConnectionPtr ConnectWorldCreated(T _subscriber)
Connect a callback to the world created signal.
Definition: Events.hh:87
static void DisconnectWorldCreated(ConnectionPtr _subscriber) GAZEBO_DEPRECATED(8.0)
Disconnect a callback from the world created signal.
Definition: Events.hh:91
static void DisconnectBeforePhysicsUpdate(ConnectionPtr _subscriber) GAZEBO_DEPRECATED(8.0)
Disconnect a callback from the before physics update signal.
Definition: Events.hh:178
boost::shared_ptr< Connection > ConnectionPtr
Definition: CommonTypes.hh:134
static EventT< void()> render
Render.
Definition: Events.hh:385
static void DisconnectTimeReset(ConnectionPtr _subscriber) GAZEBO_DEPRECATED(8.0)
Disconnect from the time reset signal.
Definition: Events.hh:223
#define GAZEBO_DEPRECATED(version)
Definition: system.hh:302
static EventT< void()> step
Step the simulation once signal.
Definition: Events.hh:342
static EventT< void(std::string)> entityCreated
An entity has been created.
Definition: Events.hh:354
static ConnectionPtr ConnectDeleteEntity(T _subscriber)
Connect a callback to the delete entity signal.
Definition: Events.hh:127
static ConnectionPtr ConnectSetSelectedEntity(T _subscriber)
Connect a callback to the set selected entity signal.
Definition: Events.hh:114
static void DisconnectDiagTimerStop(ConnectionPtr _subscriber) GAZEBO_DEPRECATED(8.0)
Disconnect a callback from the diagnostic timer stop signal.
Definition: Events.hh:320
static ConnectionPtr ConnectAddEntity(T _subscriber)
Connect a callback to the add entity signal.
Definition: Events.hh:140
static EventT< void()> worldReset
World reset signal.
Definition: Events.hh:376
static EventT< void(std::string)> removeSensor
Remove a sensor.
Definition: Events.hh:399
static void DisconnectStop(ConnectionPtr _subscriber) GAZEBO_DEPRECATED(8.0)
Disconnect a callback from the stop signal.
Definition: Events.hh:78
static EventT< void(std::string)> diagTimerStop
Diagnostic timer stop.
Definition: Events.hh:394
static void DisconnectCreateSensor(ConnectionPtr _subscriber) GAZEBO_DEPRECATED(8.0)
Disconnect from the create sensor signal.
Definition: Events.hh:253
static ConnectionPtr ConnectStep(T _subscriber)
Connect a callback to the step signal.
Definition: Events.hh:59
static EventT< void(std::string)> worldCreated
A world has been created.
Definition: Events.hh:351
static ConnectionPtr ConnectCreateEntity(T _subscriber)
Connect a callback to the add entity signal.
Definition: Events.hh:100
static void DisconnectCreateEntity(ConnectionPtr _subscriber) GAZEBO_DEPRECATED(8.0)
Disconnect a callback from the add entity signal.
Definition: Events.hh:105
static EventT< void()> postRender
Post-Render.
Definition: Events.hh:388