blob: bf3953c0a06fe1d91f5c5c04bf09144f40366ff9 [file] [log] [blame]
Parker Schuhe9a549a2019-02-24 16:29:22 -08001#include "y2019/vision/constants.h"
2
3namespace y2019 {
4namespace vision {
5
6constexpr double kInchesToMeters = 0.0254;
7
8CameraCalibration camera_4 = {
9 {
10 3.50309 / 180.0 * M_PI, 593.557, -0.0487739 / 180.0 * M_PI,
11 },
12 {
13 {{5.56082 / kInchesToMeters, 4.70235 / kInchesToMeters,
14 33.4998 / kInchesToMeters}},
15 22.2155 * M_PI / 180.0,
16 },
17 {
18 4,
19 {{12.5 / kInchesToMeters, 12.0 / kInchesToMeters}},
20 {{kInchesToMeters, 0.0}},
21 26.0,
22 "cam4_0/debug_viewer_jpeg_",
23 }};
24
25const CameraCalibration *GetCamera(int camera_id) {
26 switch (camera_id) {
27 case 4: return &camera_4;
28 default: return nullptr;
29 }
30}
31
32} // namespace vision
33} // namespace y2019