YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
DistortionModelData.h
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#ifndef YARP_THRIFT_GENERATOR_STRUCT_DISTORTIONMODELDATA_H
12#define YARP_THRIFT_GENERATOR_STRUCT_DISTORTIONMODELDATA_H
13
14#include <yarp/sig/api.h>
15
16#include <yarp/os/Wire.h>
19
20namespace yarp::sig {
21
24{
25public:
26 // Fields
27 double k1{0.0};
28 double k2{0.0};
29 double k3{0.0};
30 double t1{0.0};
31 double t2{0.0};
33
34public:
35 // Default constructor
37
38 // Constructor with field values
39 DistortionModelData(const double k1,
40 const double k2,
41 const double k3,
42 const double t1,
43 const double t2,
44 const CameraDistortionType type);
45
46 // Read structure on a Wire
47 bool read(yarp::os::idl::WireReader& reader) override;
48
49 // Read structure on a Connection
50 bool read(yarp::os::ConnectionReader& connection) override;
51
52 // Write structure on a Wire
53 bool write(const yarp::os::idl::WireWriter& writer) const override;
54
55 // Write structure on a Connection
56 bool write(yarp::os::ConnectionWriter& connection) const override;
57
58 // Convert to a printable string
59 std::string toString() const;
60
61 // If you want to serialize this class without nesting, use this helper
63
64private:
65 // read/write k1 field
66 bool read_k1(yarp::os::idl::WireReader& reader);
67 bool write_k1(const yarp::os::idl::WireWriter& writer) const;
68 bool nested_read_k1(yarp::os::idl::WireReader& reader);
69 bool nested_write_k1(const yarp::os::idl::WireWriter& writer) const;
70
71 // read/write k2 field
72 bool read_k2(yarp::os::idl::WireReader& reader);
73 bool write_k2(const yarp::os::idl::WireWriter& writer) const;
74 bool nested_read_k2(yarp::os::idl::WireReader& reader);
75 bool nested_write_k2(const yarp::os::idl::WireWriter& writer) const;
76
77 // read/write k3 field
78 bool read_k3(yarp::os::idl::WireReader& reader);
79 bool write_k3(const yarp::os::idl::WireWriter& writer) const;
80 bool nested_read_k3(yarp::os::idl::WireReader& reader);
81 bool nested_write_k3(const yarp::os::idl::WireWriter& writer) const;
82
83 // read/write t1 field
84 bool read_t1(yarp::os::idl::WireReader& reader);
85 bool write_t1(const yarp::os::idl::WireWriter& writer) const;
86 bool nested_read_t1(yarp::os::idl::WireReader& reader);
87 bool nested_write_t1(const yarp::os::idl::WireWriter& writer) const;
88
89 // read/write t2 field
90 bool read_t2(yarp::os::idl::WireReader& reader);
91 bool write_t2(const yarp::os::idl::WireWriter& writer) const;
92 bool nested_read_t2(yarp::os::idl::WireReader& reader);
93 bool nested_write_t2(const yarp::os::idl::WireWriter& writer) const;
94
95 // read/write type field
96 bool read_type(yarp::os::idl::WireReader& reader);
97 bool write_type(const yarp::os::idl::WireWriter& writer) const;
98 bool nested_read_type(yarp::os::idl::WireReader& reader);
99 bool nested_write_type(const yarp::os::idl::WireWriter& writer) const;
100};
101
102} // namespace yarp::sig
103
104#endif // YARP_THRIFT_GENERATOR_STRUCT_DISTORTIONMODELDATA_H
std::string toString(const T &value)
convert an arbitrary type to string.
An interface for reading from a network connection.
An interface for writing to a network connection.
A "tamed" Portable, that promises to serialize itself in an IDL-friendly way.
IDL-friendly connection reader.
Definition WireReader.h:27
IDL-friendly connection writer.
Definition WireWriter.h:28
yarp::os::idl::Unwrapped< DistortionModelData > unwrapped
#define YARP_sig_API
Definition api.h:18