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

`iCubGazeboV*` doesn't work with YARP 3.8 (YARP master as of October 2022) NWS/NWC #171

Closed pattacini closed 10 months ago

pattacini commented 2 years ago

The model iCubGazeboV2_5_visuomanip fails to work as expected.

Watch the video below recorded via https://github.com/vvv-school/tutorial_cartesian-interface:

https://user-images.githubusercontent.com/3738070/188446666-d084c7e4-871e-442e-8584-593a4325db79.mp4

cc @traversaro @Nicogene @xEnVrE

pattacini commented 2 years ago

Forgot to mention that I was testing it against the Distro 2022.08.0 using this docker image: https://github.com/vvv-school/vvv-school.github.io/pkgs/container/gitpod/40436674?tag=latest.

pattacini commented 2 years ago

I'm going to check also against https://github.com/robotology/icub-gazebo-grasping-sandbox.

pattacini commented 2 years ago

The grasping sandbox works like a charm ✅

https://user-images.githubusercontent.com/3738070/188452242-ad9d01d2-1d97-4957-bb68-bab40613db3d.mp4

The difference between the two docker images is that:

pattacini commented 2 years ago

Both icub-model@v1.25.0 and icub-model@master point to 74cbcda6e87534afa236187db52f2192e9a7e3f4. Further checking is required.

pattacini commented 2 years ago

I think I got it! It depends on which version of YARP is compiled.


This essentially means that we should update icub-models (at least the models that are manually handled) to remove any reference to controlboardwrapper2.

cc @traversaro @Nicogene @xEnVrE

Nicogene commented 2 years ago

I changed the title since this is an issue regarding all the models, we can keep it for the activity for porting them from controlboardwrapper2 to controlboard_nws_yarp

(Keep in mind to make explicit the period for https://github.com/robotology/robots-configuration/issues/378)

traversaro commented 2 years ago

Thanks @pattacini for the debug! This is related to https://github.com/robotology/icub-models-generator/issues/215 (that was tracking the migration of iCub v2.5 to gazebo_yarp_robotinterface). The first PR on this is https://github.com/robotology/icub-models-generator/pull/222 that was migrating iCub3 models.

pattacini commented 2 years ago

Super, @traversaro 👍🏻 Do those PRs cover the case of manually handled models as well, like the visuomanip?

traversaro commented 2 years ago

Super, @traversaro 👍🏻 Do those PRs cover the case of manually handled models as well, like the visuomanip?

There is no iCub 2.5 PR at the moment.

traversaro commented 2 years ago

I think I got it! It depends on which version of YARP is compiled.

* `yarp@v3.7.2` (which belongs to Distro 2022.08.0) still provides `controlboardwrapper2`, although it's deprecated and it seems that the iCub model makes use of such a device.

* `yarp@master` doesn't provide the `controlboardwrapper2` any longer causing the problem.

This essentially means that we should update icub-models (at least the models that are manually handled) to remove any reference to controlboardwrapper2.

cc @traversaro @Nicogene @xEnVrE

I updated the title to cover this.

xEnVrE commented 1 year ago

I saw that the automatically generated models should be now compatible with latest YARP after https://github.com/robotology/icub-models-generator/pull/231.

For the manually generated models, at least we have now the diff due to the automatic build in icub-models as a sort of guidance.

Is anybody planning to update such models already? If not, I might take the duty to update iCubGazeboV2_5_visuomanip. Of course, in the long run it would useful to abandon these models and generate them automatically with the hands as done in https://github.com/icub-tech-iit/ergocub-software.

@pattacini @traversaro

pattacini commented 1 year ago

Thanks for your offer @xEnVrE Actually, there's no plan to work on this soon.

Of course, in the long run it would useful to abandon these models and generate them automatically with the hands as done in https://github.com/icub-tech-iit/ergocub-software.

Definitely agree with this 👍🏻 @Nicogene and I were discussing this yesterday. However, the first point we'll need to attack is to restore our URDF generation pipeline, which is now broken because of an incompatibility between MATLAB and CREO.

xEnVrE commented 1 year ago

Actually, there's no plan to work on this soon.

I will dedicate some time to it and open a PR when ready!

our URDF generation pipeline, which is now broken

Thanks for the update on this.

traversaro commented 1 year ago

Thanks @xEnVrE !

xEnVrE commented 1 year ago

I will dedicate some time to it and open a PR when ready!

I opened the PR as discussed above.

I think that iCubGazeboV3_visuomanip would need a similar treatment. Can you confirm @mebbaid?

mebbaid commented 1 year ago

I think that iCubGazeboV3_visuomanip would need the same treatment. Can you confirm @mebbaid?

That is indeed the case, thanks @xEnVrE for noting me. I will open a corresponding PR.

pattacini commented 1 year ago

Thanks heaps @xEnVrE 🚀

traversaro commented 10 months ago

The last problems were fixed in https://github.com/robotology/icub-models/pull/188 .