(self, physics)
return obs
Returns an observation of positions, velocities and touch sensors.
Returns an observation of positions, velocities and touch sensors.
Returns an observation of positions velocities and touch sensors .
def get_observation(self, physics):
    """Returns an observation of positions, velocities and touch sensors."""
    obs = collections.OrderedDict()
    # Ignores horizontal position to maintain translational invariance:
    obs['position'] = physics.data.qpos[1:].copy()
    obs['velocity'] = physics.velocity()
    obs['touch'] = physics.touch()
    return obs
def get_observation ( self , physics ) : obs = collections . OrderedDict ( ) # Ignores horizontal position to maintain translational invariance: obs [ 'position' ] = physics . data . qpos [ 1 : ] . copy ( ) obs [ 'velocity' ] = physics . velocity ( ) obs [ 'touch' ] = physics . touch ( ) return obs