(entity, obs_settings, *camera_specs)
return obs_dict
Adds cameras to an entity's worldbody and configures observables for them.

  Args:
    entity: A `composer.Entity`.
    obs_settings: An `observations.ObservationSettings` instance.
    *camera_specs: Instances of `CameraSpec`.

  Returns:
    A `collections.OrderedDict` keyed on camera names, containing pre-configured
    `observable.MJCFCamera` instances.
Adds cameras to an entity's worldbody and configures observables for them.
Adds cameras to an entity s worldbody and configures observables for them .
def add_camera_observables(entity, obs_settings, *camera_specs):
  """Adds cameras to an entity's worldbody and configures observables for them.

  Args:
    entity: A `composer.Entity`.
    obs_settings: An `observations.ObservationSettings` instance.
    *camera_specs: Instances of `CameraSpec`.

  Returns:
    A `collections.OrderedDict` keyed on camera names, containing pre-configured
    `observable.MJCFCamera` instances.
  """
  obs_dict = collections.OrderedDict()
  for spec in camera_specs:
    camera = entity.mjcf_model.worldbody.add('camera', **spec._asdict())
    obs = observable.MJCFCamera(camera)
    obs.configure(**obs_settings.camera._asdict())
    obs_dict[spec.name] = obs
  return obs_dict
def add_camera_observables ( entity , obs_settings , * camera_specs ) : obs_dict = collections . OrderedDict ( ) for spec in camera_specs : camera = entity . mjcf_model . worldbody . add ( 'camera' , * * spec . _asdict ( ) ) obs = observable . MJCFCamera ( camera ) obs . configure ( * * obs_settings . camera . _asdict ( ) ) obs_dict [ spec . name ] = obs return obs_dict