(self)
Name of the active camera.
Name of the active camera.
Name of the active camera .
def name(self):
    """Name of the active camera."""
    if self._camera.type_ == enums.mjtCamera.mjCAMERA_TRACKING:
      body_name = self._model.id2name(self._camera.trackbodyid, 'body')
      if body_name:
        return 'Tracking body "%s"' % body_name
      else:
        return 'Tracking body id %d' % self._camera.trackbodyid
    elif self._camera.type_ == enums.mjtCamera.mjCAMERA_FIXED:
      camera_name = self._model.id2name(self._camera.fixedcamid, 'camera')
      if camera_name:
        return str(camera_name)
      else:
        return str(self._camera.fixedcamid)
    else:
      return 'Free'
def name ( self ) : if self . _camera . type_ == enums . mjtCamera . mjCAMERA_TRACKING : body_name = self . _model . id2name ( self . _camera . trackbodyid , 'body' ) if body_name : return 'Tracking body "%s"' % body_name else : return 'Tracking body id %d' % self . _camera . trackbodyid elif self . _camera . type_ == enums . mjtCamera . mjCAMERA_FIXED : camera_name = self . _model . id2name ( self . _camera . fixedcamid , 'camera' ) if camera_name : return str ( camera_name ) else : return str ( self . _camera . fixedcamid ) else : return 'Free'