I am trying to use MuJoCo to create a modular robotics framework to study learning of reconfiguration and locomotion.
In order to do this, I need to model connection and disconnection by dynamically creating constraints between two modules during simulation (probably elastic constraints to keep the simulation stable in case of over-constrained configurations).
What would be the best way to achieve this ?
The only solution that I see right now is to directly modify the world model (sim.model) but I am not sure how stable this can be.