You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: GEMstack/offboard/calibration/README.md
+10-4Lines changed: 10 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ Set up on vehicle:
11
11
12
12
Script usage:
13
13
14
-
python3 capture_ouster_oak.py
14
+
python3 capture_ouster_oak.py
15
15
16
16
1. To specify directory to save data, use --folder "path to save location" (default save folder is data)
17
17
2. To specify frequency of data capture, use --frequency put_frequency_in_hz_here (default is 2 hz)
@@ -48,7 +48,7 @@ This section explains tools for offline calibration of LiDAR and camera sensors
48
48
49
49
Our script assumes data is formated as: colorx.png, lidarx.npz, depthx.tif where x is some index number. x is chosen using the --index flag seen below. Set it based on what data sample you want to use for calibration.
50
50
51
-
python3 lidar_to_vehicle.py --data_path "path to data folder" --index INDEX_NUM
51
+
python3 lidar_to_vehicle.py --data_path "path to data folder" --index INDEX_NUM
52
52
53
53
Optionally, use --vis flag for visualizations throughout the computation process
54
54
@@ -63,7 +63,7 @@ Optionally, use --vis flag for visualizations throughout the computation process
63
63
1. Get camera intrinsics:
64
64
rosrun offboard\calibration\camera_info.py # Prints intrinsic matrix
65
65
2. Update camera_in in script with intrinsics
66
-
3. Our script assumes data is formated as: colorx.png, lidarx.npz, depthx.tif where x is some index number. Choose x depending on what data sample you want to use for calibration.
66
+
3. Our script assumes data is formated as: colorx.png, lidarx.npz, depthx.tif where x is some index number. x is chosen using the --index flag seen below. Set it based on what data sample you want to use for calibration.Choose x depending on what data sample you want to use for calibration.
67
67
68
68
The script also reads the lidar_to_vehicle matrix from the gem_e4_ouster.yaml file so ensure that is up to date.
69
69
4. Run calibration:
@@ -86,7 +86,13 @@ python3 lidar_to_camera.py # Ensure T_lidar_vehicle and T_camera_vehicle matri
86
86
**3D Alignment Check**:
87
87
1. Use vis() function in scripts to view calibrated LiDAR/camera clouds
88
88
2. Use --vis flag when running lidar_to_vehicle.py for ground plane/object visualization
89
-
3. Use test_transforms.py to visualize lidar point cloud on top of png image. Helps verify accuracy of lidar->camera.
89
+
3. Use test_transforms.py to visualize the transformed lidar point cloud to camera frame on top of the corresponding png image. Helps verify accuracy of lidar->camera.
90
+
91
+
Usage of test_transforms.py:
92
+
```
93
+
python3 test_transforms.py --data_path "path to data folder" --index INDEX_NUM
94
+
```
95
+
Data path is the directory where lidar npz and color png files are located, index number is whichever lidar/png pair you want to evaluate. Ex. lidar1.npz color1.png where INDEX_NUM is 1 (--index 1)
90
96
91
97
**Projection Validation**:
92
98
1. RGB image overlaid with transformed LiDAR points (Z-buffered)
0 commit comments