-
Notifications
You must be signed in to change notification settings - Fork 41
/
vio.yaml
executable file
·106 lines (90 loc) · 5 KB
/
vio.yaml
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
%YAML:1.0
num_threads: 0 # 0 Use the max number of threads of your device.
# For some devices, like HUAWEI Atlas200, the auto detected max number of threads might not equivalent to the usable numble of threads. (Some cores(threads) might be reserved for other usage(NPU) by system.)
# x It is proper that 1 < x < MAX_THREAD.
# For now, this parameter is relevant to grid-detector to run in parallel.
#common parameters
imu: 1
static_init: 1
imu_topic: "/mavros/imu/data_raw"
image_topic: "/camera/color/image_raw"
depth_topic: "/camera/aligned_depth_to_color/image_raw"
output_path: "/home/chrisliu/Dynamic-VINS_ws/src/Dynamic-VINS/output"
#RGBD camera Ideal Range
depth_min_dist: 0.6
depth_max_dist: 8
fix_depth: 1 # 1: feature in ideal range will be set as constant
frontend_freq: 20 # It should be raised in VO mode(without IMU).
num_grid_rows: 7
num_grid_cols: 8
#camera calibration
model_type: PINHOLE
camera_name: camera
image_width: 640
image_height: 480
distortion_parameters:
k1: -0.04936948662284771
k2: 0.033415696560328244
p1: -3.1102285057757626e-05
p2: -0.0003755759561384779
projection_parameters:
fx: 380.9915802505342
fy: 380.5726314074475
cx: 322.1283748720177
cy: 243.44425225854206
# Extrinsic parameter between IMU and Camera.
estimate_extrinsic: 1 # 0 Have an accurate extrinsic parameters. We will trust the following imu^R_cam, imu^T_cam, don't change it.
# 1 Have an initial guess about extrinsic parameters. We will optimize around your initial guess.
# 2 Don't know anything about extrinsic parameters. You don't need to give R,T. We will try to calibrate it. Do some rotation movement at beginning.
#If you choose 0 or 1, you should write down the following matrix.
#Rotation from camera frame to imu frame, imu^R_cam
extrinsicRotation: !!opencv-matrix
rows: 3
cols: 3
dt: d
data: [ 2.1156715985850560e-03, 3.4380773593936820e-02,
9.9940656708907483e-01, -9.9891090466041299e-01,
-4.6510279139396538e-02, 3.7146311917905517e-03,
4.6610390303048810e-02, -9.9832597699421699e-01,
3.4244929177026595e-02 ]
extrinsicTranslation: !!opencv-matrix
rows: 3
cols: 1
dt: d
data: [ 9.4817483500610950e-02, -1.0465556910371377e-03,
-1.4399631979047147e-02 ]
#feature traker paprameters
max_cnt: 130 # max feature number in feature tracking. It is suggested to be raised in VO mode.
min_dist: 30 # min distance between two features
freq: 10 # frequence (Hz) of publish tracking result. At least 10Hz for good estimation. If set 0, the frequence will be same as raw image
F_threshold: 1.0 # ransac threshold (pixel)
show_track: 1 # publish tracking image as topic
equalize: 0 # if image is too dark or light, trun on equalize to find enough features
fisheye: 0 # if using fisheye, trun on it. A circle mask will be loaded to remove edge noisy points
#optimization parameters
max_solver_time: 0.04 # max solver itration time (ms), to guarantee real time
max_num_iterations: 8 # max solver itrations, to guarantee real time
keyframe_parallax: 10.0 # keyframe selection threshold (pixel); if system fails frequently, please try to reduce the "keyframe_parallax"
#imu parameters The more accurate parameters you provide, the better performance
acc_n: 0.1 # accelerometer measurement noise standard deviation.
gyr_n: 0.5 # gyroscope measurement noise standard deviation.
acc_w: 0.001 # accelerometer bias random work noise standard deviation.
gyr_w: 0.0001 # gyroscope bias random work noise standard deviation.
g_norm: 9.805 # gravity magnitude
#unsynchronization parameters
estimate_td: 1 ########## # online estimate time offset between camera and imu
td: -0.0229402219449 # initial value of time offset. unit: s. readed image clock + td = real image clock (IMU clock)
#rolling shutter parameters
rolling_shutter: 0 # 0: global shutter camera, 1: rolling shutter camera
rolling_shutter_tr: 0.0 # unit: s. rolling shutter read out time per frame (from data sheet).
#loop closure parameters
loop_closure: 0 # start loop closure
fast_relocalization: 0 # useful in real-time and large project
load_previous_pose_graph: 0 # load and reuse previous pose graph; load from 'pose_graph_save_path'
pose_graph_save_path: "/home/chrisliu/Dynamic-VINS_ws/src/Dynamic-VINS/output/pose_graph" # save and load path
#visualization parameters
save_image: 0 # enable this might cause crash; save image in pose graph for visualization prupose; you can close this function by setting 0
visualize_imu_forward: 0 # output imu forward propogation to achieve low latency and high frequence results
visualize_camera_size: 0.4 # size of camera marker in RVIZ
#暂时仅考虑动物
dynamic_label: ["person", "cat", "dog", "bicycle", "car","bus"]