Skip to content

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

Merged
jackieokay merged 1 commit into
ros:masterfrom
traversaro:master
Dec 9, 2015
Merged

jackieokay merged 1 commit into
ros:masterfrom
traversaro:master

Conversation

@traversaro

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

isucan commented Oct 5, 2015

Copy link
Copy Markdown
Contributor

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

@traversaro

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

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