Publish ROSBAG in synch with /clock by roscpp
Hey, i wannn sync the publishing of an rosbag with the /clock topic offered in the running system out of a roscpp node.
What is your suggestion to solve this issue? Maybe i have to subscribe /clock within my node and make message_filters/ApproximateTime work? But i have not any clue about this message filter. My understanding of c++ is not properly advanced...
So my suggestion: Subscribe /clock, read msg from rosbag, searching for nearest msg with function above (or other recommendated methods?) and publish the synchronized msg from rosbag.
Is this workaround correct? Do you prefere any other methods? What is your way to solve this issue? Pls help an beginner in c++ and ros.. :) Thx for your time!