blob: b4ceff5763b7243f3e3ccdce24b69f446fdb8feb [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
Stephan Pleinesf63bde82024-01-13 15:59:33 -08007namespace y2023::vision {
Filip Kujawa3004f202023-02-12 16:41:40 -08008namespace {
9
10void GamePiecesDetectorMain() {
11 aos::FlatbufferDetachedBuffer<aos::Configuration> config =
12 aos::configuration::ReadConfig(FLAGS_config);
13 aos::ShmEventLoop event_loop(&config.message());
14 GamePiecesDetector game_pieces_detector(&event_loop);
15 event_loop.Run();
16}
17} // namespace
Stephan Pleinesf63bde82024-01-13 15:59:33 -080018} // namespace y2023::vision
Filip Kujawa3004f202023-02-12 16:41:40 -080019
20int main(int argc, char **argv) {
21 aos::InitGoogle(&argc, &argv);
22 y2023::vision::GamePiecesDetectorMain();
23}