SensorFrameCreateor expects a file inside the <data_directory>/extrinsics directory :
def __init__(self, data_directory: Path, cameras_info: list):
self.data_directory = data_directory
# Based on vehicle's TF tree
self.GROUND_Z_OFFSET_BELOW_LIDAR_M = -1.78
# Load the transform tree from the transforms.yaml file
transforms_file = data_directory / 'extrinsics/transforms.yaml'
And a camera_calibration.yaml file inside <data_directory>/camera/<camera_name>
def get_cameras_calibration(self, cameras_info: list):
for camera in cameras_info:
camera_name = camera['name']
calibration_file = (
self.data_directory
/ 'camera'
/ camera_name
/ 'camera_calibration.yaml'
)
If the exportation directory structure changes, these sections need to be manually fixed.