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

Pose2::Align #1150

Merged
merged 1 commit into from
Apr 1, 2022
Merged

Pose2::Align #1150

merged 1 commit into from
Apr 1, 2022

Conversation

dellaert
Copy link
Member

  • 2 new named Pose2::Align constructors with (a, b) convention
  • deprecated free align in Pose2.h

for (size_t j=0; j < a.cols(); j++) {
ab_pairs.emplace_back(a.col(j), b.col(j));
}
return Pose2::Align(ab_pairs);
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would go in the other direction, but okay.

Copy link
Member Author

Choose a reason for hiding this comment

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

aTb corresponds to (a,b) pairs

Copy link
Collaborator

Choose a reason for hiding this comment

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

I meant we compute everything with matrices and use the Pose2Pairs version to call the matrix version.

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh, I agree with that! Other PR. Will merge now.

Copy link
Collaborator

@varunagrawal varunagrawal left a comment

Choose a reason for hiding this comment

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

LGTM with 1 comment.

/**
* @deprecated Use static constructor (with reversed pairs!)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Any reason we've reversed the pairs? This seems API breaking since the new method is semantically exactly the same as the old one.

Copy link
Member Author

Choose a reason for hiding this comment

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

We're bringing 2D in line with 3D

@dellaert dellaert merged commit b2b878e into develop Apr 1, 2022
@varunagrawal varunagrawal deleted the feature/align_align branch October 22, 2023 19:58
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