Home | Tutorials | Wiki | Issues
Ask Your Question
0

How to Repaint Gui Overlays in subscriber callback

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

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
1

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

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

Stats

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

Seen: 212 times

Last updated: Mar 22 '17