(random_state=None)
return composer.Environment(time_limit=20,
                              task=task,
                              random_state=random_state,
                              strip_singleton_obs_buffer_dim=True)
Requires a rodent to climb out of a bowl-shaped terrain.
Requires a rodent to climb out of a bowl-shaped terrain.
Requires a rodent to climb out of a bowl - shaped terrain .
def rodent_escape_bowl(random_state=None):
  """Requires a rodent to climb out of a bowl-shaped terrain."""

  # Build a position-controlled rodent walker.
  walker = rodent.Rat(
      observable_options={'egocentric_camera': dict(enabled=True)})

  # Build a bowl-shaped arena.
  arena = bowl.Bowl(
      size=(20., 20.),
      aesthetic='outdoor_natural')

  # Build a task that rewards the agent for being far from the origin.
  task = escape.Escape(
      walker=walker,
      arena=arena,
      physics_timestep=_PHYSICS_TIMESTEP,
      control_timestep=_CONTROL_TIMESTEP)

  return composer.Environment(time_limit=20,
                              task=task,
                              random_state=random_state,
                              strip_singleton_obs_buffer_dim=True)
def rodent_escape_bowl ( random_state = None ) : # Build a position-controlled rodent walker. walker = rodent . Rat ( observable_options = { 'egocentric_camera' : dict ( enabled = True ) } ) # Build a bowl-shaped arena. arena = bowl . Bowl ( size = ( 20. , 20. ) , aesthetic = 'outdoor_natural' ) # Build a task that rewards the agent for being far from the origin. task = escape . Escape ( walker = walker , arena = arena , physics_timestep = _PHYSICS_TIMESTEP , control_timestep = _CONTROL_TIMESTEP ) return composer . Environment ( time_limit = 20 , task = task , random_state = random_state , strip_singleton_obs_buffer_dim = True )