Gazebo | Ignition | Community
Ask Your Question

How to update graphic in the gui when pausing it

asked 2014-04-18 11:04:57 -0500

EdwardC gravatar image


In my application I want to use Gazebo as as assembly tool, so I can dynamically insert robots and change their orientations and joint angles without the interference of the simulation dynamics. After several days testing, I found there is no problem of inserting new models when the simulation paused. But when I set the joint angle or set the relative link position by the following piece of code in the world plugin, I have to hit the play button or open gzclient after I set the joint angle, those changes can be updated on the real robot in the gui graphics.



currentWorld->GetModel(msg->stringmessage())->GetLink("CircuitHolder")->SetRelativePose (linkpose);

So I want to ask whether there is way to trigger gui graphics refresh when pausing the whole simulation?


edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2014-06-06 15:52:59 -0500

EdwardC gravatar image

I figured it out later, the only way to do that is by adding a system plugin, and force it to happen in the event "rendering".

edit flag offensive delete link more

Question Tools


Asked: 2014-04-18 11:04:57 -0500

Seen: 290 times

Last updated: Jun 06 '14