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

Add Sim3 constructor from scale, unit quaternion, and translation #362

Closed

Conversation

jslee02
Copy link

@jslee02 jslee02 commented Jun 25, 2022

It would be convenient to allow directly constructing Sim3 from scale, unit quaternion, translation (e.g., Sophus::Sim3d(scale, quat, trans)). The current best ways seem like Sim3d(RxSO3d(scale, SO3d(quat)), pos) or Sim3d(Eigen::Quaterniond(quat.coeffs() * std::sqrt(scale)), trans), which may not obvious for novice users. Note that RxSO3d(scale, quat) is not allowed because the SO3 constructor from quaternion is explicit.

@jslee02 jslee02 marked this pull request as ready for review June 25, 2022 19:08
@strasdat strasdat closed this Aug 1, 2022
@strasdat strasdat reopened this Aug 1, 2022
@strasdat strasdat closed this Aug 1, 2022
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