(self, physics)
return obs
Returns an observation of the state and the target position.
Returns an observation of the state and the target position.
Returns an observation of the state and the target position .
def get_observation(self, physics):
    """Returns an observation of the state and the target position."""
    obs = collections.OrderedDict()
    obs['position'] = physics.position()
    obs['to_target'] = physics.finger_to_target()
    obs['velocity'] = physics.velocity()
    return obs
def get_observation ( self , physics ) : obs = collections . OrderedDict ( ) obs [ 'position' ] = physics . position ( ) obs [ 'to_target' ] = physics . finger_to_target ( ) obs [ 'velocity' ] = physics . velocity ( ) return obs