-
Notifications
You must be signed in to change notification settings - Fork 437
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
correctly initialize orientation #115
base: master
Are you sure you want to change the base?
Conversation
Can one of the admins verify this patch? |
add to whitelist |
|
||
if (q_vc.w() == 1) { // If there is no pose measurement, only apply q_wv. | ||
q = q_wv; | ||
} else { // If there is a pose measurement, apply q_ic and q_wv to get initial attitud |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
attitude
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
attitudE
@otim thanks for changing this. I agree that it is better to push the yaw offset into the q_wv offset instead of manipulating the state. lgtm. |
@@ -186,8 +186,15 @@ class PositionPoseSensorManager : public msf_core::MSF_SensorManagerROS< | |||
Eigen::Quaterniond yawq(cos(yawinit / 2), 0, 0, sin(yawinit / 2)); | |||
yawq.normalize(); | |||
|
|||
q = yawq; | |||
q_wv = (q * q_ic * q_vc.conjugate()).conjugate(); | |||
q_wv = yawq.conjugate(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this does not need a conjugate. (see comment below)
@otim please merge your other PR first, then master back into this and test it before merging this PR to master. Thanks. |
Ok |
No description provided.