ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Please see the Qt documentation about the gui thread and worked threads: https://doc.qt.io/qt-5/thread-basics.html
Your custom gui_lock
isn't sufficient. You simply can't directly manipulate widgets in a ROS callback (which is being invoked on a different thread).
Also see the rqt documentation which mentions this: http://wiki.ros.org/rqt/Tutorials/Writing%20a%20Python%20Plugin#Using_rospy