(self, physics)
return obs
Returns an observation.

    Observations are states concatenating pole orientation and angular velocity
    and pixels from fixed camera.

    Args:
      physics: An instance of `physics`, Pendulum physics.

    Returns:
      A `dict` of observation.
Returns an observation.
Returns an observation .
def get_observation(self, physics):
    """Returns an observation.

    Observations are states concatenating pole orientation and angular velocity
    and pixels from fixed camera.

    Args:
      physics: An instance of `physics`, Pendulum physics.

    Returns:
      A `dict` of observation.
    """
    obs = collections.OrderedDict()
    obs['orientation'] = physics.pole_orientation()
    obs['velocity'] = physics.angular_velocity()
    return obs
def get_observation ( self , physics ) : obs = collections . OrderedDict ( ) obs [ 'orientation' ] = physics . pole_orientation ( ) obs [ 'velocity' ] = physics . angular_velocity ( ) return obs