Skip to content

feat(polhemus): add resetRegistration() to PolhemusCoregistration#996

Open
chdinh wants to merge 1 commit into
stagingfrom
chdinh/polhemus-reset-registration
Open

feat(polhemus): add resetRegistration() to PolhemusCoregistration#996
chdinh wants to merge 1 commit into
stagingfrom
chdinh/polhemus-reset-registration

Conversation

@chdinh
Copy link
Copy Markdown
Member

@chdinh chdinh commented May 12, 2026

Clears headToWorld, headToDevice and sets registrationValid=false, then emits registrationChanged. Called when the user clears all acquired points so no stale transform remains active.

Clears headToWorld, headToDevice and sets registrationValid=false,
then emits registrationChanged. Called when the user clears all
acquired points so no stale transform remains active.
Copilot AI review requested due to automatic review settings May 12, 2026 08:02
Copy link
Copy Markdown

Copilot AI left a comment

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 adds a small public API to clear any previously computed Polhemus head↔device registration, ensuring downstream consumers don’t keep using a stale transform after fiducials/points are cleared.

Changes:

  • Added PolhemusCoregistration::resetRegistration() declaration to the public interface.
  • Implemented resetRegistration() to invalidate registration, reset transforms to identity, and emit registrationChanged().

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/libraries/utils/polhemus/polhemus_coregistration.h Adds the resetRegistration() public method declaration and Doxygen comment.
src/libraries/utils/polhemus/polhemus_coregistration.cpp Implements resetRegistration() to clear registration state and notify listeners.

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

Comment on lines +168 to +169
* @brief Reset the registration state (headToWorld, headToDevice) to identity.
* Call this when the user clears all fiducials.
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.

2 participants