robotology / icub-models

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

Make iCubGazeboV2_5_visuomanip yarp_nws compatible #188

Closed xEnVrE closed 1 year ago

xEnVrE commented 1 year ago

This PR makes the manually generated model iCubGazeboV2_5_visuomanip compatible with the latest yarp nws architecture.

Specifically:

Note: For some reason git thinks that I have renamed iCub_manual/conf_manual/iCubGazeboV2_5_visuomanip/gazebo_icub_torso.ini into iCub_manual/conf_manual/iCubGazeboV2_5_visuomanip/gazebo_icub_eyes.ini. However, I just deleted the former in a commit and added the latter in the next commit.

fixes #171 (at least partially as iCubGazeboV3_visuomanip should be updated as well)

cc @pattacini @traversaro

xEnVrE commented 1 year ago

I had to push force to correct a wrong path in one of the xml.

xEnVrE commented 1 year ago

I tried this PR after rebasing on top of the latest #186 and something is not working for the manually generated models as I get the following error when trying to insert either iCubGazeboV2_5_visuomanip or iCubGazeboV3_visuomanip:

terminate called after throwing an instance of 'std::invalid_argument'
  what():  stoi

cc @traversaro

traversaro commented 1 year ago

I tried this PR after rebasing on top of the latest #186 and something is not working for the manually generated models as I get the following error when trying to insert either iCubGazeboV2_5_visuomanip or iCubGazeboV3_visuomanip:

terminate called after throwing an instance of 'std::invalid_argument'
  what():  stoi

cc @traversaro

Which version of gazebo and gazebo-yarp-plugins are you using?

traversaro commented 1 year ago

I tried to search for:

source code for stoi instances, but I could not find anything specific.

xEnVrE commented 1 year ago

Which version of gazebo and gazebo-yarp-plugins are you using?

I am using the robotology-superbuild with ROBOTOLOGY_PROJECT_TAGS = Unstable as I wanted to test in a scenario where deprectated devices have been already removed. Then I just uninstalled icub-models, switched to my branch, rebased onto the latest devel and run make install from robotology-superbuild/build/src/icub-models.

gazebo --version
Gazebo multi-robot simulator, version 11.12.0
Copyright (C) 2012 Open Source Robotics Foundation.
Released under the Apache 2 License.
cd robotology-superbuild/src/GazeboYARPPlugins
git log
commit fe7a39e932f35488ee292ee77f7d9853b4ac57a6 (HEAD -> devel, origin/devel)
Merge: b9c18f46 9982ab1d
Author: Silvio Traversaro <silvio@traversaro.it>
Date:   Fri Jan 13 15:15:27 2023 +0100

    Merge pull request #641 from robotology/feat/addHandMK5Coupling

    ControlBoardDriverCoupling: add couplings for hand mk5
xEnVrE commented 1 year ago

After #190, this works again properly. My guess is that since I am using some of the files from the automatically generated robots, and with #186 they were not detected properly by Gazebo, this robot was failing too while trying to fetch the configuration files.

traversaro commented 1 year ago

After #190, this works again properly. My guess is that since I am using some of the files from the automatically generated robots, and with #186 they were not detected properly by Gazebo, this robot was failing too while trying to fetch the configuration files.

Ok, great! Having better error would be desirable, but is probably a different issue. So, we can proceed with the merge?

xEnVrE commented 1 year ago

So, we can proceed with the merge?

I would say so.

traversaro commented 1 year ago

Thanks @xEnVrE !