-
Notifications
You must be signed in to change notification settings - Fork 23
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
CMakeLists.txt cluttered with option parameters #84
Comments
CC @diegoferigo |
Yes, Probably we can modify the simmechanics-to-urdf tool to handle different |
As a personal opinion, I am definitely against option 2.
For option 1, I understand the problem but I need to think about it. |
As a general option, I would prefer to leak icub-generation specific stuff to simmechanics-to-urdf, but indeed increasing the inertia for gazebo is kind of a generic problem. |
What if simmechanics-to-urdf could parse more than one *.yaml file? In this case we could have one for common parameters and one for each robot. Maybe the same could be done for *.csv files. |
@fiorisi @traversaro , as a general comment: you must have notived that the
cmake
files are starting to get cluttered and less readable after every change of this type (#83). I suggest 2 possible solutions:yaml.in
template file and use cmake to set a configuration switch in the same template. For instance if we considerassignedInertias
, we include the parameters in theyaml.in
template, along with the definition:We set @INCREASE_INERTIA_FOR_GAZEBO@ through cmake. Then the processing of increasing the inertia accordingly would be done in the script
firstgen.py
.git
to define the specificyaml.in
template files. We would use a different master branch for each model (master_icubgenova02
,master_icubgenova04
, ...). The macrogenerate_icub_simmechanics
would then checkout the desired branch through cmake, after the selected optionsNO_BACKPACK
,BOGUS
,INCREASE_INERTIA_FOR_GAZEBO
,ICUB_PLUS
. The immediate advantage would be the easier comparison between models, but there are some drawbacks to consider that I haven't been through yet...The text was updated successfully, but these errors were encountered: