parameters: (self, streetlearn)
return_statement: return info
docstring: Returns current information about the state of the environment.
  
      Args:
        streetlearn: a StreetLearn instance.
      Returns:
        info: information from the environment at the last step.
docstring_summary: Returns current information about the state of the environment.
docstring_tokens: Returns current information about the state of the environment .
function: def get_info(self, streetlearn):
      """"Returns current information about the state of the environment.
  
      Args:
        streetlearn: a StreetLearn instance.
      Returns:
        info: information from the environment at the last step.
      """
      info = super(InstructionsBase, self).get_info(streetlearn)
      info['num_steps_this_goal'] = self._num_steps_this_goal
      info['current_step'] = self._current_step
      info['current_goal_id'] = self._goal_pano_id
      info['distance_to_goal'] = streetlearn.engine.GetPanoDistance(
          streetlearn.current_pano_id, self._goal_pano_id)
      info['reward_current_goal'] = self._reward_at_goal
      if self._calculate_ground_truth:
        current_pano_id = streetlearn.current_pano_id
        next_pano_id = self._panos_to_goal[current_pano_id]
        info['next_pano_id'] = next_pano_id
        if next_pano_id:
          bearing_to_next_pano = streetlearn.engine.GetPanoBearing(
              current_pano_id, next_pano_id) - streetlearn.engine.GetYaw()
        else:
          bearing_to_next_pano = 0
        info['bearing_to_next_pano'] = (bearing_to_next_pano + 180) % 360 - 180
      return info
function_tokens: def get_info ( self , streetlearn ) : info = super ( InstructionsBase , self ) . get_info ( streetlearn ) info [ 'num_steps_this_goal' ] = self . _num_steps_this_goal info [ 'current_step' ] = self . _current_step info [ 'current_goal_id' ] = self . _goal_pano_id info [ 'distance_to_goal' ] = streetlearn . engine . GetPanoDistance ( streetlearn . current_pano_id , self . _goal_pano_id ) info [ 'reward_current_goal' ] = self . _reward_at_goal if self . _calculate_ground_truth : current_pano_id = streetlearn . current_pano_id next_pano_id = self . _panos_to_goal [ current_pano_id ] info [ 'next_pano_id' ] = next_pano_id if next_pano_id : bearing_to_next_pano = streetlearn . engine . GetPanoBearing ( current_pano_id , next_pano_id ) - streetlearn . engine . GetYaw ( ) else : bearing_to_next_pano = 0 info [ 'bearing_to_next_pano' ] = ( bearing_to_next_pano + 180 ) % 360 - 180 return info