Matching multiple topics, where one topic is processed
Hello, im quite new to ROS and am wondering how to subscribe to multiple topics where one topic comes from another node than the others. In my system I have three nodes: one who captures data from a sensor and publishes the data through multiple topics. The second node subscribes to some of the topics from the first node, processes the data and sends it to the third node. My third node receives data from both the second node and some processed data from the third node.
The thing is, that Im afraid the data from the processing node(second node) will lag behind the sensor node(first node), do you think that will be the case? Do you have any advice how to match the processed data with the data from the sensor?