(self, physics)
return obs
Returns state, touch sensors, and target info.
Returns state, touch sensors, and target info.
Returns state touch sensors and target info .
def get_observation(self, physics):
    """Returns state, touch sensors, and target info."""
    obs = collections.OrderedDict()
    obs['position'] = physics.bounded_position()
    obs['velocity'] = physics.velocity()
    obs['touch'] = physics.touch()
    obs['target_position'] = physics.target_position()
    obs['dist_to_target'] = physics.dist_to_target()
    return obs
def get_observation ( self , physics ) : obs = collections . OrderedDict ( ) obs [ 'position' ] = physics . bounded_position ( ) obs [ 'velocity' ] = physics . velocity ( ) obs [ 'touch' ] = physics . touch ( ) obs [ 'target_position' ] = physics . target_position ( ) obs [ 'dist_to_target' ] = physics . dist_to_target ( ) return obs