(self, physics, joints)
Initializes the joint isolator.

    Args:
      physics: An instance of `mjcf.Physics`.
      joints: An iterable of `mjcf.Element` representing joints that may be
        modified inside the context managed by this isolator.
Initializes the joint isolator.
Initializes the joint isolator .
def __init__(self, physics, joints):
    """Initializes the joint isolator.

    Args:
      physics: An instance of `mjcf.Physics`.
      joints: An iterable of `mjcf.Element` representing joints that may be
        modified inside the context managed by this isolator.
    """
    if not isinstance(joints, collections.abc.Iterable):
      joints = [joints]
    root_model = _get_root_model(joints)
    other_joints = [joint for joint in root_model.find_all('joint')
                    if joint not in joints]
    if other_joints:
      self._other_joints_mj = physics.bind(other_joints)
      self._initial_qpos = self._other_joints_mj.qpos.copy()
      self._initial_qvel = self._other_joints_mj.qvel.copy()
    else:
      self._other_joints_mj = None
def __init__ ( self , physics , joints ) : if not isinstance ( joints , collections . abc . Iterable ) : joints = [ joints ] root_model = _get_root_model ( joints ) other_joints = [ joint for joint in root_model . find_all ( 'joint' ) if joint not in joints ] if other_joints : self . _other_joints_mj = physics . bind ( other_joints ) self . _initial_qpos = self . _other_joints_mj . qpos . copy ( ) self . _initial_qvel = self . _other_joints_mj . qvel . copy ( ) else : self . _other_joints_mj = None