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

correctly initialize orientation #115

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

otim
Copy link
Contributor

@otim otim commented Jun 8, 2015

No description provided.

@ethzasl-jenkins
Copy link

Can one of the admins verify this patch?

@markusachtelik
Copy link

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
Copy link
Contributor

Choose a reason for hiding this comment

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

attitude

Choose a reason for hiding this comment

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

attitudE

@simonlynen
Copy link
Contributor

@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();
Copy link
Contributor

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)

@simonlynen
Copy link
Contributor

@otim please merge your other PR first, then master back into this and test it before merging this PR to master. Thanks.

@otim
Copy link
Contributor Author

otim commented Jun 8, 2015

Ok

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.

4 participants