Skip to content

Fix incorrect key in cheirality error message for PPP/PPPC factors#2463

Merged
dellaert merged 1 commit intoborglab:developfrom
jashshah999:fix/cheirality-wrong-key
Mar 13, 2026
Merged

Fix incorrect key in cheirality error message for PPP/PPPC factors#2463
dellaert merged 1 commit intoborglab:developfrom
jashshah999:fix/cheirality-wrong-key

Conversation

@jashshah999
Copy link
Copy Markdown
Contributor

Summary

ProjectionFactorPPP and ProjectionFactorPPPC print the wrong key in the verbose cheirality exception message. Both factors use key2() (the body-camera transform key) instead of key3() (the landmark key) when reporting which landmark moved behind the camera.

The key ordering is:

  • key1() = body pose
  • key2() = body-camera transform
  • key3() = landmark
  • key4() = calibration (PPPC only)

Fixes #849

ProjectionFactorPPP and ProjectionFactorPPPC were printing key2()
(the transform key) instead of key3() (the landmark key) in the
verbose cheirality exception message.

Fixes borglab#849
Copy link
Copy Markdown
Member

@dellaert dellaert left a comment

Choose a reason for hiding this comment

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

Cool, thanks for the fix!

@dellaert dellaert merged commit a31669a into borglab:develop Mar 13, 2026
34 of 36 checks passed
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.

Verbose cheirality in ProjectionFactorPPP and ProjectionFactorPPPC prints wrong key for landmark

2 participants