Set LZ4 compression level to default.
The official ROS rosbag utility uses the default compression level for LZ4 compression so that there is essentially no additional latency involved in the compression, and uses BZ2 when the additional time/space tradeoff should be made.
Currently, on line 186 of rosbag1/writer.py, we are using the maximum compression level of 16: https://gitlab.com/ternaris/rosbags/-/blob/master/src/rosbags/rosbag1/writer.py#L186
For my use cases this makes LZ4 compression too slow.
Could we please change this back to the default value of 0 to match the behavior and performance of rosbag record --lz4
?
If you want to maintain the current default behavior, maybe we could make this configurable?
Edited by Acshi Haggenmiller