-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstructs.py
More file actions
29 lines (23 loc) · 714 Bytes
/
structs.py
File metadata and controls
29 lines (23 loc) · 714 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
from numpy.typing import NDArray
from dataclasses import dataclass
@dataclass
class CameraParameters:
rms_error: NDArray # [n_img,]
intrinsics: NDArray # [3, 3]
distortion_coeffs: NDArray # [5]
target_to_cam_rotation: NDArray # [N, 3, 3]
target_to_cam_translation: NDArray # [N, 3]
image_w: int
image_h: int
@dataclass
class HandEyeCalibrationResult:
arm_to_base_rotation: NDArray
arm_to_base_translation: NDArray
cam_to_arm_rotation: NDArray
cam_to_arm_translation: NDArray
cam_to_base_rotation: NDArray
cam_to_base_translation: NDArray
target_to_base_rotation: NDArray
target_to_base_translation: NDArray
if __name__ == "__main__":
pass