Running code in loop inside gazebo-ros plugin

asked 2019-06-24 08:39:15 -0500

kump gravatar image

Any time I have used gazebo-ros plugin of any type, I would always define an update function that is called on every world update and but the code I need to run there.

this->updateConnection = event::Events::ConnectWorldUpdateBegin(
                                boost::bind(&MyPlugin::onUpdate, this));

But now I need the code to be run even if the simulation is paused. What can I use to achieve this?

edit retag flag offensive close merge delete

Comments

Wouldn't this be more of a Gazebo question? The fact that this is in a ROS-context seems immaterial here.

gvdhoorn gravatar image gvdhoorn  ( 2019-06-24 08:59:04 -0500 )edit