Skip to content

feat(autoware): Add VoxelGridDownsampleFilter (#750) - #811

Open
romancardenas wants to merge 3 commits into
tier4:mainfrom
romancardenas:autoware/voxel_grid_downsample_filter
Open

romancardenas wants to merge 3 commits into
tier4:mainfrom
romancardenas:autoware/voxel_grid_downsample_filter

Conversation

@romancardenas

@romancardenas romancardenas commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Description

This PR advances on #750.

This PR builds on top of #810.

It emulates the implementation of ROS2 Autoware v1.8.0.

The main difference with the baseline implementation is error handling. Instead of having mutable references to output vectors and cloud points, internal methods generate the structs and return them when successful.

  • It has configurable voxel dimensions.
  • Voxel indexing and representative-point computation consistent with the reference implementation.
  • Additional fields are handled but not preserved. This is the same as in the base implementation.
  • Integration with the Awkernel point cloud preprocessing pipeline is pending.

Acceptance criteria:

  • Reference has no tests, so I could not verify it works exactly the same way.
  • I added edge case tests for negative and non-finite coordinates.
  • timestamp and frame ID are cloned from the input, preserving it.
  • This implementation returns the voxel IDs in ascending order. The reference order uses an unordered map and, as there is no reference test, I could not verify the order. However, I believe the order in point clouds should not be relevant at test level.
  • As with feat(autoware): add CropBoxFilter (#748) #803, performance comparison is left for a future PR.

It is still work in progress (more tests and docs are needed). I will complete the description once everything is ready.

How was this PR tested?

  • scripts/ci.sh passes on my machine.
  • Additional tests pass on my machine.

@romancardenas
romancardenas force-pushed the autoware/voxel_grid_downsample_filter branch from acef7e0 to 55f577d Compare November 23, 2026 02:18
@romancardenas
romancardenas force-pushed the autoware/voxel_grid_downsample_filter branch from 55f577d to b6070ed Compare November 23, 2026 02:40
@romancardenas
romancardenas marked this pull request as ready for review November 23, 2026 02:58

This branch has not been deployed

No deployments
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.

1 participant