blob: 9a05ce20adca020ed7f58419b185b0b5a896abf0 [file] [log] [blame]
Alex Perrydd2296a2019-03-09 14:01:28 -08001#!/bin/bash
2
3set -e
4
5cd "$(dirname "${BASH_SOURCE[0]}")"
6
7# We need to rebuild to save the old constants since the .cc file is baked into
8# the executable.
9calibration() {
10 bazel build -c opt //y2019/vision:global_calibration
11
12 ../../bazel-bin/y2019/vision/global_calibration "$@"
13}
14
15# Calibrate the comp robot. This is assuming the data file captured has been
16# extracted into the users home directory.
17calibration \
18 --camera_id 1 \
19 --tape_start_x=-12.5 \
20 --tape_start_y=0.0 \
21 --tape_direction_x=-1.0 \
22 --tape_direction_y=0.0 \
23 --beginning_tape_measure_reading=16 \
24 --image_count=45 \
25 --constants=constants.cc \
26 --prefix ~/cam1/debug_viewer_jpeg_
27
28calibration \
29 --camera_id 14 \
30 --tape_start_x=12.5 \
31 --tape_start_y=0.0 \
32 --tape_direction_x=1.0 \
33 --tape_direction_y=0.0 \
34 --beginning_tape_measure_reading=16 \
35 --image_count=71 \
36 --constants=constants.cc \
37 --prefix ~/cam14/debug_viewer_jpeg_
38
39calibration \
40 --camera_id 15 \
41 --tape_start_x=12.5 \
42 --tape_start_y=0.0 \
43 --tape_direction_x=1.0 \
44 --tape_direction_y=0.0 \
45 --beginning_tape_measure_reading=25 \
46 --image_count=62 \
47 --constants=constants.cc \
48 --prefix ~/cam15/debug_viewer_jpeg_
49
50calibration \
51 --camera_id 17 \
52 --tape_start_x=-6.5 \
53 --tape_start_y=11.0 \
54 --tape_direction_x=0.0 \
55 --tape_direction_y=-1.0 \
56 --beginning_tape_measure_reading=29 \
57 --image_count=58 \
58 --constants=constants.cc \
59 --prefix ~/cam17/debug_viewer_jpeg_
60
61calibration \
62 --camera_id 18 \
63 --tape_start_x=6.5 \
64 --tape_start_y=-11.0 \
65 --tape_direction_x=0.0 \
66 --tape_direction_y=1.0 \
67 --beginning_tape_measure_reading=27 \
68 --image_count=60 \
69 --constants=constants.cc \
70 --prefix ~/cam18/debug_viewer_jpeg_