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

The embObjIMU device output the RPY data in the wrong order #701

Closed
S-Dafarra opened this issue Dec 3, 2020 · 4 comments · Fixed by robotology/icub-firmware#154
Closed

Comments

@S-Dafarra
Copy link
Contributor

S-Dafarra commented Dec 3, 2020

Lately, I have been investigating the output of the orientations sensors embedded in the FT sensors attached to the robot feet. In particular, I have been using the getOrientationSensorMeasureAsRollPitchYaw method of the MultipleAnalogSensorsInterfaces. By displaying its output using an iCub model, I noticed the following output:
ezgif-2-38372e5d4323
Here you can see two frames attached to the robot: one short and thick that is the one obtained through forward kinematics from the joint values (the robot is on the pole). The other, long and thin, is the one whose orientation is computed from the RPY data following the corresponding YARP documentation. As you can see, the two frames rotate in a completely different way.

By considering the RPY data as Yaw-InvertedPitch-Roll, the result is the following:
left

(The magenta line is the scaled accelerometer measurements)

This problem does not occur when the IMU is read from i2c for example. I tested the same algorithm also on the head, without applying any shuffling and this is the output:
head

cc @traversaro @pattacini @DanielePucci

@pattacini
Copy link
Member

Thanks @S-Dafarra for reporting 👍🏻
We'll be dealing with this starting the next week.

@Nicogene
Copy link
Member

@pattacini
Copy link
Member

PR merged ✔

@S-Dafarra
Copy link
Contributor Author

S-Dafarra commented Mar 4, 2021

With a lot of delay, I finally managed to test it again on the robot and it works as expected 🎉

Data:
masImuTestOutput.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants