How to implement the "pipeline pattern" in ROS?
Hi,
as far as I understand in ROS the connections between nodes are implicitely given by topic names. So for example node A provides "camera_image", and node B subscribes to "camera_image", and provides "edge_detections". Now, A and B are connected. The names are hard-coded in the nodes source files.
But what if I want to install a node C between A and B, which takes "camera_image", provides "black_and_white_image"? Node B now should no longer subscribe to "camera_image", but to "black_and_white_image".
Of course I don't want to change the source of B. Should I pass the topic name as command line argument?
What is my fundamental misunderstanding here?