blob: 5bdab41b68ece50642fc8a4e5298f034f65b8e7f [file] [log] [blame]
Ravago Jonese12b7902022-02-04 22:50:44 -08001#include "aos/events/shm_event_loop.h"
2#include "aos/init.h"
3#include "y2022/localizer/imu.h"
4
Austin Schuhc5fa6d92022-02-25 14:36:28 -08005DEFINE_string(config, "aos_config.json", "Path to the config file to use.");
Ravago Jonese12b7902022-02-04 22:50:44 -08006
7int 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}