Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

ConnectPause event gets callled together with ConnectWorldUpdateBegin


when using Events::ConnectPause separatly the callback gets called only when the simulation is paused/started. However, if I use the Events::ConnectWorldUpdateBegin as well, both callbacks are called at every world update:

here is the code snippet

    this->eventConnection = event::Events::ConnectWorldUpdateBegin(
        boost::bind(&PluginClass::DummyWorldUpdate, this));

    this->pauseConnection = event::Events::ConnectPause(
        boost::bind(&PluginClass::DummyPauseUpdate, this));

is this a bug?