feat(dataclass): add PCD support to LidarPointCloud.from_file#285
Draft
tokuda99 wants to merge 1 commit into
Draft
feat(dataclass): add PCD support to LidarPointCloud.from_file#285tokuda99 wants to merge 1 commit into
tokuda99 wants to merge 1 commit into
Conversation
Contributor
☂️ Python Coverage
Overall Coverage
New FilesNo new covered files... Modified Files
|
ktro2828
reviewed
Jul 23, 2026
| return 4 | ||
|
|
||
| @classmethod | ||
| def from_file( |
Collaborator
There was a problem hiding this comment.
@tokuda99 Could you update SegmentationPointCloud as well?
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 |
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.
What
This pull request adds PCD support to
LidarPointCloud.from_file, while keepingthe existing behavior for
.bin/.pcd.binfiles unchanged. PCD files are read viapypcd4, which tier4_perception_dataset already depends on for PointCloud2 parsing,
and which the upcoming
.pcdoutput option in tier4_perception_dataset will use onthe 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_binsuffix to make the pair withthe new
_from_pcdtest explicit.