-
Notifications
You must be signed in to change notification settings - Fork 104
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
Comments
Thanks @S-Dafarra for reporting 👍🏻 |
As I was mentioning during the last meeting the way the data is read from the SW(yarp device) and FW(embobjIMU), i.e. they both read 32 bytes starting from the ACC_REG.
The difference (that I missed, thanks @traversaro for pointing it out) is how the euler angles are retrieved. This PR robotology/icub-firmware#154 should fix the problem. |
PR merged ✔ |
With a lot of delay, I finally managed to test it again on the robot and it works as expected 🎉 Data: |
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 theMultipleAnalogSensorsInterfaces
. By displaying its output using an iCub model, I noticed the following output: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:
(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:cc @traversaro @pattacini @DanielePucci
The text was updated successfully, but these errors were encountered: