Rename all /orin2 camera channels to /imu
This makes things more internall consistent.
Change-Id: Ia1dfcf6bde96874dae518a72b5c671cae8eb7fe5
Signed-off-by: James Kuszmaul <jabukuszmaul+collab@gmail.com>
diff --git a/y2024/localizer/corrections_plotter.ts b/y2024/localizer/corrections_plotter.ts
index dbfbda6..fcd56eb 100644
--- a/y2024/localizer/corrections_plotter.ts
+++ b/y2024/localizer/corrections_plotter.ts
@@ -42,7 +42,7 @@
const targets = [];
const targetLabels = [];
- for (const orin of ['orin1', 'orin2']) {
+ for (const orin of ['orin1', 'imu']) {
for (const camera of ['camera0', 'camera1']) {
targetLabels.push(orin + ' ' + camera);
targets.push(aosPlotter.addRawMessageSource(
diff --git a/y2024/localizer/localizer.cc b/y2024/localizer/localizer.cc
index 34c0bc7..441360c 100644
--- a/y2024/localizer/localizer.cc
+++ b/y2024/localizer/localizer.cc
@@ -34,8 +34,8 @@
namespace y2024::localizer {
namespace {
constexpr std::array<std::string_view, Localizer::kNumCameras>
- kDetectionChannels{"/orin1/camera0", "/orin1/camera1", "/orin2/camera0",
- "/orin2/camera1"};
+ kDetectionChannels{"/orin1/camera0", "/orin1/camera1", "/imu/camera0",
+ "/imu/camera1"};
size_t CameraIndexForName(std::string_view name) {
for (size_t index = 0; index < kDetectionChannels.size(); ++index) {
diff --git a/y2024/localizer/localizer_replay.cc b/y2024/localizer/localizer_replay.cc
index 763ad36..c2c4c16 100644
--- a/y2024/localizer/localizer_replay.cc
+++ b/y2024/localizer/localizer_replay.cc
@@ -33,7 +33,7 @@
aos::logger::LogReader reader(logfiles, &config.message());
reader.RemapLoggedChannel("/localizer", "y2024.localizer.Status");
- for (const auto orin : {"orin1", "orin2"}) {
+ for (const auto orin : {"orin1", "imu"}) {
for (const auto camera : {"camera0", "camera1"}) {
reader.RemapLoggedChannel(absl::StrCat("/", orin, "/", camera),
"y2024.localizer.Visualization");