Python SDK

Overview | C++ | Python | .Net | Java | Matlab | Urbi

The Python API for NAO allows you to use all of the c++ API from a remote machine, or create Python modules that can run remotely or on the robot. Using Python is one of the easiest ways to program with NAO.

Please make sure to have read the NAOqi Framework section first.

The basic approach is:

  • Import ALProxy
  • Create an ALproxy to the module you want to use
  • Call a method

This can be seen in the following example, which is explored in detail in Using the API - Making NAO speak.

from naoqi import ALProxy
tts = ALProxy("ALTextToSpeech", "<IP of your robot>", 9559)
tts.say("Hello, world!")

Installation

Pleas read the Python SDK Install Guide section

Samples and tutorials

A progressing series of tutorials is available in the Python tutorials section.

See also the Python examples section.

Reference documentation