Is it possible to programmatically trigger recording using rosbag2
I want to start recording topics using rosbag2 based on some events occurred at runtime. Is it possible to record and store topic data programmatically in c++ using rosbag2? Any suggestions on how I can achieve this?