Accessing geom size dynamically

Discussion in 'Simulation' started by Alex Kyriazis, Jun 26, 2017.

  1. Is there a way to access the size attribute of a geom within a mujoco environment? I'm hoping for a property in the mjdata object that can just be read out.

    Thanks in advance
     
    Kyokushin likes this.
  2. Emo Todorov

    Emo Todorov Administrator Staff Member

    The geom sizes are in mjModel, not mjData. You can change them between simulation steps if you want. Note however that this will not automatically change the masses and inertias of the bodies.
     
    Kyokushin likes this.
  3. Excellent. Thanks for your help.