Open Balnian opened 4 years ago
I'm not sure it should be a combo box. Maybe it should just detect the IP, but if it detects a change to the input box then stop looking for an IP and use the one given by the user.
Or maybe a button with "Configure IP" and this will toggle enable status of the input box.
I think I found a backend package for this! https://fkie.github.io/multimaster_fkie/master_discovery.html
Description:
Add a UDP listener on a predetermined port to listen to a broadcast from a robot containing the robot's rosbridge and video server address.
Broadcast will come from a node on the robot. The broadcast will contain a Robot Web Services ( RWS ) message which is a JSON structure giving:
This would be connected to a Combo Box in the UI to display a list of broadcast received to choose from and still allow to enter a manual address and have cached values.
Preliminary numbers:
Broadcast is every 0.5 seconds
Values stored expire after 1.5 seconds after last broadcast received (aka every broadcast reset the expiration timer)
Tasks: