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

[SE(3)] Add setters for translation and rotation #166

Merged
merged 5 commits into from
Sep 2, 2020

Conversation

GiulioRomualdi
Copy link
Contributor

This PR implements the setters for the SE(3) object. Specifically, it implements two functions quat() and translation() to set the rotation and the translation to an already existing SE(3) object.

The quat() methods checks if the quaternion has unitary norm, if not an exception is thrown.

This PR closes #160

@GiulioRomualdi
Copy link
Contributor Author

#167 should fix the windows appveyor compilation

include/manif/impl/se3/SE3_base.h Outdated Show resolved Hide resolved
include/manif/impl/se3/SE3_base.h Outdated Show resolved Hide resolved
include/manif/impl/se3/SE3_base.h Show resolved Hide resolved
include/manif/impl/se3/SE3_base.h Outdated Show resolved Hide resolved
include/manif/impl/se3/SE3_base.h Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

Codecov Report

Merging #166 into devel will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##            devel     #166      +/-   ##
==========================================
+ Coverage   98.23%   98.24%   +0.01%     
==========================================
  Files          37       37              
  Lines        1132     1142      +10     
==========================================
+ Hits         1112     1122      +10     
  Misses         20       20              

@artivis artivis self-assigned this Sep 2, 2020
@artivis artivis added API API change enhancement New feature or request labels Sep 2, 2020
… method

Co-authored-by: Jeremie Deray <deray.jeremie@gmail.com>
@artivis
Copy link
Owner

artivis commented Sep 2, 2020

Alright, looks good. Thanks for iterating 👍

@artivis artivis merged commit b2f7779 into artivis:devel Sep 2, 2020
@GiulioRomualdi GiulioRomualdi deleted the feature/add_setters_SE3 branch September 2, 2020 19:55
mindbeast pushed a commit to mindbeast/manif that referenced this pull request Sep 13, 2020
* [SE3] Implement the setters for translation and quaternion

* [SE3] Implement a test for the quaternion and translation setters

* [SE(3)] Fix style in SE3_base.h file

Co-authored-by: Jeremie Deray <deray.jeremie@gmail.com>

* [SE(3)] Avoid code duplication in SE3::quat() method

Co-authored-by: Jeremie Deray <deray.jeremie@gmail.com>

* [SE(3)] Avoid creating temporary quaternion object in SE3Base::quat() method

Co-authored-by: Jeremie Deray <deray.jeremie@gmail.com>

Co-authored-by: Jeremie Deray <deray.jeremie@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API API change enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add the possibility to easily set quaternion and translation in an SE3 object
3 participants