Give the rover internet access via ethernet - robotique-udes/zeus_rover GitHub Wiki

It is possible to give internet access to the rover's computer without having to plug every computer into a display one at a time and connect to a wifi hotspot. It is much simpler to share your laptop's wifi internet access to the rover via an ethernet cable.

To do this you will need a wifi connection on your laptop and an ethernet cable to plug between your laptop and the rover's ethernet switch.

This guide was tested on Ubuntu 18.04

Steps on your laptop

  1. Open the connection editor nm-connection-editor
  2. Create a new ethernet connection or edit an existing one.
  3. Go to the IPv4 tab and for "Method" select: "Shared to other computers".
  4. In the addresses box, add a static adress starting with 192.168.1. and finishing with a number that isn't already taken. For the netmask, enter the value 24.
  5. Click save and restart the wired connection to make sure the changes have applied.

At this point you should be able to ping the rover computers with ping <rover_computer_ip>.

Steps on the rover computers

These steps must be done on every computer individually.

  1. VNC into the rover computer and open the connection editor nm-connection-editor
  2. Edit the ethernet connection
  3. Go to the IPv4 tab and make sure the method is "Manual" and that an adress is already assigned and that the netmask is 24. For the gateway, enter the ethernet IP adress of your laptop that you specified earlier.
  4. Click Save and restart the wired connection to make sure the changes have applied

You can test that it has worked by doing ping google.com from the rover computer.

You won't need to redo all of those steps as long as the IP adresses stay the same. If you want to use a different computer with a different IP adress to give internet access, the gateway on the rover computers will have to be changed.