(self, use_peg, insert, fully_observable, random=None)
Initialize an instance of the `Bring` task.

    Args:
      use_peg: A `bool`, whether to replace the ball prop with the peg prop.
      insert: A `bool`, whether to insert the prop in a receptacle.
      fully_observable: A `bool`, whether the observation should contain the
        position and velocity of the object being manipulated and the target
        location.
      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 `Bring` task.
Initialize an instance of the Bring task .
def __init__(self, use_peg, insert, fully_observable, random=None):
    """Initialize an instance of the `Bring` task.

    Args:
      use_peg: A `bool`, whether to replace the ball prop with the peg prop.
      insert: A `bool`, whether to insert the prop in a receptacle.
      fully_observable: A `bool`, whether the observation should contain the
        position and velocity of the object being manipulated and the target
        location.
      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._use_peg = use_peg
    self._target = 'target_peg' if use_peg else 'target_ball'
    self._object = 'peg' if self._use_peg else 'ball'
    self._object_joints = ['_'.join([self._object, dim]) for dim in 'xzy']
    self._receptacle = 'slot' if self._use_peg else 'cup'
    self._insert = insert
    self._fully_observable = fully_observable
    super().__init__(random=random)
def __init__ ( self , use_peg , insert , fully_observable , random = None ) : self . _use_peg = use_peg self . _target = 'target_peg' if use_peg else 'target_ball' self . _object = 'peg' if self . _use_peg else 'ball' self . _object_joints = [ '_' . join ( [ self . _object , dim ] ) for dim in 'xzy' ] self . _receptacle = 'slot' if self . _use_peg else 'cup' self . _insert = insert self . _fully_observable = fully_observable super ( ) . __init__ ( random = random )