Advanced network settings
Constrain accepted dynamic address
See the related FAQ: Why can I not reach the on-board ROS master?
In some conditions, your local network DHCP may briefly assign a bogus IP address to the robot before assigning a valid one. If network services are started on the robot using this bogus address, they will not work correctly after the valid address has been assigned (e.g. ROS master will be unreachable). You will see that the IP addresses under System information on the MiRoapp Home page do not all match.
There are two approaches to solving this problem.
Use static network address mode
The first is to use MiRoapp to switch Network address mode to "static", and to specify the valid address in advance. Visit the Home page and follow the instructions under Network settings.
Constrain valid dynamic address
If you can't do this (because you want to use a dynamic address), the second approach is to restrict the set of valid IP addresses that the robot will accept at boot time by modifying the setting MIRO_DYNAMIC_IP_MATCH
in user_setup.bash
. The robot will then wait for a matching address before starting network services.
For example, the setting below will allow only addresses starting with the number '192'.
For more complete control, you can use a full regular expression for the address. The example below is more explicit, allowing only valid IP addresses starting '192'.
MIRO_DYNAMIC_IP_MATCH
was introduced at R190407—if the variable is not present in your user_setup.bash
, add it manually using the template at ~/mdk/share/config/user_setup.bash
.