Proceeding the WiFi Rover for RPi DS4 PS4 Controller earlier this week, today developer Caiit committed on Github NAO PS4 Control which as the name implies allows you to control a NAO Robot with a PlayStation 4 DualShock 4 (DS4) Controller.
Download: nao_ps4_control-master.zip / GIT
From the README.md: NAO PS4 Control
Requirements
pygame and Pillow can be installed using pip or the requirements file:
NaoQi cannot be installed using pip and should be installed following this link.
Setup
Copy sound files to the robot:
Connect the robot and the ps4 controller to your laptop.
To connect the ps4 controller via bluetooth follow this link.
Run
Controls
And for those unfamiliar with NAO Bots, below is a brief demonstration video of the popular humanoid robots in action.
Self Consciousness with NAO Bots
Download: nao_ps4_control-master.zip / GIT
From the README.md: NAO PS4 Control
Requirements
pygame and Pillow can be installed using pip or the requirements file:
Code:
pip install -r requirements.txt
Setup
Copy sound files to the robot:
Code:
scp -r sounds/ nao@<robot_ip>:~/
To connect the ps4 controller via bluetooth follow this link.
Run
Code:
cd scripts/ python ps4.py -ip <robot_ip>
- Left joystick: move in x/y direction
- Right joystick: turn
- X: wave
- O: kick
- â–³: elephant
- â–¡: saxophone
- PS4: shutdown (robot will go to rest position and disconnect)
- 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.
Code:
Install smfl sudo apt-get install libsfml-dev
Self Consciousness with NAO Bots