-
Notifications
You must be signed in to change notification settings - Fork 18
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
Add Gazebo Sim support #230
Add Gazebo Sim support #230
Conversation
CC @traversaro |
I'm thinking about where I should put the gz-sim-yarp-plugins. As potential alternatives, I see:
@traversaro @Nicogene what do you think? |
I would go for the first option. I know that error may be confusing, but the explosion of models seems even worse. We can work with upstream to minimize the effect of this errors (see gazebosim/sdformat#93) in the long run, but for now I would just keep one set of models, let's see what @Nicogene thinks about this. |
I totally agree with it also because right now the models are generated by hand, and it would be complicated to augment the number of generated models |
Ok thanks! I will proceed as suggested then ✌🏻 |
After a long day of trial & error, ergoCubGazeboV1_1 works both on gazebo-classic and gazebo!!! 🥳 Now it's just a matter of porting these modifications to the other models. |
@traversaro looking at the table in https://github.com/icub-tech-iit/ergocub-software/blob/4a7ce3a1472b16c7a3372623199c3ccbaa761a3d/urdf/creo2urdf/data/ergocub1_1/README.md, there should be for each version of ergoCub a different pair of |
Yes, I think that was just a typo, feel free to correct. |
I finished porting the main changes both to version 0 and 1 of ergoCub. I'm having some issue while trying to import the models of ergoCub version 0 (the ones generated from the yaml files in https://github.com/xela-95/ergocub-software/tree/feature/add-gz-sim-support/urdf/creo2urdf/data/ergocub1_0). It is also strange that the URDF generated with CREO is a lot different than the previous version, while for the models of version 1 the diff in the urdf are just the ones I added in the yaml. |
I guess this small numeric errors (they seems all to be <= 1e-10 can be due):
Anyhow, unless we start locking all of these variables (that at the moment is not feasible, I guess) we can safely ignore them. |
Which errors? What I noticed is that you also added the controlboard of the hands, but those require coupling that is currently not supported in gz-sim-yarp-plugins, is that intentional? |
Note that something that we can easily is at least to document in each PR that changes the models the version numbers of Creo, |
By the way, there are also some tests failures in the tests:
That is quite strange, it seems like the kind of errors we had with simmechanics-to-urdf, where the direction of the axis was randomly changing. Anyhow, given the problems with the |
Yes I agree for the numeric errors. But other than that there are other modifications that I'm investigating, like the name of the |
Sorry I added that without thinking to the missing coupling features, I will remove them to all models then. Maybe it's also good to open an issue on gz-sim-yarp-plugins to track the plugins that ergocub-software currently misses. |
Ack, I guess you did not committed that? It is possible that the cad-mechanics model was changed, but the change was not propagated to the repo. It is happening for both SN000 and SN001 or just SN000? If it is just SN001, I would just drop it. To decouple the problems of "updating cad-mechanics" from the core of this, one possible strategy is just to use the cad-mechanics commit that was used to generate the version of the models currently present in the repo. For |
The models that change significantly are the three coming from the Up to now I always discarded the meshes that have been generated from CREO, committing only the urdf files, because I though the meshes did not change, but for the models in the |
Perfect, I would discard them for now. Those are also the one for which tests are failing. |
OK! also with @Nicogene we agreed that I will maintain the modifications to the |
It may be
About this point I aligned w/ @xela-95 T2T, the urdf of ergoCub 1.0/SN000 has never been generated with creo2urdf, in the past it has been generated w/ All this time I have been keeping up-to-date the yaml to be usable when we will regenerate the model via creo2urdf, but for sure before it required fixes on simulation model CAD that right now we do not have the workforce to do. So I suggested to @xela-95 to commit also the changes to the 1.0/SN000 yaml and add by hand the blobs to the 1.0/SN000 urdf. |
Can you add this information in https://github.com/icub-tech-iit/ergocub-software/tree/master/urdf/creo2urdf/data/ergocub1_0#readme or https://github.com/icub-tech-iit/ergocub-software/tree/master?tab=readme-ov-file#urdf-generation ? Nothing too complex, just to avoid that in the future people loose time to try to use |
Added tool versions |
@xela-95 @traversaro I have added a Pull request template but I am not sure it works: |
I added this info in the relative README |
Thanks! |
Ok now the PR is ready for the review :) |
8e5c13b
to
f015ab7
Compare
Rebased on master |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot @xela-95 !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't have the chance to test it but if this does not interfere with gazebo classic we can merge it
We are in process of adding support in robotology-superbuild and conda-forge for gz-sim-yarp-plugins, once it is ready it should be easy to check: |
This PR introduces the support to the new Gazebo.
Reference issue: robotology/gz-sim-yarp-plugins#130
Tools