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

Fix handling rpy with pitch equal to +/-M_PI/2 #19

Merged
merged 1 commit into from
Dec 9, 2015

Conversation

traversaro
Copy link
Contributor

Fix issue #18 .

Some trailing whitespace cleanup was accidentally added to the PR, for getting a clean diff without the
whitespaces change check https://github.com/ros/urdfdom_headers/pull/19/files?w= .

With this patch, all the test added in ros/urdfdom#67 correctly pass.

cc @vrabaud I did some check on a paper and it seemed to me that the old version was wrong, but perhaps I missed something. The new version seems ok to you?

The link to https://orbitalstation.wordpress.com/tag/quaternion/ is a bit confusing, because the formula reported there are different from the one implemented, and it is not clear if this is caused by some different convention used or for some other reason.
I think is a good idea to remove it.

@isucan
Copy link
Contributor

isucan commented Oct 5, 2015

i did not check this, but the updated formula seems incorrect to me. can someone else check? @scpeters

@traversaro
Copy link
Contributor Author

For a brief explanation of the correction, for the case of pitch equal to M_PI/2 , please check http://mathb.in/44096 .

@scpeters
Copy link
Contributor

It's not intuitive, but I checked the math and it looks right. Also, they wrote a nice test in urdfdom, which fails without this change.

+1

jacquelinekay added a commit that referenced this pull request Dec 9, 2015
Fix handling rpy with pitch equal to +/-M_PI/2
@jacquelinekay jacquelinekay merged commit dd546d9 into ros:master Dec 9, 2015
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