Move cameras to RobotConstants in y2024
Signed-off-by: Yash Maheshwari <yashmahe2018@gmail.com>
Change-Id: Iba79b172e1161565ca2be4960f953bfda6d29ffc
Signed-off-by: Yash Maheshwari <yashmahe2018@gmail.com>
diff --git a/y2024/localizer/localizer_test.cc b/y2024/localizer/localizer_test.cc
index e5815e0..bd97059 100644
--- a/y2024/localizer/localizer_test.cc
+++ b/y2024/localizer/localizer_test.cc
@@ -104,20 +104,23 @@
// Sanity check that the test calibration files look like what we
// expect.
CHECK_EQ("orin1", constants_fetcher_.constants()
- .cameras()
+ .robot()
+ ->cameras()
->Get(0)
->calibration()
->node_name()
->string_view());
CHECK_EQ(0, constants_fetcher_.constants()
- .cameras()
+ .robot()
+ ->cameras()
->Get(0)
->calibration()
->camera_number());
const Eigen::Matrix<double, 4, 4> H_robot_camera =
frc971::control_loops::drivetrain::FlatbufferToTransformationMatrix(
*constants_fetcher_.constants()
- .cameras()
+ .robot()
+ ->cameras()
->Get(0)
->calibration()
->fixed_extrinsics());