robotology / icub-models

Official URDF and SDF models of the iCub humanoid robot.
Creative Commons Attribution Share Alike 4.0 International
33 stars 34 forks source link

Create iCubGazeboV3_visuomanip #169

Closed traversaro closed 1 year ago

traversaro commented 2 years ago

For simulations related to teleoperation, it would be useful to have an iCubGazeboV3 model with moving eyes, cameras and moving hands. However, in the short term it would be difficult to obtain this information directly from the CAD, so probably we need to create this model by taking the hands and he head from the [iCubGazeboV2_5_visuomanip](https://github.com/robotology/icub-models/tree/master/iCub_manual/conf_manual/iCubGazeboV2_5_visuomanip), and adding them to the existing iCubGazeboV3 model.

Related issues:

cc @S-Dafarra

mebbaid commented 2 years ago

On it, will look at the provided link, and maybe ask for help.

Woolfrey commented 2 years ago

Hi @traversaro, @mebbaid, I tried using this model and there's a bit of a problem with the hands!

image

Gazebo also seems to freeze a lot when I load this model, which may or may not be related to the detached hands:

image

mebbaid commented 2 years ago

@Woolfrey : try to pull and compile against this fork https://github.com/mebbaid/icub-models instead of the usual icub-models master and see if this issue is resolved.

Namely using this commit https://github.com/mebbaid/icub-models/commit/989bcf778ccd7509d36e25decc157283c24522ad

traversaro commented 2 years ago

@mebbaid if that works, can you propagate it to https://github.com/robotology/icub-models/ ? Thanks!

mebbaid commented 2 years ago

certo @traversaro . It seems to fix the issue on my side and Ehsan's side. Waiting fro @Woolfrey to confirm that the fix works for him as well before opening a PR.

Woolfrey commented 2 years ago

@mebbaid , yes that seemed to work:

image

Woolfrey commented 2 years ago

@mebbaid @traversaro, I got the model to load and it seems to be working with my controller, however it seems the right hand is producing some sort of force field when I push a box:

Magic

mebbaid commented 2 years ago

This suggests to me that there is some issue with the collision parameters in the urdf for the r_hand link only. I will check it, and if that is the case I will push the fix to the fork

traversaro commented 2 years ago

Note that in Gazebo you can enable the visualization of collision meshes to debug this sort of behaviour.

mebbaid commented 2 years ago

Indeed it was the collision group of the r_hand link, as the following pic shows.

image

I have pushed a commit https://github.com/mebbaid/icub-models/commit/0f25a16835a562c5091a2e3eb38dd8271e0aedbd in the fork with a fix as in the pic below. Let me know @Woolfrey if it works for you and that the intuition was correct.

image

Woolfrey commented 2 years ago

@mebbaid, it seems to have worked!

image