I would like to record ros2 bag using node(python) and that should subscribe to several topics of different message types, may i know, how to to do that without using loops.
I would like to record like as below, but from multiple topics. Each subscription of all topics to be at same time stamp. https://docs.ros.org/en/humble/Tutorials/Advanced/Recording-A-Bag-From-Your-Own-Node-Py.html