Updated: October 28, 2024 |
The camera layout is the layout used by a camera viewer.
Specifying camera layouts is optional. You may leave out specifying this in your configuration file. However, if you're specifying them, you can define one or more camera layouts. The name of each camera layout must follow the format: camera_layout_number where number must be 1 for the first camera layout you define, and each subsequent layout you specify, number is incremented by one. For example:
... "camera_layout_1": [ { "input": "forward_camera", "theta": 100, "rotations": { "yaw": 0, "pitch": 0, "roll": 0 }, "source_type": "texture", "destination_type": "full_screen" } ], "camera_layout_2": [ { "input": "rear_camera", "theta": 100, "rotations": { "yaw": 0, "pitch": 0, "roll": 0 }, "source_type": "texture", "destination_type": "full_screen" } ], ...
There are the properties that you can use to configure a camera layout.
... "input": [ { "source": "sensor", "instance": "SENSOR_UNIT_1", "id": "forward_camera" }, ... ] ...then you can specify forward_camera as the input property of your camera layout.
... "rotations": { "yaw": 0, "pitch": 0, "roll": 0 }, ...If not specified, the default is 0 for all of yaw, pitch, and roll.