ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

About subscriber and publisher node

asked 2013-01-09 05:06:44 -0600

kala gravatar image

Is subscriber and publisher node coding will be in the same cpp file

edit retag flag offensive close merge delete


What do you want to do? Reformulate that question, so it is understandable. For now my guess answer is: No.

dornhege gravatar image dornhege  ( 2013-01-09 05:32:10 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2013-01-09 08:31:01 -0600

joq gravatar image

If you want to create two different nodes, one publishing a topic and the other subscribing to its messages, they will need different .cpp files for their sources.

If you want a single node that subscribes to one topic and publishes to another, than can be done in a single .cpp file.

edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools


Asked: 2013-01-09 05:06:44 -0600

Seen: 61 times

Last updated: Jan 09 '13