-
Notifications
You must be signed in to change notification settings - Fork 2
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
iCubGenova09 β Jumps on the estimated yaw angle provided by the robot IMU #1487
Comments
Apparently the issue is happening just on FT58, and not on FT45 . Did you checked which version of firmware is loaded on these devices? |
Another thing that I think could be interesting is to plot in the same figure the yaw from the sensor and the one from the kinematics. |
Hi @traversaro as you suggested I show you the plots of the rpy angle provided by the IK and the rpy extracted by Here are the plots, as you can notice the roll and pitch angles of the IMU follow the one evaluated by the FK. On the other hand, there is a mismatch regarding the yaw. In details on the
|
Thanks, interestingly, also the differences in the yaw of foot sensors are quite strange. How are you going from homogenous matrices to RPY in the case of the forward kinematics? |
By the way, sorry for the random suggestsions, but if the joints after the leg FT sensor and before the foot are constant, another thing that it would be interested to check is to plot {}^{l_foot_front} R_{l_foot_rear} and {}^{l_foot_front} R_{l_leg} . They should be constant, but if they are not constant something wrong is going on. |
Hi @traversaro @GiulioRomualdi, we are organizing to address this issue in early February. |
/remind February 06 |
β° Reminder |
Just planned for this sprint! |
We noticed similar jumps on yaw also inspecting the eul data with reading from the simulink model Looking here it seems that it is due to magnetometer data not reliable, then is is somehow related to #1485 |
Alongside @mfussi66, we managed to use Here is the plot of the Euler angles: |
As we supposed fixing the magnetometer has fixed also the jumps in the Euler angles, see the plots above: Thanks @marcoaccame! Euler angles
|
That's wonderful! This activity was pivotal for enabling the usage of the feet imu in the walking infrastructure! Thank you, really! |
Super cool, thanks @Nicogene @marcoaccame |
The fix has been delivered also in terms of binaries: I think we can close the issue π |
Device name π€
iCubGenova09
Request/Failure description
I collected the orientation data coming from the robot imu mounted on the FTs and I noticed some jumps on the yaw angle. This may be related to #1485.
Detailed context
We collected the data as follows:
Let us now define${}^0 R_{imu}$ the orientation coming from the IMU w.r.t. the IMU inertial frame (denoted with 0). Let us now introduce $I$ the inertial frame considered by the kinematics. We would like to compare ${}^I R _ {imu}$ with $\prescript{I}{}{R} _ {expected}$ that is computed by the forward kinematics. ${} ^ I R_{imu}$ is given by $${}^I R_{imu} = {}^I R_{0} {}^0 R _{imu}$$ ${}^I R _{0}$ is computed using the first readout of the imu as
$${}^I R _{0} = {}^I R _{imu}(0) {}^0 R _{imu}(0)^\top$$
where
We collected two datasets:
2023_01_12_13_16_07.mat
2023_01_18_16_39_51.mat
Both the datasets can be found here: datasets.zip
What follows are the plots associated with the experiment (1) (dataset
2023_01_12_13_16_07.mat
)r_leg
r_foot_front
r_foot_rear
l_leg
l_foot_front
l_foot_rear
As you can notice in the
left leg
the yaw angle jumps several times, as far as I can notice in the following plot (please notice that is the same plot as thel_leg
plot in the above table with some labels) the jumps are not due the wrapping of the angle between (-180 +180 or 0 360). On the other hand, the roll angle jumps between +180 to -180 (and this is expected)Moreover as far as I know at the instant in which the yaw jumps we are not in a gimbal lock situation.
Since the strange jumps seem to appear only on the yaw axis we decide to substitute the yaw angle with the one provided by the forward kinematics. So I defined
$${}^I R_{imu, fk} = R_{z}^{fk} R_{y}^{imu} R_{x}^{imu}$$ then I compared ${}^I R _ {imu}$ and ${}^I R_{imu, fk}$ with $\prescript{I}{}{R} _ {expected}$ , as you can notice in the following videos when the yaw angle is forced to be the one provided by the forward kinematics the two frames almost coincide.
Videos of the dataset 2023_01_12_13_16_07.mat
r_leg
out.mp4
out.mp4
r_foot_front
out.mp4
out.mp4
r_foot_rear
out.mp4
out.mp4
l_leg
out.mp4
out.mp4
Videos of the dataset 2023_01_18_16_39_51.mat
r_leg
out.mp4
out.mp4
r_foot_front
out.mp4
out.mp4
r_foot_rear
out.mp4
out.mp4
Additional context
Similarly to #1485 I opened the issue in tech-support but I don't think it is an issue specifically related to the iCubGenova09.
cc @pattacini @traversaro @G-Cervettini
How does it affect you?
No response
The text was updated successfully, but these errors were encountered: