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

python bindings resource provider API #1081

Open
guyazran opened this issue Oct 4, 2023 · 0 comments
Open

python bindings resource provider API #1081

guyazran opened this issue Oct 4, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@guyazran
Copy link

guyazran commented Oct 4, 2023

The problem

I require a way to build a highly cluttered mujoco model whose assets are loaded dynamically to memory in python. This follows the discussion in issue #1054.

Suggested solution

The agreed solution in the original issue is to implement access to provide access to mjpResourceProvider through the python bindings.

Considered alternatives

  • loading with mujoco.MjModel.from_xml_string(xml_string, assets_dict) is limited to 2,000 assets in the dictionary via the mjMAXVFS constant.
  • saving the entire model and assets to disk and reloading is highly inefficient.
  • using RAMDisk solutions is not multi-platform friendly in python without using third-party file systems.
@guyazran guyazran added the enhancement New feature or request label Oct 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant