Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix similarity scale error #1288

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

Yannnnnnnnnnnn
Copy link
Contributor

There is an error in pose.inverse() when scale exists.

screenshot from 2018-04-11 21-21-14

@@ -37,7 +37,7 @@ Pose3 Similarity3::operator () ( const Pose3 & pose ) const

Similarity3 Similarity3::inverse() const
{
return Similarity3(pose_.inverse(), 1.0 / scale_);
return Similarity3(Pose3(pose_.rotation(),-pose_.rotation()*pose_.center()*scale_), 1.0 / scale_);
Copy link
Contributor

Choose a reason for hiding this comment

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

rotation needs to be inverted

Copy link
Contributor

Choose a reason for hiding this comment

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

true, with the rotation inverted it solves #1285

Copy link
Member

Choose a reason for hiding this comment

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

@Yannnnnnnnnnnn @sebastienchappuis Do you want to make a PR with a unit test and the fix?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

made a stupid error here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@pmoulon I will try to add an unit test here and fix it.

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.

None yet

4 participants