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

Revision history [back]

click to hide/show revision 1
initial version

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.