Ask Your Question
0

Problems with starting to program Nao

asked 2013-12-11 07:24:59 -0500

Tiamat gravatar image

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

ngrennan gravatar image

Hi,

I am new to ROS and Nao and I've got little trouble in finding the right starting point.

I followed the tutorial http://wiki.ros.org/hydro/Installation/Ubuntu and installed ROS in a Ubuntu Virtualbox and made some of the tutorials for ROS.

I also installed Naoqi and followed the tutorial http://wiki.ros.org/nao/Installation/remote to install the Nao-hydro packages.

Everything works fine so far but what is missing for me in this tutorials is something like "How to make the Nao say Hello World" :)

How to start writing the first program for the Nao? Where do I have to put my files and how do I have to compile them? I think some link in my brain is missing at the moment :)

I'm at this point since 3 days now, so please can someone point me the right way to my first working program on the Nao?

Thanks in advance

P.S.: Can someone please format the links for me? :)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-12-11 21:57:03 -0500

AHornung gravatar image

There is a "Getting started" tutorial here: http://wiki.ros.org/nao/Tutorials/Getting-Started

Beware that the installation instructions are outdated (replaced by the ones you linked), so you should directly jump to 1.6 ("Launching") and adjust the instructions as needed for the new Nao stacks.

edit flag offensive delete link more

Comments

Thanks for your answer. I found this tutorial before (sorry I forgot to mention) and tried section 6 till 8 so I think everything should be working. But I don't know how to start writing my own stuff. I also read through the SDK documentation but the link between sdk and ros is missing in my brain :)

Tiamat gravatar image Tiamat  ( 2013-12-11 22:54:40 -0500 )edit

What I want to do is getting this tutorial http://www.aldebaran-robotics.com/documentation/dev/cpp/examples/core/sayhelloworld/sayhelloworld.html#cpp-tutos-say-helloworld working with ROS. But I don't know where I have to put my code and so on. Stupid question I know :)

Tiamat gravatar image Tiamat  ( 2013-12-11 22:55:22 -0500 )edit

The link between the SDK and ROS is nao_driver: http://wiki.ros.org/nao_driver

AHornung gravatar image AHornung  ( 2013-12-11 22:56:24 -0500 )edit

Find the functionality you wan there (nao_speech), start the node, and publish to the corresponding topic ("speech"). There are multiple ways to do that in ROS, e.g. from command line or writing a C++/Python publisher (check ROS beginner tutorials).

AHornung gravatar image AHornung  ( 2013-12-11 22:57:53 -0500 )edit

Ok I'll try this maybe I'm just thinking to complex and it's much more easier :) Thank you!

Tiamat gravatar image Tiamat  ( 2013-12-11 23:03:01 -0500 )edit

It really is easy: `rostopic pub "/speech" std_msgs/String "Hello World"`

AHornung gravatar image AHornung  ( 2013-12-11 23:06:02 -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-12-11 07:24:59 -0500

Seen: 368 times

Last updated: Dec 11 '13