chore(rosbag2_to_nonannotated): updated lidar metainfo format#267
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR updates the lidar metadata format by removing dependencies on ConcatenatedPointCloudInfo message structure for point cloud processing and introducing a new JSON-based metadata format with source ID mapping.
Key changes:
- Removed lidar index extraction from point cloud data processing
- Introduced configurable lidar source mapping to translate topics to source IDs
- Simplified lidar info metadata JSON format to include only essential fields (stamp and sources)
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| perception_dataset/utils/rosbag2.py | Removed lidar index handling and info message parameters from point cloud conversion functions; added zero-point filtering |
| perception_dataset/rosbag2/rosbag2_to_non_annotated_t4_converter.py | Updated to use new lidar info format with source ID mapping; refactored parameter passing |
| perception_dataset/rosbag2/converter_params.py | Introduced structured LidarSensor model with dictionary access support and lidar_sources_mapping field |
| config/convert_rosbag2_to_non_annotated_t4_with_lidar_info_sample.yaml | Added example lidar sources mapping configuration |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
jacoblambert
left a comment
Contributor
There was a problem hiding this comment.
I may be underqualified for this review so feel free to correct me if I'm totally misunderstanding, but please take a look at my comments.
for more information, see https://pre-commit.ci
Contributor
|
Thanks for addressing these issues, LGTM!! |
jacoblambert
approved these changes
Nov 20, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR updates the conversion of lidar pointcloud metainfo to match the definition in t4-devkit. In addition, it does some minor refactoring and removes the
lidar_indexfield in the pcd files to match nucenes (and t4-devkit) format (x,y,z,intensity,ring_index).How it was tested
Tested locally using several rosbags.