You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The relevant mujoco docs led me to believe that the include behavior was simple:
This element does not strictly belong to MJCF. Instead it is a meta-element, used to assemble multiple XML files in a single document object model (DOM) before parsing. The included file must be a valid XML file with a unique top-level element. This top-level element is removed by the parser, and the elements below it are inserted at the location of the include element. At least one element must be inserted as a result of this procedure. The include element can be used where ever an XML element is expected in the MJCF file. Nested includes are allowed, however a given XML file can be included at most once in the entire model. After all the included XML files have been assembled into a single DOM, it must correspond to a valid MJCF model.
which is what we implemented in Drake. But it appears that it's not quite true... the file location of the included file still impacts the asset parsing. We'll have to touch up the drake parser to handle this case (and perhaps upstream a documentation improvement to mujoco).
Version
No response
What operating system are you using?
No response
What installation option are you using?
No response
Relevant log output
The text was updated successfully, but these errors were encountered:
The behavior of include at one time was straightforward, but there's been multiple complaints / feature requests to have include load assets relative to the included XML. This was implemented about 10 months ago, and the documentation here needs some clarification. Thanks for pointing this out!
What happened?
The RB-Y1 model available here: https://github.com/RainbowRobotics/rby1-sdk/tree/main/models/rby1a/mujoco uses
include
elements to include xml files from different directories. Those included xmls declare assets, using a directory relative to their location on disk.The relevant mujoco docs led me to believe that the
include
behavior was simple:which is what we implemented in Drake. But it appears that it's not quite true... the file location of the included file still impacts the asset parsing. We'll have to touch up the drake parser to handle this case (and perhaps upstream a documentation improvement to mujoco).
Version
No response
What operating system are you using?
No response
What installation option are you using?
No response
Relevant log output
The text was updated successfully, but these errors were encountered: