blob: bfaafc8c5d0f10946b3a75aea45e1d4a6154430d [file] [log] [blame]
James Kuszmaul77d536c2023-02-11 17:30:59 -08001#include "aos/events/shm_event_loop.h"
Philipp Schrader790cb542023-07-05 21:06:52 -07002#include "aos/init.h"
3#include "frc971/vision/foxglove_image_converter_lib.h"
James Kuszmaul77d536c2023-02-11 17:30:59 -08004
5DEFINE_string(config, "aos_config.json", "Path to the config file to use.");
6
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
15 frc971::vision::FoxgloveImageConverter converter(
16 &event_loop, "/camera", "/camera",
17 frc971::vision::ImageCompression::kJpeg);
18
19 event_loop.Run();
20}