How can I build the model dynamically like dm_control does? NO mjcf NO URDF. #528
Replies: 3 comments
-
Hi, hope I'm not too late. I have implemented some functions in v1 to generate the simulation environment procedurally, which might be helpful for you. See here. |
Beta Was this translation helpful? Give feedback.
-
That's so cool. That would be a major help for me. Thank you! |
Beta Was this translation helpful? Give feedback.
-
Hi @baixianger , we haven't implemented a "composer" class in v2, but if you're interested in implementing it, the main fields that need constructing are here in System and these Lines 475 to 478 in 3b72c95 |
Beta Was this translation helpful? Give feedback.
-
I have to build my environment from Brax. But the thing is my model has a lot of physical parameters to change. Is there a way in Brax to build the model from code, instead of from the XML file?
Here i what i did in dm_control mjcf submodule. I want to simulate a whip, so I cut the whip into many serial joints and geoms. But i don't konw how many joints i need. if I implement it in XML, every time I want to make a change, I have to nest the xml elements agian and again.
Do brax provide the same methods to create model by code? Thank you advance.
Beta Was this translation helpful? Give feedback.
All reactions