HLR  0.0.1
Public Member Functions | List of all members
HLR::Vision::MockCupDetector Class Reference

Mocks a ICupDetector Mocks an ICupDetector by reading frames from files. More...

#include <MockCupDetector.hpp>

Inheritance diagram for HLR::Vision::MockCupDetector:
Collaboration diagram for HLR::Vision::MockCupDetector:

Public Member Functions

 MockCupDetector ()
 Standard constructor.
 
 ~MockCupDetector () override=default
 Default destructor.
 
 MockCupDetector (MockCupDetector &&cup_detector)=default
 Default move constructor. More...
 
 MockCupDetector (const MockCupDetector &cup_detector)=default
 Default copy constructor. More...
 
MockCupDetectoroperator= (const MockCupDetector &cup_detector)=default
 Default assignment opreator. More...
 
MockCupDetectoroperator= (MockCupDetector &&cup_detector)=default
 Default move assignment operator. More...
 
CupDetection detect_cups () override
 Mocks the detection of cups Mocks the detection of cups by using a static depth frame and predefined positions of cups. More...
 
std::shared_ptr< cv::Mat > get_detected_cups_image () override
 returns the color image as a mock More...
 
std::shared_ptr< cv::Mat > get_latest_depth_frame () override
 Returns a static depth frame. More...
 
std::shared_ptr< cv::Mat > get_latest_ir_frame () override
 Returns a static IR frame. More...
 
std::shared_ptr< cv::Mat > get_latest_color_frame () override
 Returns a static color frame. More...
 
- Public Member Functions inherited from HLR::Vision::ICupDetector
 ICupDetector ()=default
 Default constructor.
 
virtual ~ICupDetector ()=default
 Default destructor.
 
 ICupDetector (ICupDetector &&cup_detector)=default
 Default move constructor. More...
 
 ICupDetector (const ICupDetector &cup_detector)=default
 Default copy constructor. More...
 
ICupDetectoroperator= (const ICupDetector &cup_detector)=default
 Default assignment operator. More...
 
ICupDetectoroperator= (ICupDetector &&cup_detector)=default
 default move assignment operator More...
 

Detailed Description

Mocks a ICupDetector Mocks an ICupDetector by reading frames from files.

Constructor & Destructor Documentation

HLR::Vision::MockCupDetector::MockCupDetector ( MockCupDetector &&  cup_detector)
default

Default move constructor.

Parameters
cup_detector
HLR::Vision::MockCupDetector::MockCupDetector ( const MockCupDetector cup_detector)
default

Default copy constructor.

Parameters
cup_detector

Member Function Documentation

CupDetection HLR::Vision::MockCupDetector::detect_cups ( )
overridevirtual

Mocks the detection of cups Mocks the detection of cups by using a static depth frame and predefined positions of cups.

Returns
CupDetection Mocked cupdetection

Implements HLR::Vision::ICupDetector.

std::shared_ptr<cv::Mat> HLR::Vision::MockCupDetector::get_detected_cups_image ( )
overridevirtual

returns the color image as a mock

Returns
std::shared_ptr<cv::Mat> Color image

Implements HLR::Vision::ICupDetector.

std::shared_ptr<cv::Mat> HLR::Vision::MockCupDetector::get_latest_color_frame ( )
overridevirtual

Returns a static color frame.

Returns
std::shared_ptr<cv::Mat> Static color frame

Implements HLR::Vision::ICupDetector.

std::shared_ptr<cv::Mat> HLR::Vision::MockCupDetector::get_latest_depth_frame ( )
overridevirtual

Returns a static depth frame.

Returns
std::shared_ptr<cv::Mat> static depth frame

Implements HLR::Vision::ICupDetector.

std::shared_ptr<cv::Mat> HLR::Vision::MockCupDetector::get_latest_ir_frame ( )
overridevirtual

Returns a static IR frame.

Returns
std::shared_ptr<cv::Mat> static IR frame

Implements HLR::Vision::ICupDetector.

MockCupDetector& HLR::Vision::MockCupDetector::operator= ( const MockCupDetector cup_detector)
default

Default assignment opreator.

Parameters
cup_detector
Returns
MockCupDetector&
MockCupDetector& HLR::Vision::MockCupDetector::operator= ( MockCupDetector &&  cup_detector)
default

Default move assignment operator.

Parameters
cup_detector
Returns
MockCupDetector&

The documentation for this class was generated from the following file: