Controlling Nao Robot Using a Xbox Controller
by saleemiitg in Circuits > Robots
2805 Views, 8 Favorites, 0 Comments
Controlling Nao Robot Using a Xbox Controller
In this instructable i will show how to simulate NAO robot in Gazebo simulator and Robot Operating System (ROS). ROS is an open source framework for development and research in robotics. It provide rich set of tools and libraries for building and simulating robots. NAO is a humanoid developed by Aldebaran Robotics and is one of the top humanoids in world.
Install ROS Indigo in Ubuntu
For installing ROS Indigo in ubuntu visit the following link:
Setup NAO SDK's and Required Installation
- Setup required NAO SDK's from community website of Aldebran.
- Also, your will require some simulation files for working on Gazebo. Go through the following link to setup the gazebo for simulating NAO robot. NAO Gazebo
Install Xbox 360 Driver for ROS
- Install the Xbox 360 controller driver for ROS from http://wiki.ros.org/joy
- Get the list of controller connected by - ls /dev/input
- For my case it is /dev/input/js1
Launch Gazebo Simulator With NAO Robot
For launching NAO robot in gazebo simultor, run the following in terminal
- roslaunch gazebo_naoqi_control nao_gazebo.launch
set ROS parameter to js1 so that it connectes to Xbox controller when you run the node Joy.
- rosparam set joy_node/dev /dev/input/js1
- rosrun joy joy_node
Then, run the control_nao_hands.py by,
- python control_nao_hands.py