Load bodies outside xml file #321
Answered
by
yuvaltassa
rohit-kumar-j
asked this question in
Asking for Help
-
Can we load bodies into the simulator outside what is mentioned within the XML file? model = mujoco.MjModel.from_xml_path("path_to_xml")
bodies_index = []
for i in range(0,10):
body_index = mujoco.loadURDF("path_to_stl_or_xml") # returns the unique body index
bodies_index.append(body_index) similar to |
Beta Was this translation helpful? Give feedback.
Answered by
yuvaltassa
Jun 4, 2022
Replies: 1 comment
-
Hi, |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
rohit-kumar-j
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I think you're asking for procedural modification of MuJoCo models? This is currently best supported by
dm_control
's pyMJCF module. If you have any questions, please follow up in thedm_control
repo.