Ask Your Question
0

question about rosrun beginner_tutorials talker in Tutorials

asked 2015-10-30 03:58:56 -0600

xuao gravatar image

I followed the Tutorials and built a talker.cpp and listener.cpp

http://wiki.ros.org/cn/ROS/Tutorials/...

but when i run the command:$ rosrun beginner_tutorials talker, the output likes that:

[ INFO] [1446193944.614306315]: hello world 0
[ INFO] [1446193944.714341871]: hello world 1
[ INFO] [1446193944.814325116]: hello world 2
[ INFO] [1446193944.914325682]: hello world 3
[ INFO] [1446193945.014323803]: hello world 4
[ INFO] [1446193945.114317734]: hello world 5
[ INFO] [1446193945.214318579]: hello world 6
[ INFO] [1446193945.314322916]: hello world 7
[ INFO] [1446193945.414319291]: hello world 8
[ INFO] [1446193945.514289057]: hello world 9
[ INFO] [1446193945.614313089]: hello world 10
[ INFO] [1446193945.714288023]: hello world 11
[ INFO] [1446193945.814288449]: hello world 12
[ INFO] [1446193945.914288596]: hello world 13
[ INFO] [1446193946.014314654]: hello world 14
[ INFO] [1446193946.114281486]: hello world 15
[ INFO] [1446193946.214334433]: hello world 16
[ INFO] [1446193946.314335348]: hello world 17
[ INFO] [1446193946.414329558]: hello world 18
[ INFO] [1446193946.514324047]: hello world 19
[ INFO] [1446193946.614327756]: hello world 20
[ INFO] [1446193946.714328811]: hello world 21
[ INFO] [1446193946.814324557]: hello world 22
[ INFO] [1446193946.914328894]: hello world 23
[ INFO] [1446193947.014327924]: hello world 24
[ INFO] [1446193947.114329677]: hello world 25
[ INFO] [1446193947.214324585]: hello world 26
[ INFO] [1446193947.314323614]: hello world 27
[ INFO] [1446193947.414327044]: hello world 28
[ INFO] [1446193947.514330682]: hello world 29
[ INFO] [1446193947.614354505]: hello world 30
[ INFO] [1446193947.714330766]: hello world 31
[ INFO] [1446193947.814328468]: hello world 32
[ INFO] [1446193947.914337625]: hello world 33
[ INFO] [1446193948.014337632]: hello world 34

and continue...not until i pressed ctrl+c did it stop.

i want know why and how to solve it.thank you very much.

edit retag flag offensive close merge delete

Comments

Your code is working as it is supposed to.

Akif gravatar imageAkif ( 2015-10-30 04:12:19 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-10-30 04:07:04 -0600

gvdhoorn gravatar image

i want know why and how to solve it.thank you very much.

As far as I can tell, that is normal output for that tutorial: it has two nodes talker and listener. talker sends out strings of the form hello world N (with N a positive integer). listener (which you didn't start I believe), receives those messages and would print I heard: [Hello world N] (with N a positive integer).

Do you feel something else should happen?

edit flag offensive delete link more

Comments

hahaha, i got it.Maybe i misunderstood it before, thank you for your explanation.

xuao gravatar imagexuao ( 2015-10-30 04:32:14 -0600 )edit

No problem. Glad I could help.

gvdhoorn gravatar imagegvdhoorn ( 2015-10-30 06:37:43 -0600 )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: 2015-10-30 03:58:56 -0600

Seen: 139 times

Last updated: Oct 30 '15