Ask Your Question
0

Running ros-based code on Nao Robot

asked 2013-08-04 21:01:59 -0500

ryann2k1 gravatar image

updated 2014-04-20 14:09:21 -0500

ngrennan gravatar image

Does anyone know how to automatically make the robot to execute ros in its system? I have managed to install ros into my Nao Robot but I have no idea how to execute " move head code ". I need to setup the environment whenever want to run ros environment.Do I have to set up the environment all the time? any way to automate?

Running on Nao's AMD Geode platform and CTC Naoqi 1.12.5.3 , Fuerte

Looking forward any idea. Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2013-08-05 03:08:35 -0500

Miguel S. gravatar image

Well, if you have managed to cross-compile ROS for the NAO, the next part is going to be easy :) Download nao_robot from here and install it in your robot, you will also need this package. For more detailed instructions check the ROS wiki out.

Once that's installed you can control the head by publishing nao_msgs/JointAnglesWithSpeed messages to the joint_angles topic. But there are many, many more things you can do; I'd recommend you read the documentation carefully.

Here's a quick example that you can run from the terminal (of course you can also use proper ROS messages)

$> rosrun nao_driver nao_controller.py
$> rostopic pub /joint_angles nao_msgs/JointAnglesWithSpeed -- '[ 1, now, Head]' '[HeadYaw,HeadPitch]' '[1,-1]'  1.0  0

The second command was taken from this question.

Ask if you need more help!

edit flag offensive delete link more

Comments

I will do that. Thanks a lot

ryann2k1 gravatar image ryann2k1  ( 2013-08-10 15:42:11 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2013-08-04 21:01:59 -0500

Seen: 381 times

Last updated: Aug 05 '13