MJCF and Mujoco Rendering #1512
-
I've been meaning to use the procedural manipulation from MJCF for my Mujoco models and simualtion, But I've been having difficulty integrating the two. For example, the mjcf_model = mjcf.from_path(<xml_path>)
physics = mjcf.Physics.from_mjcf_model(mjcf_model)
with viewer.launch_passive(
model=physics.model,
data=physics.data
) as viewer: Results in an error:
Does anyone have experience working with them together and can guide me / point to resouces? Would really appreciate it! Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Change it to physics.data.ptr and physics.model.ptr. |
Beta Was this translation helpful? Give feedback.
Change it to physics.data.ptr and physics.model.ptr.