James Kuszmaul | 77d536c | 2023-02-11 17:30:59 -0800 | [diff] [blame^] | 1 | #include "frc971/vision/foxglove_image_converter_lib.h" |
| 2 | |
| 3 | #include "aos/init.h" |
| 4 | #include "aos/events/shm_event_loop.h" |
| 5 | |
| 6 | DEFINE_string(config, "aos_config.json", "Path to the config file to use."); |
| 7 | |
| 8 | int 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 | } |