blob: f5d88410e8c5b370576ea34f5edcb1108afde279 [file] [log] [blame]
Austin Schuh99f7c6a2024-06-25 22:07:44 -07001#include "absl/flags/flag.h"
2
James Kuszmaul910fbe42023-04-09 16:18:40 -07003#include "aos/events/shm_event_loop.h"
4#include "aos/init.h"
5#include "y2023/vision/camera_monitor_lib.h"
6
Austin Schuh99f7c6a2024-06-25 22:07:44 -07007ABSL_FLAG(std::string, config, "aos_config.json",
8 "Path to the config file to use.");
James Kuszmaul910fbe42023-04-09 16:18:40 -07009
10int main(int argc, char *argv[]) {
11 aos::InitGoogle(&argc, &argv);
12
13 aos::FlatbufferDetachedBuffer<aos::Configuration> config =
Austin Schuh99f7c6a2024-06-25 22:07:44 -070014 aos::configuration::ReadConfig(absl::GetFlag(FLAGS_config));
James Kuszmaul910fbe42023-04-09 16:18:40 -070015
16 aos::ShmEventLoop event_loop(&config.message());
17
18 y2023::vision::CameraMonitor monitor(&event_loop);
19
20 event_loop.Run();
21}