Trying to write simple PyQt node that uses topics for I/O? [closed]
Was wondering if anyone knows of or has a simple example of a node that uses PyQt that works in hydro? Trying to teach students about framework and thought they would find using it with their own node that display and gets input from gui interesting.
I can publish from gui user interface handler for a event like pushing a button but not sure yet if I can listen to a topic (because the gui takes control and won't give it back to node software main loop)?
Of course its not check rospy.is_shutdown() since its not returning from guy_app while not rospy.is_shutdown(): str = "hello world %s"%rospy.get_time() pub.publish(str) gui_app() rospy.loginfo(str) r.sleep()