-
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
Add machinery to easily access model locations on Python #91
Comments
By the way it could be convenient to have some similar machinery in form of a C++ library to find the models without depending on ROS or YARP, but to be honest I would not know at the moment how to implement easily this, as it is less obvious to do that in C++. |
Another good example of repo that makes its models available via a small Python library is https://github.com/Gepetto/example-robot-data . |
I totally support this idea @traversaro! Some differences wrt to robotology/gym-ignition-models (I'll shorten it as
Modulo the previous comments, the Python support translates of just a bunch of metadata: In other projects, we are currently migrating towards a more modern approach that consists of using |
The more the lab continue to use Python's tool, the more this issue seems important. Volunteers to solve it are more than welcome, and as usual mentoring and guidance are guaranteed! @robotology/iit-artificial-mechanical-intelligence |
NOSALRO/robot_dart#166 does somethings similar in C++, but it hardcodes the installation directory in the |
I proposed a possible implementation in #130 |
I think we can close this issue |
Yes, thanks a lot @GiulioRomualdi ! |
At the moment the models installed by this repo are supposed to be consumed by the resource location mechanism of YARP and ROS (see #90). However, for some use cases (see ami-iit/adam#1 (comment)) it is convenient to also be able to access the location of the models by a simple Python package. A similar functionality is present in https://github.com/robotology/gym-ignition-model, but having it in
icub-models
directly would permit to have directly any new model that will be designed and made available related to iCub, including iCub3 and INAIL ergoCub robots. Borrowing the API Fromgym-ignition-model
ideally it should be possible to do:As this repo does not depend on anything else, it would be probably a good candidate to be uploaded directly on PyPI and conda-forge. In particular adding it in conda-forge would reduce the amount of space used on the robotology channel, as the
icub-models
packages with its ~20 MB of meshes (see https://anaconda.org/robotology/icub-models/files) that in the future will increase, is one of the most heavy on the robotology channel.The text was updated successfully, but these errors were encountered: