Skip to content

About

Control the robots with a Playstation 5 (or 4) controller

Resources

Stars

0 stars

Watchers

12 watching

Forks

Latest commit

 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Control the robots with a Playstation 5 (or 4) controller

Resources

Stars

0 stars

Watchers

12 watching

Forks

Releases

Packages

Contributors

Languages