blob: 97940b6d6c35a7f44bd5d107bf6fa2c328cfc337 [file] [log] [blame]
Filip Kujawa3004f202023-02-12 16:41:40 -08001#include "aos/events/shm_event_loop.h"
2#include "aos/init.h"
3#include "y2023/vision/game_pieces.h"
4
5DEFINE_string(config, "aos_config.json", "Path to the config file to use.");
6
7namespace y2023 {
8namespace vision {
9namespace {
10
11void GamePiecesDetectorMain() {
12 aos::FlatbufferDetachedBuffer<aos::Configuration> config =
13 aos::configuration::ReadConfig(FLAGS_config);
14 aos::ShmEventLoop event_loop(&config.message());
15 GamePiecesDetector game_pieces_detector(&event_loop);
16 event_loop.Run();
17}
18} // namespace
19} // namespace vision
20} // namespace y2023
21
22int main(int argc, char **argv) {
23 aos::InitGoogle(&argc, &argv);
24 y2023::vision::GamePiecesDetectorMain();
25}