Ravago Jones | e12b790 | 2022-02-04 22:50:44 -0800 | [diff] [blame] | 1 | #include "aos/events/shm_event_loop.h" |
| 2 | #include "aos/init.h" |
| 3 | #include "y2022/localizer/imu.h" |
| 4 | |
Austin Schuh | c5fa6d9 | 2022-02-25 14:36:28 -0800 | [diff] [blame] | 5 | DEFINE_string(config, "aos_config.json", "Path to the config file to use."); |
Ravago Jones | e12b790 | 2022-02-04 22:50:44 -0800 | [diff] [blame] | 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 | y2022::localizer::Imu imu(&event_loop); |
| 15 | |
| 16 | event_loop.Run(); |
| 17 | |
| 18 | return 0; |
| 19 | } |