How to Repaint Gui Overlays in subscriber callback
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.
Asked by Peter Mitrano on 2017-03-21 19:56:11 UTC
Answers
Simple solution! use update()
instead of repaint()
, ie:
void MyClass::SomeTopicCallback(ConstMsgPtr &msg) {
// useful code here
update(); // or this->update()
}
Asked by Peter Mitrano on 2017-03-22 01:29:34 UTC
Comments