Skip to content
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

Document/simply the usage of ergocub models in mujoco #265

Open
traversaro opened this issue Oct 2, 2024 · 6 comments
Open

Document/simply the usage of ergocub models in mujoco #265

traversaro opened this issue Oct 2, 2024 · 6 comments

Comments

@traversaro
Copy link
Member

A bit of spinoff of robotology/icub-models#155, but as most people in AMI now use ergocub we want to focus on ergocub here.

As first step, we may need to to understand how people are currently loading the ergocub models in mujoco, can you share this @diegoferigo @CarlottaSartore @vpunithreddy @Giulero @giotherobot @xela-95 @flferretti @GiulioRomualdi , also via pointers to existing code? With this, info we can understand possible outcomes:

  • Document how to load existing ergocub-software models using some library in mujoco
  • Add some automatically generated output models to ergocub-software.
@giotherobot
Copy link
Contributor

This is my library: https://github.com/ami-iit/mujoco-urdf-loader

@traversaro
Copy link
Member Author

xref: google-deepmind/mujoco#1432 .

@traversaro
Copy link
Member Author

This is my library: https://github.com/ami-iit/mujoco-urdf-loader

So probably a good first pointer is to point ergocub users to https://github.com/ami-iit/mujoco-urdf-loader/blob/main/examples/generate_ergoCub_mjcf.py, not sure if this is enough for what @GiulioRomualdi and @Giulero had in mind.

@diegoferigo
Copy link

diegoferigo commented Oct 3, 2024

Inside ami-iit/jaxsim we have a jaxsim.mujoco Python package for visualizing URDF/SDF models.

Refer to the following PRs showing the main features supported by our visualizer:

In particular, the helper for positioning cameras in both the interactive visualizer and the recorder is pretty useful in practice. Also, the support of uneven terrain is nice to have for many applications.

The Python package has been developed without direct JaxSim dependencies to simplify extracting it to a standalone project in the future -- if neeed.

@traversaro
Copy link
Member Author

@diegoferigo thanks! Do you have some snippet somewhere (tutorial or test) that just loads a model specified via package:// and simulate it?

@diegoferigo
Copy link

  • The combination of a simple simulation with the recorder can be found in this notebook.
  • For the interactive viewer, instead, a good starting point is the command line script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants