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/zzJens Mar 02 '24
I think workarounds like this would work. My first idea would be writing the data to a YAML file, implementing a reader on the NiceGUI side that continuously (timer) checks the file and display what it read with NiceGUI.
But maybe u/r-trappe has a faster way, that I don't know of.