π Getting Started with the Pepper Robot
This guide walks you through two ways to interact with the Pepper robot in The RAIL Lab:
- Direct Connection β Quickly communicate with Pepper via WiFi, SSH, or its web interface.
- Docker Development Environment β Use a consistent containerized setup with the NAOqi SDK and Choregraphe for development and testing.
π§ Option 1: Connect Directly to Pepperβ
Use this method when you want to:
- Manually control Pepper using its web interface
- Use SSH to run simple commands or inspect logs
- Trigger built-in behaviors
π Power and Networkβ
- Turn Pepper On using the button under its screen.
- Connect to the RAIL Lab WiFi network.
- Find Pepper's IP Address:
- Default:
192.168.1.5 - Or: press the power button once; it will speak the address.
- Default:
π Web Interfaceβ
Navigate to http://192.168.1.5 in your browser and log in.
π SSH Accessβ
ssh nao@192.168.1.5
- Credentials are shared in the Pepper Discord channel.
- Do not modify system files (e.g.
/opt/aldebaran).
π€ Voice & Interaction Examplesβ
Pepper understands:
- "close hand"
- "raise arm"
- "look left/right"
- "shake hand"
- "stop looking at me"
Touch interactions:
- Stroke head β Pepper purrs
- Cover front camera β Pepper goes to sleep
π³ Option 2: Use the Docker Development Environmentβ
Use this when you want to:
- Write custom Python scripts using the NAOqi SDK
- Run Choregraphe GUI on your machine for behavior creation
- Maintain a consistent dev environment with no manual setup
This setup replicates Pepperβs development environment locally in a Docker container, removing the need to install legacy software natively.
π§° Requirementsβ
- Docker
- For Windows: X Server (e.g., VcXsrv)
- RAIL Lab resources:
- Choregraphe installer
- Python SDK archive
- License key
π§ Setup Instructionsβ
Step 1: Clone the Repositoryβ
git clone https://github.com/raillab/docker-for-pepper-robot.git
cd docker-for-pepper-robot
Step 2: Add Installation Filesβ
Get from a lab admin:
choregraphe-suite-2.5.10.7-linux64-setup.runpynaoqi-python2.7-2.8.6.23-linux64.tar.gz
Place both in the repo root.
Step 3: Build and Runβ
docker build -t wits-naoqi .
./run_container.sh
Additional terminals:
docker exec -it wits_pepper bash
Windows users:
xhost +local:docker
# After you're done:
xhost -local:docker
π§© Install Choregraphe in Dockerβ
/choregraphe/choregraphe-suite-2.5.10.7-linux64-setup.run
Or use silent install:
/choregraphe/choregraphe-suite-2.5.10.7-linux64-setup.run --mode unattended --installdir /home/user/choregraphe/
To relaunch Choregraphe later:
./choregraphe/choregraphe
From the Choregraphe GUI, you can connect to Pepper using its IP address.
π§ͺ Test the Python SDKβ
from naoqi import ALProxy
tts = ALProxy("ALTextToSpeech", "192.168.1.5", 9559)
tts.say("Hello, world!")
π§βπ» Development Workflowβ
- The
./srcdirectory is mounted into the container. - Edit code on your machine and run/test it from the container.
- Deploy and test behavior on the real Pepper robot.
π Additional Resourcesβ
Supported SDKs:
β Python | β³ C++ | β³ Java | β³ JavaScript | β³ ROS