(self, name, name_fully_qualified=False)
Returns the observable with the given name.

    Args:
      name: (str) The identifier of the observable.
      name_fully_qualified: (bool) Whether the provided name is prefixed by the
        model's full identifier.
Returns the observable with the given name.
Returns the observable with the given name .
def get_observable(self, name, name_fully_qualified=False):
    """Returns the observable with the given name.

    Args:
      name: (str) The identifier of the observable.
      name_fully_qualified: (bool) Whether the provided name is prefixed by the
        model's full identifier.
    """

    if name_fully_qualified:
      try:
        model_identifier = self._entity.mjcf_model.full_identifier
      except AttributeError:
        raise ValueError('cannot retrieve the full identifier of mjcf_model')
      return self._observables[name.replace(model_identifier, '')]
    else:
      return self._observables[name]
def get_observable ( self , name , name_fully_qualified = False ) : if name_fully_qualified : try : model_identifier = self . _entity . mjcf_model . full_identifier except AttributeError : raise ValueError ( 'cannot retrieve the full identifier of mjcf_model' ) return self . _observables [ name . replace ( model_identifier , '' ) ] else : return self . _observables [ name ]