James Kuszmaul | 910fbe4 | 2023-04-09 16:18:40 -0700 | [diff] [blame^] | 1 | #include "aos/events/shm_event_loop.h" |
| 2 | #include "aos/init.h" |
| 3 | #include "y2023/vision/camera_monitor_lib.h" |
| 4 | |
| 5 | DEFINE_string(config, "aos_config.json", "Path to the config file to use."); |
| 6 | |
| 7 | int main(int argc, char *argv[]) { |
| 8 | aos::InitGoogle(&argc, &argv); |
| 9 | |
| 10 | aos::FlatbufferDetachedBuffer<aos::Configuration> config = |
| 11 | aos::configuration::ReadConfig(FLAGS_config); |
| 12 | |
| 13 | aos::ShmEventLoop event_loop(&config.message()); |
| 14 | |
| 15 | y2023::vision::CameraMonitor monitor(&event_loop); |
| 16 | |
| 17 | event_loop.Run(); |
| 18 | } |