Robotics StackExchange | Archived questions

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?

Asked by Whyamihere on 2018-10-20 21:28:50 UTC

Comments

Answers

Did you execute this?

export GAZEBO_PLUGIN_PATH=${GAZEBO_PLUGIN_PATH}:~/gazebo_plugin_tutorial/build

As per, http://gazebosim.org/tutorials?tut=plugins_hello_world&cat=write_plugin

Asked by Gaurav on 2018-10-22 04:56:30 UTC

Comments

My project compiled with no problem and it was successfully loaded according to some other printed info not listed here. So I guess it might not be this problem... Thanks

Asked by Whyamihere on 2018-10-22 20:04:55 UTC