(self, physics)
return obs
Returns an observation of joints, target direction and velocities.
Returns an observation of joints, target direction and velocities.
Returns an observation of joints target direction and velocities .
def get_observation(self, physics):
    """Returns an observation of joints, target direction and velocities."""
    obs = collections.OrderedDict()
    obs['joint_angles'] = physics.joint_angles()
    obs['upright'] = physics.upright()
    obs['target'] = physics.mouth_to_target()
    obs['velocity'] = physics.velocity()
    return obs
def get_observation ( self , physics ) : obs = collections . OrderedDict ( ) obs [ 'joint_angles' ] = physics . joint_angles ( ) obs [ 'upright' ] = physics . upright ( ) obs [ 'target' ] = physics . mouth_to_target ( ) obs [ 'velocity' ] = physics . velocity ( ) return obs