Can I play and record rosbags at the same time?
I have a quite general question that I would like to know before starting any implementation.
Say I have a rosbag file (recorded previously), can I play this bag and at the same time record another bag file? Is this possible?
I was thinking writing a launch file with several nodes. one node being
<node name="rosbag" type="play" pkg="rosbag" args="$(find bag)/bags/First1.bag" > </node>
and in the same launch file
<node name="rosbag" type="record" pkg="rosbag" args="topicIwanttorecord" > </node>
(Not really sure if that is how I should write the nodes but you get the idea
Why I would need to do this? well because I would play the first bag, the run another program that takes some of the topics published by that bag, operate with them and publish another topic, which is the topic I want to record in the second bag