YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
IntrinsicParamsData.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_INTRINSICPARAMSDATA_H
12#define YARP_THRIFT_GENERATOR_STRUCT_INTRINSICPARAMSDATA_H
13
14#include <yarp/sig/api.h>
15
16#include <yarp/os/Wire.h>
19#include <yarp/sig/Vector.h>
20
21namespace yarp::sig {
22
25{
26public:
27 // Fields
28 double physFocalLength{0.0};
29 double principalPointX{0.0};
30 double principalPointY{0.0};
31 double focalLengthX{0.0};
32 double focalLengthY{0.0};
34 yarp::sig::Vector rectificationMatrix3X3{};
35 bool isOptional{false};
36
37public:
38 // Default constructor
40
41 // Constructor with field values
42 IntrinsicParamsData(const double physFocalLength,
43 const double principalPointX,
44 const double principalPointY,
45 const double focalLengthX,
46 const double focalLengthY,
47 const yarp::sig::DistortionModelData& distortionModel,
48 const yarp::sig::Vector& rectificationMatrix3X3,
49 const bool isOptional);
50
51 // Read structure on a Wire
52 bool read(yarp::os::idl::WireReader& reader) override;
53
54 // Read structure on a Connection
55 bool read(yarp::os::ConnectionReader& connection) override;
56
57 // Write structure on a Wire
58 bool write(const yarp::os::idl::WireWriter& writer) const override;
59
60 // Write structure on a Connection
61 bool write(yarp::os::ConnectionWriter& connection) const override;
62
63 // Convert to a printable string
64 std::string toString() const;
65
66 // If you want to serialize this class without nesting, use this helper
68
69private:
70 // read/write physFocalLength field
71 bool read_physFocalLength(yarp::os::idl::WireReader& reader);
72 bool write_physFocalLength(const yarp::os::idl::WireWriter& writer) const;
73 bool nested_read_physFocalLength(yarp::os::idl::WireReader& reader);
74 bool nested_write_physFocalLength(const yarp::os::idl::WireWriter& writer) const;
75
76 // read/write principalPointX field
77 bool read_principalPointX(yarp::os::idl::WireReader& reader);
78 bool write_principalPointX(const yarp::os::idl::WireWriter& writer) const;
79 bool nested_read_principalPointX(yarp::os::idl::WireReader& reader);
80 bool nested_write_principalPointX(const yarp::os::idl::WireWriter& writer) const;
81
82 // read/write principalPointY field
83 bool read_principalPointY(yarp::os::idl::WireReader& reader);
84 bool write_principalPointY(const yarp::os::idl::WireWriter& writer) const;
85 bool nested_read_principalPointY(yarp::os::idl::WireReader& reader);
86 bool nested_write_principalPointY(const yarp::os::idl::WireWriter& writer) const;
87
88 // read/write focalLengthX field
89 bool read_focalLengthX(yarp::os::idl::WireReader& reader);
90 bool write_focalLengthX(const yarp::os::idl::WireWriter& writer) const;
91 bool nested_read_focalLengthX(yarp::os::idl::WireReader& reader);
92 bool nested_write_focalLengthX(const yarp::os::idl::WireWriter& writer) const;
93
94 // read/write focalLengthY field
95 bool read_focalLengthY(yarp::os::idl::WireReader& reader);
96 bool write_focalLengthY(const yarp::os::idl::WireWriter& writer) const;
97 bool nested_read_focalLengthY(yarp::os::idl::WireReader& reader);
98 bool nested_write_focalLengthY(const yarp::os::idl::WireWriter& writer) const;
99
100 // read/write distortionModel field
101 bool read_distortionModel(yarp::os::idl::WireReader& reader);
102 bool write_distortionModel(const yarp::os::idl::WireWriter& writer) const;
103 bool nested_read_distortionModel(yarp::os::idl::WireReader& reader);
104 bool nested_write_distortionModel(const yarp::os::idl::WireWriter& writer) const;
105
106 // read/write rectificationMatrix3X3 field
107 bool read_rectificationMatrix3X3(yarp::os::idl::WireReader& reader);
108 bool write_rectificationMatrix3X3(const yarp::os::idl::WireWriter& writer) const;
109 bool nested_read_rectificationMatrix3X3(yarp::os::idl::WireReader& reader);
110 bool nested_write_rectificationMatrix3X3(const yarp::os::idl::WireWriter& writer) const;
111
112 // read/write isOptional field
113 bool read_isOptional(yarp::os::idl::WireReader& reader);
114 bool write_isOptional(const yarp::os::idl::WireWriter& writer) const;
115 bool nested_read_isOptional(yarp::os::idl::WireReader& reader);
116 bool nested_write_isOptional(const yarp::os::idl::WireWriter& writer) const;
117};
118
119} // namespace yarp::sig
120
121#endif // YARP_THRIFT_GENERATOR_STRUCT_INTRINSICPARAMSDATA_H
std::string toString(const T &value)
convert an arbitrary type to string.
contains the definition of a Vector type
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< IntrinsicParamsData > unwrapped
#define YARP_sig_API
Definition api.h:18