Mobility and routing control in networks of robots