system plugin: callback function never triggered?
Here is my code following tutorial:
void GazeboScenePlugin::Init()
{
this->updateConn = event::Events::ConnectWorldUpdateBegin(
std::bind(&GazeboScenePlugin::cameraService, this));
}
bool GazeboScenePlugin::cameraService()
{
std::cout<<"!!!!!!!!!!!!!!!!!!!!!!!!!\n";
}
The code somehow never print as I expected. Why is that?