ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

listener.cpp

asked 2011-12-14 05:22:55 -0500

dbs12 gravatar image

updated 2012-01-01 06:03:24 -0500

tfoote gravatar image

Hello.. Am at tutorial: Examine simple Publisher and Subscriber.

On command: rosrun beginner_tutorials talker I get proper out "hello world" 233 (so on..) but for command: rosrun begineer_tutorials listener

There is nothing displayed on the terminal:

its just blank ~/ros workspace/beginner_tutorials$ ___(nothing)___

i have re-done file listener.cpp updated Cmakelist.txt, am I suppose to do any other changes??

Thank you!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2011-12-14 06:43:21 -0500

karthik gravatar image

updated 2011-12-14 06:44:02 -0500

Hi, I just tested it. Its working fine. Just check if both talker and listener are connected through the same topic "/chatter"

You can use below command to do that.

rxgraph

The graph should look exactly like below. If both are not connected then it means you are publishing and advertising in different topics. image description

Hope this helps, Karthik

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-12-14 05:22:55 -0500

Seen: 376 times

Last updated: Dec 14 '11