Include same file multiple times #1063
Closed
michael-projectx
started this conversation in
General
Replies: 2 comments 2 replies
-
Maybe I'm going to answer my own question here, but it looks like pyMJCF will provide a solution to my problem, but I'd still like to here if there is an alternate solution to what I'm asking for. |
Beta Was this translation helpful? Give feedback.
1 reply
-
is there any news about including namespacing? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've read the docs & and understand that an XML file can be included at most once, so I'm hoping there's an alternate solution to the problem I'm trying to solve.
I've defined a simulation asset in an XML file that has a number of
<geom>
elements (all attached to a single body). I'd like to include multiple instances of this object within a single scene/mjcf file. It looks like the solution in this file is to define the humanoid object a bunch of times in the same file with unique names for each.Is there any way to accomplish the task of defining multiple instances of the same "object" in a scene?
I've attached the "object" file that I'd like to include multiple times as an example (I had to use a
.txt
extension so the file would upload, but this would beplastic_box.xml
in the example below).plastic_box.txt
Ideally I'd be able to use this file something like this:
Beta Was this translation helpful? Give feedback.
All reactions