Skip to content

Obtain the TF tree and camera calibration file paths from the exported data metadata #33

@hect95

Description

@hect95

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.

Sub-issues

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions