YARP
Yet Another Robot Platform
Loading...
Searching...
No Matches
CameraDistortionType.cpp
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3
* SPDX-License-Identifier: BSD-3-Clause
4
*/
5
6
// Autogenerated by Thrift (based on compiler 0.14.1-yarped)
7
// yarpidl_thrift version 2.0 - 11/11/2026
8
// This is an automatically generated file.
9
// It could get re-generated if the ALLOW_IDL_GENERATION flag is on.
10
11
#include <
yarp/os/Wire.h
>
12
#include <
yarp/os/LogStream.h
>
13
#include <
yarp/os/idl/WireTypes.h
>
14
#include <
yarp/sig/CameraDistortionType.h
>
15
16
namespace
yarp::sig
{
17
18
int32_t
CameraDistortionTypeConverter::fromString
(
const
std::string& input)
19
{
20
if
(input==
"YARP_DISTORTION_NONE"
) {
21
return
static_cast<
int32_t
>
(
YARP_DISTORTION_NONE
);
22
}
23
if
(input==
"YARP_PLUMB_BOB"
) {
24
return
static_cast<
int32_t
>
(
YARP_PLUMB_BOB
);
25
}
26
if
(input==
"YARP_FISH_EYE"
) {
27
return
static_cast<
int32_t
>
(
YARP_FISH_EYE
);
28
}
29
if
(input==
"YARP_UNSUPPORTED"
) {
30
return
static_cast<
int32_t
>
(
YARP_UNSUPPORTED
);
31
}
32
yError
() <<
"CameraDistortionTypeConverter: invalid fromString() conversion for input:"
<< input;
33
return
-1;
34
}
35
36
std::string
CameraDistortionTypeConverter::toString
(int32_t input)
37
{
38
switch
(
static_cast<
CameraDistortionType
>
(input)) {
39
case
YARP_DISTORTION_NONE
:
40
return
"YARP_DISTORTION_NONE"
;
41
case
YARP_PLUMB_BOB
:
42
return
"YARP_PLUMB_BOB"
;
43
case
YARP_FISH_EYE
:
44
return
"YARP_FISH_EYE"
;
45
case
YARP_UNSUPPORTED
:
46
return
"YARP_UNSUPPORTED"
;
47
}
48
yError
() <<
"CameraDistortionTypeConverter: invalid toString() conversion for input:"
<< input;
49
return
""
;
50
}
51
52
}
// namespace yarp::sig
CameraDistortionType.h
LogStream.h
yError
#define yError(...)
Definition
Log.h:361
WireTypes.h
Wire.h
yarp::sig::CameraDistortionTypeConverter::fromString
static int32_t fromString(const std::string &input)
Definition
CameraDistortionType.cpp:18
yarp::sig::CameraDistortionTypeConverter::toString
static std::string toString(int32_t input)
Definition
CameraDistortionType.cpp:36
yarp::sig
Definition
audioBufferSizeData.cpp:13
yarp::sig::CameraDistortionType
CameraDistortionType
Definition
CameraDistortionType.h:22
yarp::sig::YARP_DISTORTION_NONE
@ YARP_DISTORTION_NONE
Definition
CameraDistortionType.h:23
yarp::sig::YARP_PLUMB_BOB
@ YARP_PLUMB_BOB
Definition
CameraDistortionType.h:24
yarp::sig::YARP_UNSUPPORTED
@ YARP_UNSUPPORTED
Definition
CameraDistortionType.h:26
yarp::sig::YARP_FISH_EYE
@ YARP_FISH_EYE
Definition
CameraDistortionType.h:25
YARP
4.0.2+169-20261113.4+git2cc772dc6
src
libYARP_sig
src
idl_generated_code
yarp
sig
CameraDistortionType.cpp
Generated on Sun Nov 15 2026 02:12:11 for YARP by
1.9.8