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 for relative frame errors (lunar-devel) #663

Merged
merged 1 commit into from
Dec 27, 2017

Conversation

j-rivero
Copy link
Contributor

{ port of pull request #605 }
I noticed a lot of errors when using relative reference frames in Gazebo. When spawning the object, wrong multiplication order of quaternions is applied (as per here). The operation q1 *= q2 results in q1 = q1 * q2, but we wish to have q1 = q2 * q1, since we apply rotation to q1.

When obtaining the relative pose of the object w.r.t. to a frame, I noticed strange and inconsistent transformations. I used the reference for chaining transformations defined here to make the transformations cleaner.

Also, instead of using the relative entity, in the whole code the entity is transformed to a link, which does not allow for specifying a model as a relative entity.

{ port of pull request #605 }
I noticed a lot of errors when using relative reference frames in
Gazebo. When spawning the object, wrong multiplication order of
quaternions is applied (as per
[here](https://bitbucket.org/osrf/gazebo/src/a29d8dabed9a14fb6bafdcd31c84b160c00b127c/gazebo/math/Quaternion.cc?at=gazebo7&fileviewer=file-view-default#Quaternion.cc-391)).
The operation q1 *= q2 results in q1 = q1 * q2, but we wish to have q1 =
q2 * q1, since we apply rotation to q1.

When obtaining the relative pose of the object w.r.t. to a frame, I
noticed strange and inconsistent transformations. I used the reference
for chaining transformations defined
[here](http://osrf-distributions.s3.amazonaws.com/gazebo/api/dev/classgazebo_1_1math_1_1Pose.html)
to make the transformations cleaner.

Also, instead of using the relative entity, in the whole code the entity
is transformed to a link, which does not allow for specifying a model as
a relative entity.
@j-rivero j-rivero merged commit dc0af95 into lunar-devel Dec 27, 2017
@scpeters scpeters deleted the lunar-devel-transplant-605-2 branch January 11, 2018 18:00
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.

None yet

1 participant