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

[Unity plugin] Preliminary support for Mj plugins #1428

Merged

Conversation

Balint-H
Copy link
Collaborator

This PR is the start of the addition of MuJoCo plugin support (e.g. elasticity) to the Unity plugin. The current additions expect the user to supply the relevant Mj plugin libraries to a "Plugin" folder inside the Unity Package - This is a non ideal situation as it may pose an issue on builds or non-local installs of the Unity Package.

The current state of the PR loads plugins on XML import, letting the built-in parser properly process the file. The Unity scene will then be built based on the processed XML generated by mj_saveLastXML as usual. However, the Unity scene will have no idea it was generated from a plugin-using XML, so any effect the plugin would have had post-scene compile is currently lost.

Most of the plugin use cases that are not expected to be completely covered by the current state of the PR. Further commits will be added, I'm submitting it for visibility for interested users (#1394) , and for potential contributions.

@copybara-service copybara-service bot merged commit 73f65ec into google-deepmind:main Mar 3, 2024
14 checks passed
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

Successfully merging this pull request may close these issues.

2 participants