master slave and changing IP addresses
i'm on the university network and they can't offer static ip addresses. the main problem is when driving the robot through different wifi networks and getting a new IP.
i have the robot set up as the master (or i could make it slave if i have to) and i came up with a work around sort of like DynDNS, where once i get a new ip i send it to my google drive and can access it.
problem is dynamically changing the ROS_MASTER_URI and ROS_IP variables. I'm pretty sure as soon as u start a node they're locked to that node. is there no way to change it while the node is running?
otherwise it's essentially required that the computers running ROS and communicating together have static IPs.
if i can't dynamically change the IP addresses of running nodes i guess the best solution then, for a mobile computer running nodes is to have an 4G/LTE modem attached to it? am i right in assuming that this should provide me with the same IP address throughout its lifetime?
or maybe i'll have to make some "communication" nodes on both the robot and the controller.
thank you for your time.
I am not a network expert at all, but if you disconnect and reconnect to another network won't all connections be broken and would need to be reestablished anyways?
i sort of tested this today. i had the master running on the robot computer (the one i expect to move through the wifi networks) and hit the wifi on/off button to shut down the wifi. the uni network is a bit weird because it gave me the same ip address. but anyways. once i reconnected the internet..
.. (sorry, not internet, network) the control pc (which was running a joy node) was still able to communicate with the master/robot and drive it round. also when the master was dced i couldn't view any topics on the control, but when it was connected again i could see all the topics that were...
running. and this is all without restarting any nodes... did the same with the control pc (disconnecting). once it reconnected was still able to drive the robot around. but like said. i'm scared the ip will be locked when nodes are created. one thing that might fix this is hosts and a DNS server?