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