ravens/tasks/defs_cables.py
def _get_goal_info(self, last_info):
        """Used to determine the goal given the last `info` dict."""
        start_ID = 4
        end_ID = start_ID + self.num_parts
        places = {}
        for ID in range(start_ID, end_ID):
            assert ID in last_info, f'something went wrong with ID={ID}'
            position, _, _ = last_info[ID]
            places[ID] = (position, (0, 0, 0, 1.))
        return places
Used to determine the goal given the last `info` dict.
Used to determine the goal given the last `info` dict.
Used to determine the goal given the last ` info ` dict .
def _get_goal_info(self, last_info):
        start_ID = 4
        end_ID = start_ID + self.num_parts
        places = {}
        for ID in range(start_ID, end_ID):
            assert ID in last_info, f'something went wrong with ID={ID}'
            position, _, _ = last_info[ID]
            places[ID] = (position, (0, 0, 0, 1.))
        return places
def _get_goal_info ( self , last_info ) : start_ID = 4 end_ID = start_ID + self . num_parts places = { } for ID in range ( start_ID , end_ID ) : assert ID in last_info , f'something went wrong with ID={ID}' position , _ , _ = last_info [ ID ] places [ ID ] = ( position , ( 0 , 0 , 0 , 1. ) ) return places
Used to determine the goal given the last `info` dict.
Used to determine the goal given the last ` info ` dict .
"""Used to determine the goal given the last `info` dict."""
self
last_info