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

About subscriber and publisher node

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

kala gravatar image

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

edit retag flag offensive close merge delete

Comments

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 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

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

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

Question Tools

Stats

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

Seen: 133 times

Last updated: Jan 09 '13