blob: ff3ec7ce16f5d6c901ad0fb7369fc0d7e154195c [file] [log] [blame]
#include "absl/flags/flag.h"
#include "aos/events/shm_event_loop.h"
#include "aos/init.h"
#include "y2023/vision/game_pieces.h"
ABSL_FLAG(std::string, config, "aos_config.json",
"Path to the config file to use.");
namespace y2023::vision {
namespace {
void GamePiecesDetectorMain() {
aos::FlatbufferDetachedBuffer<aos::Configuration> config =
aos::configuration::ReadConfig(absl::GetFlag(FLAGS_config));
aos::ShmEventLoop event_loop(&config.message());
GamePiecesDetector game_pieces_detector(&event_loop);
event_loop.Run();
}
} // namespace
} // namespace y2023::vision
int main(int argc, char **argv) {
aos::InitGoogle(&argc, &argv);
y2023::vision::GamePiecesDetectorMain();
}