-
Notifications
You must be signed in to change notification settings - Fork 38
Networking
NOTE: It is always a good idea to make a backup copy of any system files you are changing.
To make connecting to and working with the robots easy, we give each robot a static IP address.
The best way to go about this is to edit the /etc/network/interfaces
file. Open the file in your editor of choice and add the following:
# set Ethernet static IP address 192.168.0.101
auto eth0
iface eth0 inet static
address 192.168.0.101
netmask 255.255.255.0
network 192.168.0.0
This will set the IP address of the robot to 192.168.0.101
. Each robot should have a unique address, e.g. 192.168.0.102
.
NOTE: It is possible that the Ethernet adapter on your robot has some other name than eth0. If this is the case just replace any reference to eth0 with the correct name.
You can find instructions for setting a static IP on your personal computer (make sure to pick a different IP address than what you set for the robots):
- Windows7
- MacOS
- Ubuntu: You can do the same to your
/etc/network/interfaces
file or the following commands will set a temporary static IP:
sudo /sbin/ifconfig eth0 down
sudo /sbin/ifconfig eth0 up 192.168.0.204
The Nao robots come with a special network manager pre-installed called connman. In order for these instructions to work you need to disable this program. If you followed the Nao setup instructions then this should have already been done.
You can make sure by checking to see if the /etc/rc5.d/S15connman
file exists. If it does then you will need to delete it.