- sd_record = self.get('sample_data', sample_data_token)
- return osp.join(self.dataroot, sd_record['filename'])
-
- def get_sample_data(self, sample_data_token: str,
- box_vis_level: BoxVisibility = BoxVisibility.ANY,
- selected_anntokens: List[str] = None,
- use_flat_vehicle_coordinates: bool = False) -> \
- Tuple[str, List[Box], np.array]:
- """
- Returns the data path as well as all annotations related to that sample_data.
- Note that the boxes are transformed into the current sensor's coordinate frame.
- :param sample_data_token: Sample_data token.
- :param box_vis_level: If sample_data is an image, this sets required visibility for boxes.
- :param selected_anntokens: If provided only return the selected annotation.
- :param use_flat_vehicle_coordinates: Instead of the current sensor's coordinate frame, use ego frame which is
- aligned to z-plane in the world.
- :return: (data_path, boxes, camera_intrinsic <np.array: 3, 3>)
- """
-
- # Retrieve sensor & pose records
- sd_record = self.get('sample_data', sample_data_token)