Skip to content
brindza edited this page May 2, 2012 · 9 revisions

under construction...

In order to run the code on the Nao robot there are a few dependencies that must be installed first.

Unfortunately, due to the way the Nao OS is setup, installing external packages can be tedious. We have provided some scripts to help facilitate the process. This page will go over what these scripts are actually doing and how to use them.

Flash the USB Stick

Follow the instructions from Aldebaran for flashing the Nao OS onto the robot using the NAOFlasher utility.

NOTE: You should already have the NaoqiSDK and NaoqiCTC enviornment variables setup on your development computer.

Install Script

Nao Wrists

The Nao get-up routines will only work if the wrists are taped in the correct way.

Tape the wrists so that the seams on the forearm and hand match up, with the palms facing inwards.


When taped, the Nao wrists should look like this (the pictures were taken while all joints were zeroed).

Networking

You may also need to setup the network configuration for your Nao. We recommend following the instructions here for configuring the network interfaces. However, Nao V4 has different commands to setup network.

Ethernet / Wired Network

Edit /etc/conf.d/net and add following lines

# wired static IP
config_eth0="192.168.0.109 netmask 255.255.255.0"
#routes_eth0="default via 192.168.0.1"

For Dynamics IP, use config_eth0="dhcp" instead.

Save file and use /etc/init.d/net.eth0 start|restart|stop to start, restart or stop eth0 interface

Wireless Interface

Same in /etc/conf.d/net, always use WPA and dhcp as default

modules="wpa_supplicant"
wpa_supplicant_wlan0="dhcp"

Name Static IP and router to overwrite dhcp

config_wlan0="96.69.123.109 netmask 255.255.255.0"
routes_wlan0="default via 96.69.123.1"

And set wireless ssid in /etc/wpa_supplicant/wpa_supplicant.conf for NONE password WIFI

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=1

network={
        ssid="NETWORK-NAME"
        key_mgmt=NONE
}

For WPA2, use

network={
  ssid="NETWORK NAME"
  key_mgmt=WPA-PSK
  psk="PASSKEY"
}

Save file and use /etc/init.d/net.wlan0 start|restart|stop to start, restart or stop wlan0 interface

Clone this wiki locally