42 public:
template<
typename T>
44 {
return pause.Connect(_subscriber); }
49 { pause.Disconnect(_subscriber); }
55 public:
template<
typename T>
57 {
return step.Connect(_subscriber); }
61 { step.Disconnect(_subscriber); }
67 public:
template<
typename T>
69 {
return stop.Connect(_subscriber); }
73 {
stop.Disconnect(_subscriber); }
79 public:
template<
typename T>
81 {
return worldCreated.Connect(_subscriber); }
84 { worldCreated.Disconnect(_subscriber); }
90 public:
template<
typename T>
92 {
return entityCreated.Connect(_subscriber); }
96 { entityCreated.Disconnect(_subscriber); }
102 public:
template<
typename T>
104 {
return setSelectedEntity.Connect(_subscriber); }
108 { setSelectedEntity.Disconnect(_subscriber); }
113 public:
template<
typename T>
115 {
return deleteEntity.Connect(_subscriber); }
119 { deleteEntity.Disconnect(_subscriber); }
124 public:
template<
typename T>
126 {
return addEntity.Connect(_subscriber); }
130 { addEntity.Disconnect(_subscriber); }
136 public:
template<
typename T>
138 {
return worldUpdateBegin.Connect(_subscriber); }
142 public:
static void DisconnectWorldUpdateBegin(
149 public:
template<
typename T>
151 {
return worldUpdateEnd.Connect(_subscriber); }
155 { worldUpdateEnd.Disconnect(_subscriber); }
161 public:
template<
typename T>
163 {
return worldReset.Connect(_subscriber); }
168 { worldReset.Disconnect(_subscriber); }
174 public:
template<
typename T>
176 {
return preRender.Connect(_subscriber); }
180 { preRender.Disconnect(_subscriber); }
185 public:
template<
typename T>
187 {
return render.Connect(_subscriber); }
191 { render.Disconnect(_subscriber); }
196 public:
template<
typename T>
198 {
return postRender.Connect(_subscriber); }
202 { postRender.Disconnect(_subscriber); }
207 public:
template<
typename T>
209 {
return diagTimerStart.Connect(_subscriber); }
213 { diagTimerStart.Disconnect(_subscriber); }
218 public:
template<
typename T>
220 {
return diagTimerStop.Connect(_subscriber); }
224 { diagTimerStop.Disconnect(_subscriber); }
230 public:
template<
typename T>
232 {
return sigInt.Connect(_subscriber); }
236 { sigInt.Disconnect(_subscriber); }
static ConnectionPtr ConnectPreRender(T _subscriber)
Render start signal.
Definition: Events.hh:175
static EventT< void(std::string)> deleteEntity
An entity has been deleted.
Definition: Events.hh:263
boost::shared_ptr< Connection > ConnectionPtr
Definition: CommonTypes.hh:147
static void DisconnectPause(ConnectionPtr _subscriber)
Disconnect a boost::slot the the pause signal.
Definition: Events.hh:48
static EventT< void(std::string)> diagTimerStop
Diagnostic timer stop.
Definition: Events.hh:287
static EventT< void()> stop
Simulation stop signal.
Definition: Events.hh:245
static void DisconnectDiagTimerStop(ConnectionPtr _subscriber)
Disconnect a boost::slot the diagnostic timer stop signal.
Definition: Events.hh:223
An Event class to get notifications for simulator events.
Definition: Events.hh:36
static ConnectionPtr ConnectAddEntity(T _subscriber)
Connect a boost::slot the the add entity signal.
Definition: Events.hh:125
static EventT< void()> worldUpdateEnd
World update has ended.
Definition: Events.hh:269
static void DisconnectSigInt(ConnectionPtr _subscriber)
Disconnect a boost::slot to the sigint event.
Definition: Events.hh:235
static void DisconnectStop(ConnectionPtr _subscriber)
Disconnect a boost::slot the the stop signal.
Definition: Events.hh:72
static ConnectionPtr ConnectWorldCreated(T _subscriber)
Connect a boost::slot the the world created signal.
Definition: Events.hh:80
static void DisconnectDeleteEntity(ConnectionPtr _subscriber)
Disconnect a boost::slot the delete entity.
Definition: Events.hh:118
static EventT< void(std::string)> diagTimerStart
Diagnostic timer start.
Definition: Events.hh:284
static ConnectionPtr ConnectStop(T _subscriber)
Connect a boost::slot the the stop signal.
Definition: Events.hh:68
static ConnectionPtr ConnectStep(T _subscriber)
Connect a boost::slot the the step signal.
Definition: Events.hh:56
static EventT< void(std::string)> worldCreated
A world has been created.
Definition: Events.hh:251
#define GZ_COMMON_VISIBLE
Definition: system.hh:91
static ConnectionPtr ConnectDeleteEntity(T _subscriber)
Connect a boost::slot the delete entity.
Definition: Events.hh:114
static ConnectionPtr ConnectDiagTimerStop(T _subscriber)
Connect a boost::slot the diagnostic timer stop signal.
Definition: Events.hh:219
static void DisconnectStep(ConnectionPtr _subscriber)
Disconnect a boost::slot the the step signal.
Definition: Events.hh:60
static void DisconnectDiagTimerStart(ConnectionPtr _subscriber)
Disconnect a boost::slot the diagnostic timer start signal.
Definition: Events.hh:212
static ConnectionPtr ConnectRender(T _subscriber)
Connect a boost::slot the render update signal.
Definition: Events.hh:186
static EventT< void()> postRender
Post-Render.
Definition: Events.hh:281
static void DisconnectWorldReset(ConnectionPtr _subscriber)
Disconnect from the world reset signal.
Definition: Events.hh:167
static ConnectionPtr ConnectWorldUpdateBegin(T _subscriber)
Connect a boost::slot the the world update start signal.
Definition: Events.hh:137
static EventT< void(std::string, std::string)> setSelectedEntity
An entity has been selected.
Definition: Events.hh:257
static ConnectionPtr ConnectWorldReset(T _subscriber)
Connect to the the world reset signal.
Definition: Events.hh:162
static void DisconnectPostRender(ConnectionPtr _subscriber)
Disconnect a boost::slot the post render update signal.
Definition: Events.hh:201
static void DisconnectCreateEntity(ConnectionPtr _subscriber)
Disconnect a boost::slot the the add entity signal.
Definition: Events.hh:95
static EventT< void()> step
Step the simulation once signal.
Definition: Events.hh:242
static EventT< void(bool)> pause
Pause signal.
Definition: Events.hh:239
static ConnectionPtr ConnectPostRender(T _subscriber)
Connect a boost::slot the post render update signal.
Definition: Events.hh:197
static ConnectionPtr ConnectSigInt(T _subscriber)
Connect a boost::slot to the sigint event.
Definition: Events.hh:231
static ConnectionPtr ConnectSetSelectedEntity(T _subscriber)
Connect a boost::slot the set selected entity.
Definition: Events.hh:103
static EventT< void(const common::UpdateInfo &)> worldUpdateBegin
World update has started.
Definition: Events.hh:266
static void DisconnectWorldCreated(ConnectionPtr _subscriber)
Disconnect a boost::slot the the world created signal.
Definition: Events.hh:83
static EventT< void()> sigInt
Simulation stop signal.
Definition: Events.hh:248
static EventT< void()> render
Render.
Definition: Events.hh:278
static void DisconnectWorldUpdateEnd(ConnectionPtr _subscriber)
Disconnect a boost::slot the the world update end signal.
Definition: Events.hh:154
static EventT< void()> preRender
Pre-render.
Definition: Events.hh:275
static ConnectionPtr ConnectDiagTimerStart(T _subscriber)
Connect a boost::slot the diagnostic timer start signal.
Definition: Events.hh:208
static EventT< void(std::string)> addEntity
An entity has been added.
Definition: Events.hh:260
GAZEBO_VISIBLE void stop()
static void DisconnectRender(ConnectionPtr _subscriber)
Disconnect a boost::slot the render update signal.
Definition: Events.hh:190
static void DisconnectPreRender(ConnectionPtr _subscriber)
Disconnect a render start signal.
Definition: Events.hh:179
static ConnectionPtr ConnectCreateEntity(T _subscriber)
Connect a boost::slot the the add entity signal.
Definition: Events.hh:91
static EventT< void()> worldReset
World reset signal.
Definition: Events.hh:272
static ConnectionPtr ConnectWorldUpdateEnd(T _subscriber)
Connect a boost::slot the the world update end signal.
Definition: Events.hh:150
static void DisconnectSetSelectedEntity(ConnectionPtr _subscriber)
Disconnect a boost::slot the set selected entity.
Definition: Events.hh:107
static EventT< void(std::string)> entityCreated
An entity has been created.
Definition: Events.hh:254
static void DisconnectAddEntity(ConnectionPtr _subscriber)
Disconnect a boost::slot the the add entity signal.
Definition: Events.hh:129
static ConnectionPtr ConnectPause(T _subscriber)
Connect a boost::slot the the pause signal.
Definition: Events.hh:43