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

Dynamics Randomization for MuJoCo models with nested xmls #4

Open
gautams3 opened this issue Dec 20, 2018 · 0 comments
Open

Dynamics Randomization for MuJoCo models with nested xmls #4

gautams3 opened this issue Dec 20, 2018 · 0 comments

Comments

@gautams3
Copy link
Member

MuJoCo files with <include> tags in the xml result in models being loaded from nested xmls. But when applying dynamics randomization, we can only edit dynamic parameters of the root xml. Furthermore, when we pass this edited xml to MuJoCo, we pass the entire xml as a string. This prevents MuJoCo from recognising and reading include files.

Example: Say we are doing variations for a Sawyer reacher task. We want to randomize the mass of the inertial node inside the tag "right_wrist", inside sawyer_robot.xml.

We include sawyer_robot.xml through reacher.xml. However, dynamics randomization only search for tags in reacher.xml and not in the nested file sawyer_robot.xml. Even if the tag is in reacher.xml, dynamics randomization won't work because it passes the xml to MuJoCo as a string, not a path to an xml file. This fails due to improper parsing of the <include> tag.

tl;dr: Requesting these features

  1. Perform search of dynamic attributes in nested xml models
  2. Pass randomized xml model to MujoCo using a file path, not an xml string.
@ryanjulian ryanjulian transferred this issue from rlworkgroup/garage Feb 28, 2019
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

1 participant