-
Notifications
You must be signed in to change notification settings - Fork 35
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
iCubNancy01 not importing #112
Comments
Update: I found some errors in Gazebo in
|
Thanks @jbmouret ! I will first do some checks internally to make sure that the current state of the physical |
Thank you for your reply. Any news on this topic? Thank you |
Hi @jbmouret, thanks to @Fabrizio69 I have some precise info on iCubNancy01:
Indeed it is coherent with the version produced for iCubNancy01 in https://github.com/robotology/icub-models-generator/blob/d0a98d8cbb11ab362d320089b4daec35ff56f057/dh/CMakeLists.txt#L22 . Note that unfortunatly for the iCub that have parts version 1 we did not generate those meshes/inertial parameters directly from CAD, so we are not 100% sure about those models. However, they should at least spawn correctly in gazebo, let me check. |
I quickly debugged the problem, that can be easily reproduced by running:
or
The problem is that the links:
Are massless, and sdformat stop the conversion at those links without any error (in this sense, this could also be considered a sdformat problem). Why those links are zero? To explain why those links are zero, I need to briefly explain how the models for iCub with parts <= 1 were generated. Those were generated back in 2013/2014 by combining two different sources of information:
These information were merged to generate a URDF file by some C++ code that I wrote during shortly after my master thesis (again ~2013). This code can be found in https://github.com/robotology/icub-models-generator/tree/last-call-for-dh-generator/dh/generator, but in robotology/icub-models-generator#171 we just removed it and substituted it with all its possible outputs. So, the masses are 0 because they were 0 in the old iDyn library models. At the moment, the main focus is on the models for the iCub 2.* that are automatically extracted from the CAD models, while the models for the iCub with v1 part are provided just as a convenience to whom was still using them. As a hotfix, we could just use for the |
Note that even if we set non-zero masses, the unmodified model will probably do not run correctly out of the box with the default physics solver setting of Gazebo with ODE, mainly due to the small inertia that make the system quite stiff from the point of view of numerical integration, see #33 . |
Hi Thank you for the detailed reply. So, what should we do? For now, we at least need a working Gazebo to test our code before deploying on the robot. We can deal with a possibly inaccurate simulation (provided that it is numerically stable enough). => Can you (should we?) set the masses to the same value as v2? thank you |
I am happy to do that, but I think it is important to understand what is your goal in using this model (see next question).
If you just need to simulate the robot on Gazebo for software integration (i.e., check that the software will run correctly on the real robot, i.e. opening the correct YARP ports, etc etc), what I can suggest is to use the If instead you want to have a precise model of your physical robot for things like sim2real, then I think that working on your own URDF model, via calibration of inertial parameters and of friction may be the way to go in any case, as anyhow even the CAD model is not perfect, or because the iCub model has been modified since it has been built. Anyhow, if you want we can have a Team/Zoom/Slack/WhateverYouLile chat to understand for what you need to use the iCubNancy01 model! |
Hi Thank you for the prompt response. The problem with So, I think the best would be to "set the masses to the same value as v2", which would be "a bit more realistic than the backpack version" (especially in term of balancing) but not perfect. At any rate, I would say that it is not worse than what we had before (in the old icub-gazebo-models, with 0 masses, apparently), right? |
Hi
It seems that we are not using the icub-gazebo models anymore... I am therefore trying to install a fresh environment based on conda + gazebo + icus-models (on mac for now).
I compiled ICUB_MODELS_INSTALL_ALL_GAZEBO_MODELS and I see iCubNancy01 in the list.
... but when I click on it to insert it, nothing happens. It works for all the iCubGenova* and the iCubGazeboV* (which all have a backpack, therefore they are very different from our iCub).
I do not see any error message in the terminal, but maybe Gazebo writes errors somewhere else.
The text was updated successfully, but these errors were encountered: