Skip to content

feat(dataclass): add PCD support to LidarPointCloud.from_file#285

Draft
tokuda99 wants to merge 1 commit into
mainfrom
feat/pointcloud/pcd-support
Draft

feat(dataclass): add PCD support to LidarPointCloud.from_file#285
tokuda99 wants to merge 1 commit into
mainfrom
feat/pointcloud/pcd-support

Conversation

@tokuda99

Copy link
Copy Markdown

What

This pull request adds PCD support to LidarPointCloud.from_file, while keeping
the existing behavior for .bin / .pcd.bin files unchanged. PCD files are read via
pypcd4, which tier4_perception_dataset already depends on for PointCloud2 parsing,
and which the upcoming .pcd output option in tier4_perception_dataset will use on
the writer side — so both sides will share the same PCD implementation. This adds
pypcd4 as a new dependency of t4-devkit; happy to switch to a self-contained parser
(like the radar one) if we prefer not to add it.

The existing loader test is renamed with a _from_bin suffix to make the pair with
the new _from_pcd test explicit.

@github-actions github-actions Bot added ci Continuous Integration (CI) processes and testing dependencies Pull requests that update a dependency file new-feature New feature or request labels Jul 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

☂️ Python Coverage

current status: ❌

Overall Coverage

Lines Covered Coverage Threshold Status
4328 3657 85% 50% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
t4_devkit/dataclass/pointcloud.py 71% 🔴
TOTAL 71% 🔴

updated for commit: 74e4072 by action🐍

return 4

@classmethod
def from_file(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@tokuda99 Could you update SegmentationPointCloud as well?

@ktro2828

Copy link
Copy Markdown
Collaborator

@tokuda99 Thank you for your PR! I'd appreciate if you could update the document about pointcloud format! https://github.com/tier4/t4-devkit/blob/main/docs/schema/data.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continuous Integration (CI) processes and testing dependencies Pull requests that update a dependency file new-feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants