I am using rosbag's API: write to write messages from one bag to another, but when I run the code, an error occurs:
**
terminate called after throwing an instance of 'ros::serialization::StreamOverrunException' what(): Buffer Overrun
**
I think the buffer of the bag file burst, so I want to ask how to increase the buffer size of the bag file in the code.