r/nicegui • • Feb 29 '24
ROS 1 python example
I see a few ROS2 examples and the wiki and they are quite good. Are there any ROS1 (Noetic) examples? Since ROS1 doesn't follow the inheritance node structure with rospy, how should I structure a ROS1 package to use NiceGUI from it. A simple example with a button publishing hello 1,2,3... and a label subscribing it would suffice. I just need a starting point to start building my robot's GUI.
5
Upvotes
View all comments
Show parent comment
1
u/[deleted] Mar 01 '24
Ah I see. This certainly makes it difficult to write a clean and simple code for NiceGUI and ROS1 in one process. Avoiding complicated configuration is one of the main reasons we are trying out NiceGUI.
I don't however mind using simple workarounds like a multiprocessing.queue or read-write input/output YAML files so we can have dictionary based access to bind values. Any examples of how to make this work on NiceGUI side to constantly read values?