Filip Kujawa | 3004f20 | 2023-02-12 16:41:40 -0800 | [diff] [blame] | 1 | #ifndef Y2023_VISION_GAME_PIECES_H_ |
| 2 | #define Y2023_VISION_GAME_PIECES_H_ |
| 3 | |
| 4 | #include "aos/events/shm_event_loop.h" |
| 5 | #include "frc971/vision/vision_generated.h" |
| 6 | #include "y2023/vision/game_pieces_generated.h" |
| 7 | |
| 8 | namespace y2023 { |
| 9 | namespace vision { |
| 10 | |
| 11 | using namespace frc971::vision; |
| 12 | |
| 13 | // Takes in camera images and detects game pieces in the image. |
| 14 | // Note: Actual detection has not been implemented yet. |
| 15 | class GamePiecesDetector { |
| 16 | public: |
| 17 | GamePiecesDetector(aos::EventLoop *event_loop); |
| 18 | |
| 19 | void ProcessImage(const CameraImage &camera_image); |
| 20 | |
| 21 | private: |
| 22 | aos::Sender<GamePieces> game_pieces_sender_; |
| 23 | }; |
| 24 | } // namespace vision |
| 25 | } // namespace y2023 |
| 26 | #endif |