YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
IFrameGrabberControlsTest.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2025-2025 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6#ifndef IFRAMEGRABBERCONTROLSTEST_H
7#define IFRAMEGRABBERCONTROLSTEST_H
8
9#include <array>
11#include <catch2/catch_amalgamated.hpp>
12
13using namespace yarp::dev;
14using namespace yarp::os;
15
16namespace yarp::dev::tests
17{
19 {
21
22 // Check busType2String()
23 {
25 std::string s = ictl->busType2String(typeb);
26 }
27 // Check getActive()
28 {
29 bool active = false;
31 }
32
33 // Check getCameraDescription()
34 {
36 CHECK(ictl->getCameraDescription(camera));
37 }
38
39 // Check getFeature()
40 {
41 double val = 0;
43 }
44
45 // Check getMode()
46 {
49 }
50
51 // Check hasAuto()
52 {
53 bool bauto;
55 }
56
57 // Check hasFeature()
58 {
59 bool bfeat;
61 }
62
63 // Check hasManual()
64 {
65 bool bman;
67 }
68
69 // Check hasOnePush()
70 {
71 bool bpush;
73 }
74
75 // Check hasOnOff()
76 {
77 bool bon;
79 }
80
81 // Check setFeature()
82 {
85 }
86
87 // Check setMode()
88 {
91 }
92
93 // Check setOnePush()
94 {
96 CHECK(ictl->setOnePush(feat));
97 }
98
99 // Check toFeatureMode()
100 {
101 bool autob = true;
102 CHECK(ictl->toFeatureMode(autob) != FeatureMode::MODE_UNKNOWN);
103 }
104 }
105}
106
107#endif
CameraDescriptor camera
FeatureMode mode
Control interface for frame grabber devices.
A mini-server for performing network communication in the background.
void exec_IFrameGrabberControls_test_1(IFrameGrabberControls *ictl)
For streams capable of holding different kinds of content, check what they actually have.
An interface to the operating system, including Port based communication.