blob: 8f3032b78a70e7a3175ace4ac333d00979ec2e67 [file] [log] [blame]
James Kuszmaul77d536c2023-02-11 17:30:59 -08001#include "frc971/vision/foxglove_image_converter_lib.h"
2
3#include "aos/init.h"
4#include "aos/events/shm_event_loop.h"
5
6DEFINE_string(config, "aos_config.json", "Path to the config file to use.");
7
8int main(int argc, char *argv[]) {
9 aos::InitGoogle(&argc, &argv);
10
11 aos::FlatbufferDetachedBuffer<aos::Configuration> config =
12 aos::configuration::ReadConfig(FLAGS_config);
13
14 aos::ShmEventLoop event_loop(&config.message());
15
16 frc971::vision::FoxgloveImageConverter converter(
17 &event_loop, "/camera", "/camera",
18 frc971::vision::ImageCompression::kJpeg);
19
20 event_loop.Run();
21}