Maxwell Henderson | ad31234 | 2023-01-10 12:07:47 -0800 | [diff] [blame] | 1 | #include <cstdio> |
| 2 | |
| 3 | #include "aos/events/shm_event_loop.h" |
| 4 | #include "aos/init.h" |
| 5 | #include "y2023/autonomous/autonomous_actor.h" |
| 6 | |
| 7 | int main(int argc, char *argv[]) { |
| 8 | ::aos::InitGoogle(&argc, &argv); |
| 9 | |
| 10 | aos::FlatbufferDetachedBuffer<aos::Configuration> config = |
| 11 | aos::configuration::ReadConfig("aos_config.json"); |
| 12 | |
| 13 | ::aos::ShmEventLoop event_loop(&config.message()); |
| 14 | ::y2023::actors::AutonomousActor autonomous(&event_loop); |
| 15 | |
| 16 | event_loop.Run(); |
| 17 | |
| 18 | return 0; |
| 19 | } |