ami-iit / mujoco-urdf-loader

BSD 3-Clause "New" or "Revised" License
7 stars 0 forks source link

First implementation #2

Closed giotherobot closed 5 months ago

giotherobot commented 5 months ago

In this PR I add the codebase I developed for generating some mujoco models of ergoCub.

There is an environment.yaml that can be used to create a conda environment with minimal dependencies.

To run the examples a superbuild needs to be active for resolve_robotics_uri_py boing able to find the original urdfs. In addition the repo needs to be installed with pip install -e . into the conda env.

Available examples

All examples load the package://ergoCub/robots/ergoCubSN001/model.urdf model, converts it to mjcf and saves it, thent shows the obtained model in a simple world in the interactive mujoco viewer.

The codebase is split into 4 main files:

There is a small and incomplete test suite that runs on pytest.

giotherobot commented 5 months ago

A minor comment. Let me know if you want me to add a pyproject.toml file for the metadata.

We can add it in a next PR, I have set up devel/main branches and we are merging in devel for now.