Replies: 3 comments
-
MJCF doesn't support macros, however it does provide cascading |
Beta Was this translation helpful? Give feedback.
-
Hello @saran-t For example, I wrote two XML files separately for two robots: (file 1)-Mobile wheel robot (the free joint that can take a parameter to modify origin pos) (file 3) then write another XML file that can use these two robot models furthermore, write another file that can insert file3 to spawn multiply robot given a different origin I know, name of the body, joints and actuator cannot be repeated for that I want to append name for example I have written the first two files just for discussion
(file 2)
|
Beta Was this translation helpful? Give feedback.
-
MuJoCo does not currently support model composition, other than the While we are working to improve native model composition, your best bet is |
Beta Was this translation helpful? Give feedback.
-
Is there a way to define variables in XML and use them, much like how xacro's are used in urdf? For example, in urdf on can define the variable radius and then assign it to say 4.3. Something like this in urdf.
<xacro:property name="radius" value="4.3" />
Beta Was this translation helpful? Give feedback.
All reactions