Skip to content

Add alignment unit test for IterativeClosestPointWithNormals - #6454

Merged
mvieth merged 1 commit into
PointCloudLibrary:masterfrom
harshareddy1611:add-icp-with-normals-test
Aug 10, 2026
Merged

Add alignment unit test for IterativeClosestPointWithNormals#6454
mvieth merged 1 commit into
PointCloudLibrary:masterfrom
harshareddy1611:add-icp-with-normals-test

Conversation

@harshareddy1611

Copy link
Copy Markdown
Contributor

Previously the only test checked the symmetric-objective getter/setter and never ran an actual alignment. This adds a helper that aligns the bunny clouds using IterativeClosestPointWithNormals and checks convergence and fitness score, for both float and double precision.

Closes #3535.

Previously the only test checked the symmetric-objective getter/setter
and never ran an actual alignment. This adds a helper that aligns the
bunny clouds using IterativeClosestPointWithNormals and checks
convergence and fitness score, for both float and double precision.

Closes PointCloudLibrary#3535.

Signed-off-by: Harsha Reddy <harsha.reddy1611@gmail.com>
Copilot AI review requested due to automatic review settings August 3, 2026 12:39

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 pull request adds a real alignment regression test for IterativeClosestPointWithNormals, addressing the gap where the existing test only exercised the symmetric-objective getter/setter without running ICP.

Changes:

  • Adds a reusable helper (runICPWithNormals<Scalar>()) that computes normals for the bunny point clouds and runs ICP-with-normals.
  • Validates alignment success via convergence and a fitness-score threshold for both float and double instantiations.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@harshareddy1611

Copy link
Copy Markdown
Contributor Author

The failing job is a transient CI/infrastructure error. Docker pull failed with exit code 1 and Value cannot be null (Parameter 'ContainerId') rather than a build or test failure. The tests themselves ran and passed (966/966). Could this job be re-run when convenient? The test also builds and passes locally on Ubuntu 24.04 / GCC. Thanks!

@mvieth mvieth left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me, thank you!

@mvieth
mvieth merged commit 62eb200 into PointCloudLibrary:master Aug 10, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add unit tests for IterativeClosestPointWithNormals

4 participants