HLR  0.0.1
MockCupDetector.hpp
1 #pragma once
2 
3 #include <Vision/ICupDetector.hpp>
4 
5 namespace HLR
6 {
7 namespace Vision
8 {
14 {
15 public:
20 
24  ~MockCupDetector() override = default;
25 
31  MockCupDetector(MockCupDetector&& cup_detector) = default;
32 
38  MockCupDetector(const MockCupDetector& cup_detector) = default;
39 
46  MockCupDetector& operator=(const MockCupDetector& cup_detector) = default;
47 
54  MockCupDetector& operator=(MockCupDetector&& cup_detector) = default;
55 
63  CupDetection detect_cups() override;
64 
70  std::shared_ptr<cv::Mat> get_detected_cups_image() override;
71 
77  std::shared_ptr<cv::Mat> get_latest_depth_frame() override;
78 
84  std::shared_ptr<cv::Mat> get_latest_ir_frame() override;
85 
91  std::shared_ptr<cv::Mat> get_latest_color_frame() override;
92 
93 private:
94  CupDetection detection;
95  std::shared_ptr<cv::Mat> depth;
96  std::shared_ptr<cv::Mat> ir;
97  std::shared_ptr<cv::Mat> color;
98 };
99 } // namespace Vision
100 } // namespace HLR
std::shared_ptr< cv::Mat > get_detected_cups_image() override
returns the color image as a mock
Mocks a ICupDetector Mocks an ICupDetector by reading frames from files.
Definition: MockCupDetector.hpp:13
Can detect cups using the Kinect color and depth camera. This class allows its user to detect cups in...
Definition: ICupDetector.hpp:39
MockCupDetector & operator=(const MockCupDetector &cup_detector)=default
Default assignment opreator.
std::shared_ptr< cv::Mat > get_latest_ir_frame() override
Returns a static IR frame.
CupDetection detect_cups() override
Mocks the detection of cups Mocks the detection of cups by using a static depth frame and predefined ...
std::shared_ptr< cv::Mat > get_latest_color_frame() override
Returns a static color frame.
~MockCupDetector() override=default
Default destructor.
std::shared_ptr< cv::Mat > get_latest_depth_frame() override
Returns a static depth frame.
Collection of detected cups Collection of detected cups where the location of the cups is described i...
Definition: ICupDetector.hpp:17
MockCupDetector()
Standard constructor.