(self, n_boxes, fully_observable, random=None)
Initialize an instance of the `Stack` task.

    Args:
      n_boxes: An `int`, number of boxes to stack.
      fully_observable: A `bool`, whether the observation should contain the
        positions and velocities of the boxes and the location of the target.
      random: Optional, either a `numpy.random.RandomState` instance, an
        integer seed for creating a new `RandomState`, or None to select a seed
        automatically (default).
Initialize an instance of the `Stack` task.
Initialize an instance of the Stack task .
def __init__(self, n_boxes, fully_observable, random=None):
    """Initialize an instance of the `Stack` task.

    Args:
      n_boxes: An `int`, number of boxes to stack.
      fully_observable: A `bool`, whether the observation should contain the
        positions and velocities of the boxes and the location of the target.
      random: Optional, either a `numpy.random.RandomState` instance, an
        integer seed for creating a new `RandomState`, or None to select a seed
        automatically (default).
    """
    self._n_boxes = n_boxes
    self._box_names = ['box' + str(b) for b in range(n_boxes)]
    self._box_joint_names = []
    for name in self._box_names:
      for dim in 'xyz':
        self._box_joint_names.append('_'.join([name, dim]))
    self._fully_observable = fully_observable
    super().__init__(random=random)
def __init__ ( self , n_boxes , fully_observable , random = None ) : self . _n_boxes = n_boxes self . _box_names = [ 'box' + str ( b ) for b in range ( n_boxes ) ] self . _box_joint_names = [ ] for name in self . _box_names : for dim in 'xyz' : self . _box_joint_names . append ( '_' . join ( [ name , dim ] ) ) self . _fully_observable = fully_observable super ( ) . __init__ ( random = random )