Skip to content

chore(rosbag2_to_nonannotated): updated lidar metainfo format#267

Merged
SamratThapa120 merged 8 commits into
mainfrom
chore/lidar-metainfo-update
Nov 20, 2025
Merged

chore(rosbag2_to_nonannotated): updated lidar metainfo format#267
SamratThapa120 merged 8 commits into
mainfrom
chore/lidar-metainfo-update

Conversation

@SamratThapa120

@SamratThapa120 SamratThapa120 commented Nov 18, 2025

Copy link
Copy Markdown
Contributor

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_index field 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.

Copilot AI review requested due to automatic review settings November 18, 2025 06:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread perception_dataset/utils/rosbag2.py
Comment thread perception_dataset/rosbag2/converter_params.py
Comment thread perception_dataset/rosbag2/converter_params.py Outdated

@tughril tughril left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jacoblambert jacoblambert left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread perception_dataset/utils/rosbag2.py
Comment thread perception_dataset/utils/rosbag2.py Outdated
Comment thread perception_dataset/rosbag2/rosbag2_to_non_annotated_t4_converter.py
Comment thread perception_dataset/rosbag2/rosbag2_to_non_annotated_t4_converter.py
Comment thread perception_dataset/rosbag2/converter_params.py Outdated
Comment thread perception_dataset/rosbag2/rosbag2_to_non_annotated_t4_converter.py Outdated
@jacoblambert

Copy link
Copy Markdown
Contributor

Thanks for addressing these issues, LGTM!!

@SamratThapa120
SamratThapa120 merged commit b1d2fed into main Nov 20, 2025
5 checks passed
@SamratThapa120
SamratThapa120 deleted the chore/lidar-metainfo-update branch November 20, 2025 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants