-
Notifications
You must be signed in to change notification settings - Fork 599
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
yanguohang
committed
Dec 14, 2021
1 parent
fd66541
commit c520441
Showing
46 changed files
with
1,203 additions
and
544 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
## Introduction | ||
|
||
This is a project for intrinsic calibration and evalution. | ||
|
||
It mainly includes two part: intrinsic calibration, distortion measurement. | ||
|
||
## Prerequisites | ||
|
||
- Cmake | ||
- opencv 2.4 | ||
- eigen 3 | ||
|
||
## Compile | ||
Compile in their respective folders | ||
|
||
```shell | ||
# mkdir build | ||
mkdir -p build && cd build | ||
# build | ||
cmake .. && make | ||
``` | ||
|
||
## Input data | ||
- <calibration_image_dir>: contains only seleted chessboard calibration image | ||
- <distortion_image_path>: distortion harp image | ||
|
||
## Calibration targets | ||
|
||
Camera intrinsic calibration board, size 900 * 1000 mm, each grid size 100 * 100 mm | ||
|
||
<img src="./images/board2.jpg" width="20%" height="20%" alt="checkerboard" div align=center /><br> | ||
|
||
Camera intrinsic calibration board, size 900 * 1000 mm, each grid size 50 * 50 mm | ||
|
||
<img src="./images/board1.jpg" width="20%" height="20%" alt="checkerboard" div align=center /><br> | ||
|
||
Camera distortion measurement board, size 900 * 1000 mm | ||
|
||
<img src="./images/board3.jpg" width="20%" height="20%" alt="distortion" div align=center /><br> | ||
|
||
## Run | ||
run command: | ||
```shell | ||
# run intrinsic calibration | ||
./bin/run_intrinsic_calibration <calibration_image_dir> | ||
# run distortion measurement | ||
./bin/run_distortion_measure <distortion_image_path> | ||
``` | ||
|
||
- **Intrinsic Calibration:** Program will automatically run intrinsic calibration. Corner-detect result will be displayed. All input calibration images will be undistorted and save to `<calibration_image_dir>/undistort/` dir. | ||
|
||
- **Distortion Evaluation:** Sampled points of original and undistorted images will be displayed. Undistorted distortion_image will be save to `<output_dir>`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
## Introduction | ||
|
||
This is a project for imu heading angle calibration and evalution. | ||
|
||
<img src="./images/imu_heading.png" width="20%" height="20%" alt="checkerboard" div align=center /><br> | ||
|
||
## Prerequisites | ||
|
||
- Cmake | ||
- eigen 3 | ||
|
||
## Compile | ||
Compile in their respective folders | ||
|
||
```shell | ||
# mkdir build | ||
mkdir -p build && cd build | ||
# build | ||
cmake .. && make | ||
``` | ||
|
||
## Calibration data collection | ||
|
||
According to the figure below for data collection, the calibration vehicle records IMU and GPS data in a straight line. | ||
|
||
<img src="./images/data_collect.png" width="20%" height="20%" alt="checkerboard" div align=center /><br> | ||
|
||
## Run | ||
run command: | ||
```shell | ||
# run imu heading calibration | ||
./bin/run_imu_heading method_id <data_dir> | ||
``` | ||
- **Imu heading calibration:** The imu heading angle is obtained by the registration calculation of GPS trajectory and imu data. | ||
|
||
- **Imu heading evaluation:** Speed projection verification of imu through the calibrated heading angle of imu. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
roll_offset_degree,pitch_offset_degree,yaw_offset_degree,roll_offset_rad,pitch_offset_rad,yaw_offset_rad | ||
0.000000,0.000000,0.303795,0.000000,0.000000,0.005302 | ||
-0.574228,0.310852,0.430412,-0.010022,0.005425,0.007512 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
/* | ||
* Copyright (C) 2020 by SenseTime Group Limited. All rights reserved. | ||
* Liu Zhuochun <[email protected]> | ||
* Copyright (C) 2021 by Autonomous Driving Group, Shanghai AI Laboratory | ||
* Limited. All rights reserved. | ||
* Yan Guohang <[email protected]> | ||
* Liu Zhuochun <[email protected]> | ||
*/ | ||
|
||
#pragma once | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
/* | ||
* Copyright (C) 2020 by SenseTime Group Limited. All rights reserved. | ||
* Liu Zhuochun <[email protected]> | ||
* Copyright (C) 2021 by Autonomous Driving Group, Shanghai AI Laboratory | ||
* Limited. All rights reserved. | ||
* Yan Guohang <[email protected]> | ||
* Liu Zhuochun <[email protected]> | ||
*/ | ||
#include "imu_heading.hpp" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
/* | ||
* Copyright (C) 2020 by SenseTime Group Limited. All rights reserved. | ||
* Yan Guohang <[email protected]> | ||
* Liu Zhuochun <[email protected]> | ||
* Copyright (C) 2021 by Autonomous Driving Group, Shanghai AI Laboratory | ||
* Limited. All rights reserved. | ||
* Yan Guohang <[email protected]> | ||
* Liu Zhuochun <[email protected]> | ||
*/ | ||
|
||
#include <dirent.h> | ||
|
@@ -17,7 +18,7 @@ const char usage[] = "\t./bin/run_imu_heading method_id <data_dir>\n" | |
|
||
int main(int argc, char **argv) { | ||
if (argc < 3) { | ||
std::cout << argv[0] << usage; | ||
std::cout << usage; | ||
return 1; | ||
} | ||
int method_id = std::stod(argv[1]); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
/* | ||
* Copyright (C) 2019 by SenseTime Group Limited. All rights reserved. | ||
* Li WenQiang <[email protected]> | ||
* Copyright (C) 2021 by Autonomous Driving Group, Shanghai AI Laboratory | ||
* Limited. All rights reserved. | ||
* Yan Guohang <[email protected]> | ||
* Liu Zhuochun <[email protected]> | ||
*/ | ||
|
||
#include "time.h" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
/* | ||
* Copyright (C) 2019 by SenseTime Group Limited. All rights reserved. | ||
* Li WenQiang <[email protected]> | ||
* Copyright (C) 2021 by Autonomous Driving Group, Shanghai AI Laboratory | ||
* Limited. All rights reserved. | ||
* Yan Guohang <[email protected]> | ||
* Liu Zhuochun <[email protected]> | ||
*/ | ||
|
||
#pragma once | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
/* | ||
* Copyright (C) 2020 by SenseTime Group Limited. All rights reserved. | ||
* Liu Zhuochun <[email protected]> | ||
* Copyright (C) 2021 by Autonomous Driving Group, Shanghai AI Laboratory | ||
* Limited. All rights reserved. | ||
* Yan Guohang <[email protected]> | ||
* Liu Zhuochun <[email protected]> | ||
*/ | ||
#include "utils/Ransac_fitline.h" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
/* | ||
* Copyright (C) 2020 by SenseTime Group Limited. All rights reserved. | ||
* Liu Zhuochun <[email protected]> | ||
* Copyright (C) 2021 by Autonomous Driving Group, Shanghai AI Laboratory | ||
* Limited. All rights reserved. | ||
* Yan Guohang <[email protected]> | ||
* Liu Zhuochun <[email protected]> | ||
*/ | ||
#pragma once | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
/* | ||
* Copyright (C) 2019 by SenseTime Group Limited. All rights reserved. | ||
* Li WenQiang <[email protected]> | ||
* Copyright (C) 2021 by Autonomous Driving Group, Shanghai AI Laboratory | ||
* Limited. All rights reserved. | ||
* Yan Guohang <[email protected]> | ||
* Liu Zhuochun <[email protected]> | ||
*/ | ||
#pragma once | ||
|
||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.