robotology-legacy / codyco-modules

Whole-body Compliant Dynamical Contacts in Cognitive Humanoids
www.codyco.eu
Other
20 stars 13 forks source link

wholeBodyDynamics broken on iCubGenova04 #261

Closed gabrielenava closed 6 years ago

gabrielenava commented 6 years ago

Together with @Yeshasvitvs we tried to run the fast yoga demo on iCubGenova04. The robot fails immediately. The measured joint torques went up to a crazy value: 2000 Nm (see the picture below).

screenshot from 2018-04-04 19-21-14

We checked the FT measurements both using Simulink and then directly from the yarp port, but we weren't able to see any issue (see the picture below):

screenshot from 2018-04-04 19-50-36 screenshot from 2018-04-04 19-57-01

However, the iCubGui showed crazy random forces acting on the robot (see the attached GIF):

out

We then suspected that for some reason wholeBodyDynamics got broken, and therefore we checked directly a wholeBodyDynamics port (/wholeBodyDynamics/right_foot/cartesianEndEffectorWrench:o) and this was the result:

screenshot from 2018-04-04 20-00-02

There are no errors in the yarplogger, and yarp, icub-main, codyco-modules, robots-configurations are in devel branch with no local changes.

traversaro commented 6 years ago

There are three inputs to wbd: ft sensors, joint positions and gyro/acceleroneter of the imu. Have you checked the last two?

gabrielenava commented 6 years ago

I checked the joint positions and there were no spikes, but I didn't check the IMU. I will check it tomorrow.

gabrielenava commented 6 years ago

I checked the joints and the IMU measurements. They were fine, while in the iCubGui I saw random forces as in the gif. See attached pictures.

IMU:

screenshot from 2018-04-05 09-53-56

Joints: screenshot from 2018-04-05 09-56-00

However, I noticed strange error in the logger (generic motor error?). Maybe it is also worth to open an issue in icub-support. (consider the robot was position control and floating while I tested it). screenshot from 2018-04-05 09-57-33

traversaro commented 6 years ago

We tried two things with Luca:

In both case everything was working fine, so even if there are no crazy values in the bosch IMU, the issue is related in some way to the use of the bosch IMU.

gabrielenava commented 6 years ago

The issue seems related to the joint acceleration estimation for the neck joints. See https://github.com/robotology/icub-support/issues/622. Closing this issue.