Here I will show you how to set up Fluent Nao code to interactively control Nao.
Setup Pynaoqi Python SDK
Download the Python SDK from Aldebaran's community site and extract it into a folder on your computer.
Afer that add the folder to your PYTHONPATH by editing you .bashrc or .profile file. For example on my linux system I added the following to my .bashrc
Setup Fluent Nao
Next up you'll need to clone fluent nao using git
git clone https://github.com/dnajd/FluentNao.git
And add the src/main/python folder to your .bashrc or .profile file. For example on my system I added the following to my .bashrc
To test things out you can edit the bootstrap.py file in the root of the FluentNao code you checked out.
- Update the following line to Nao's ipaddress if needed.
- Get Nao's ipaddress by pushing his chest button once.
naoIp = "192.168.2.12"
Then run the bootstrap file in an interactive python shell to connect
python -i bootstrap.py
Interactively Control Nao
Run a FluentNao commands to test it out.
If that worked you're ready to go.