-
Notifications
You must be signed in to change notification settings - Fork 229
/
calib.sh
executable file
·63 lines (52 loc) · 1.51 KB
/
calib.sh
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
#!/usr/bin/env bash
bag_path="/home/ha/rosbag/li_calib_data"
outdoor_sync_bag_name=(
#"Court-01.bag"
#"Court-02.bag"
#"Court-03.bag"
#"Court-04.bag"
#"Court-05.bag"
)
indoor_sync_bag_name=(
"Garage-01.bag"
#"Garage-02.bag"
#"Garage-03.bag"
#"Garage-04.bag"
#"Garage-05.bag"
)
imu_topic_name=(
"/imu1/data_sync"
#"/imu2/data_sync"
#"/imu3/data_sync"
)
bag_start=1
bag_durr=30
scan4map=15
timeOffsetPadding=0.015
show_ui=true #false
bag_count=-1
sync_bag_name=(${outdoor_sync_bag_name[*]} ${indoor_sync_bag_name[*]})
for i in "${!sync_bag_name[@]}"; do
let bag_count=bag_count+1
ndtResolution=0.5 # indoor
if [ $bag_count -lt ${#outdoor_sync_bag_name[*]} ]; then
ndtResolution=1.0 # outdoor
fi
for j in "${!imu_topic_name[@]}"; do
path_bag="$bag_path/${sync_bag_name[i]}"
echo "topic_imu:=${imu_topic_name[j]}"
echo "path_bag:=${path_bag}"
echo "ndtResolution:=${ndtResolution}"
echo "=============="
roslaunch li_calib licalib_gui.launch \
topic_imu:="${imu_topic_name[j]}" \
path_bag:="${path_bag}" \
bag_start:="${bag_start}" \
bag_durr:="${bag_durr}" \
scan4map:="${scan4map}" \
lidar_model:="VLP_16" \
time_offset_padding:="${timeOffsetPadding}"\
ndtResolution:="${ndtResolution}" \
show_ui:="${show_ui}"
done
done