Gazebo | Ignition | Community
Ask Your Question
0

system plugin: callback function never triggered?

asked 2018-10-20 21:28:50 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-10-22 04:56:30 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Did you execute this?

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

As per, http://gazebosim.org/tutorials?tut=pl...

edit flag offensive delete link more

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

Whyamihere gravatar imageWhyamihere ( 2018-10-22 20:04:55 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2018-10-20 21:28:50 -0500

Seen: 239 times

Last updated: Oct 22 '18