Skip to content

Latest commit

 

History

History
45 lines (34 loc) · 1.34 KB

README.md

File metadata and controls

45 lines (34 loc) · 1.34 KB

NAO PS5 Control

Control the Nao robot with a ps5 (or ps4) controller.

Requirements

pygame and Pillow can be installed using pip or the requirements file:

pip install -r requirements.txt

NaoQi cannot be installed using pip and should be installed following this link.

Setup

Copy sound files to the robot:

scp -r sounds/ nao@<robot_ip>:~/

Connect the robot and the ps5 controller to your laptop.

To connect the ps5 controller via bluetooth follow this link.

Run

cd scripts/ python ps5.py -ip <robot_ip>

Controls

PS4 control Action
Left joystick move in x/y direction
Right joystick turn
X wave
O kick
elephant
saxophone
ps shutdown (robot will go to rest position and disconnect)
l1 Sit down
r1 Macarena

Add new motions

  • Create a new python file in motions/.
  • Add the motion to the NAO class.
  • Add the motion to a specific button in the PS4 class.