Joint <-> actuator relation in mjModel

Discussion in 'Priority support' started by zohar.feldman, Nov 11, 2019.

  1. Is it possible to extract the controlled joint for a given actuator from mjModel?
     
  2. Emo Todorov

    Emo Todorov Administrator Staff Member

    mjModel.actuator_trnid is the "transmission id" which is the id of the joint when the actuator acts on a joint. It could also act on a tendon or site, in which case trnid is the tendon or site id. mjModel.actuator_trntype specifies what kind of object the actuator is acting on, but in your case it sounds like you are only working with joint actuators so no need to examine that variable.