Automated pipeline to convert raw MCAP bagfiles containing Ouster LiDAR packets into processed point cloud bagfiles. Replays raw data through the Ouster driver to decode packets into point clouds and records the output.
| Package | Description |
|---|---|
convert_lidar_packets_launch |
Launch files and configuration for the conversion pipeline |
- Replays a recorded bagfile containing raw
lidar_packetsat configurable speed (default 0.5×) - The Ouster driver decodes raw packets into point cloud messages
- A
data_recordingnode captures the decoded output (excluding raw packets) into a new bagfile - Metadata files (
ouster_metadata.txt,metadata.yaml) are copied to the output directory
Convert a specific bagfile:
ros2 launch convert_lidar_packets_launch convert.launch.py bagfile_path:=/path/to/bagfileIf bagfile_path is not specified, the most recent bagfile in the default directory is used.
| File | Description |
|---|---|
config/convert.param.yaml |
Output directory, replay rate, storage format, topics to exclude |
config/lidar.param.yaml |
Ouster driver settings for replay (sensor frames, timestamp mode, QoS) |
config/qos_profile_override.yaml |
QoS profile overrides for rosbag2 replay compatibility |
| Parameter | Default | Description |
|---|---|---|
use_custom_output_directory |
false |
Output to input bagfile directory by default |
output_directory |
$HOME/MOSEP/bagfiles/ |
Custom output path |
storage_format |
mcap |
Bag storage format |
rate |
0.5 |
Replay speed (lower = more processing time) |
recording_mode |
exclude |
Exclude raw packets, keep processed data |
Apache 2.0