Gazebo | Ignition | Community
Ask Your Question

How to Repaint Gui Overlays in subscriber callback

asked 2017-03-21 19:56:11 -0600

I'm trying to create a gui plugin that visualizes some simple sensor data. I have a gui plugin that overrides paintEvent, but I'm not sure how get it to repaint when my subscriber callbacks are called. calling repaint() crashes gazebo most of the time.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2017-03-22 01:29:34 -0600

Simple solution! use update() instead of repaint(), ie:

void MyClass::SomeTopicCallback(ConstMsgPtr &msg) {
  // useful code here
  update(); // or this->update()
edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2017-03-21 19:56:11 -0600

Seen: 262 times

Last updated: Mar 22 '17