Brian Silverman | 2ccf8c5 | 2016-03-15 00:22:26 -0400 | [diff] [blame] | 1 | #include "y2016/vision/stereo_geometry.h" |
| 2 | |
Stephan Pleines | f63bde8 | 2024-01-13 15:59:33 -0800 | [diff] [blame] | 3 | namespace y2016::vision { |
Brian Silverman | 2ccf8c5 | 2016-03-15 00:22:26 -0400 | [diff] [blame] | 4 | |
| 5 | Calibration FindCalibrationForRobotOrDie( |
| 6 | const ::std::string &robot_name, const CalibrationFile &calibration_file) { |
| 7 | for (const RobotCalibration &calibration : calibration_file.calibration()) { |
| 8 | if (calibration.robot() == robot_name) { |
| 9 | return calibration.calibration(); |
| 10 | } |
| 11 | } |
Austin Schuh | f257f3c | 2019-10-27 21:00:43 -0700 | [diff] [blame] | 12 | AOS_LOG(FATAL, "no calibration for %s found in %s\n", robot_name.c_str(), |
| 13 | calibration_file.ShortDebugString().c_str()); |
Brian Silverman | 2ccf8c5 | 2016-03-15 00:22:26 -0400 | [diff] [blame] | 14 | } |
| 15 | |
Stephan Pleines | f63bde8 | 2024-01-13 15:59:33 -0800 | [diff] [blame] | 16 | } // namespace y2016::vision |