jakaskerl
So If I understand correctly, I should set the camera extrinsics as follows for example ? :
right->left
left->tof
tof->-1
I get an error if I set -1
 or "-1"
for toCameraSocket
Traceback (most recent call last):
File "/home/antoine/Pollen/pollen-vision/pollen_vision/pollen_vision/camera_wrappers/depthai/calibration/flash.py", line 31, in <module>
w.flash(args.calib_json_file, tof=args.tof)
File "/home/antoine/Pollen/pollen-vision/pollen_vision/pollen_vision/camera_wrappers/depthai/wrapper.py", line 312, in flash
ch.setCameraExtrinsics(
TypeError: setCameraExtrinsics(): incompatible function arguments. The following argument types are supported:
1. (self: depthai.CalibrationHandler, srcCameraId: depthai.CameraBoardSocket, destCameraId: depthai.CameraBoardSocket, rotationMatrix: list[list[float]], translation: list[float], specTranslation: list[float] = [0.0, 0.0, 0.0]) -> None
Invoked with: <depthai.CalibrationHandler object at 0x7e4bb400a5f0>, <CameraBoardSocket.CAM_D: 3>, '-1', [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]], [-3.2509, 0.0, 0.0]; kwargs: specTranslation=[-3.2509, 0.0, 0.0]
So, should it look like this ?
ch.setCameraExtrinsics(
left_socket,
tof_socket,
R_left_to_tof,
T_left_to_tof,
specTranslation=T_left_to_tof,
)
ch.setCameraExtrinsics(
right_socket,
left_socket,
R_right_to_left,
T_right_to_left,
specTranslation=T_right_to_left,
)
# Should I do this ?
ch.setCameraExtrinsics(
tof_socket,
tof_socket,
[0, 0, 0],
np.eye(3).tolist(),
specTranslation=[0, 0, 0],
)