Skip to content

IntelligentRoboticsLab/Nao_ps5_control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages