YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
Map2DObjectData.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_MAP2DOBJECTDATA_H
12#define YARP_THRIFT_GENERATOR_STRUCT_MAP2DOBJECTDATA_H
13
14#include <yarp/dev/api.h>
15
16#include <yarp/os/Wire.h>
18
19namespace yarp::dev {
20
23{
24public:
25 // Fields
29 std::string map_id{};
33 double x{0.0};
37 double y{0.0};
41 double z{0.0};
45 double roll{0.0};
49 double pitch{0.0};
53 double yaw{0.0};
57 std::string description{};
58
59public:
60 // Default constructor
61 Map2DObjectData() = default;
62
63 // Constructor with field values
64 Map2DObjectData(const std::string& map_id,
65 const double x,
66 const double y,
67 const double z,
68 const double roll,
69 const double pitch,
70 const double yaw,
71 const std::string& description);
72
73 // Read structure on a Wire
74 bool read(yarp::os::idl::WireReader& reader) override;
75
76 // Read structure on a Connection
77 bool read(yarp::os::ConnectionReader& connection) override;
78
79 // Write structure on a Wire
80 bool write(const yarp::os::idl::WireWriter& writer) const override;
81
82 // Write structure on a Connection
83 bool write(yarp::os::ConnectionWriter& connection) const override;
84
85 // Convert to a printable string
86 std::string toString() const;
87
88 // If you want to serialize this class without nesting, use this helper
90
91private:
92 // read/write map_id field
93 bool read_map_id(yarp::os::idl::WireReader& reader);
94 bool write_map_id(const yarp::os::idl::WireWriter& writer) const;
95 bool nested_read_map_id(yarp::os::idl::WireReader& reader);
96 bool nested_write_map_id(const yarp::os::idl::WireWriter& writer) const;
97
98 // read/write x field
99 bool read_x(yarp::os::idl::WireReader& reader);
100 bool write_x(const yarp::os::idl::WireWriter& writer) const;
101 bool nested_read_x(yarp::os::idl::WireReader& reader);
102 bool nested_write_x(const yarp::os::idl::WireWriter& writer) const;
103
104 // read/write y field
105 bool read_y(yarp::os::idl::WireReader& reader);
106 bool write_y(const yarp::os::idl::WireWriter& writer) const;
107 bool nested_read_y(yarp::os::idl::WireReader& reader);
108 bool nested_write_y(const yarp::os::idl::WireWriter& writer) const;
109
110 // read/write z field
111 bool read_z(yarp::os::idl::WireReader& reader);
112 bool write_z(const yarp::os::idl::WireWriter& writer) const;
113 bool nested_read_z(yarp::os::idl::WireReader& reader);
114 bool nested_write_z(const yarp::os::idl::WireWriter& writer) const;
115
116 // read/write roll field
117 bool read_roll(yarp::os::idl::WireReader& reader);
118 bool write_roll(const yarp::os::idl::WireWriter& writer) const;
119 bool nested_read_roll(yarp::os::idl::WireReader& reader);
120 bool nested_write_roll(const yarp::os::idl::WireWriter& writer) const;
121
122 // read/write pitch field
123 bool read_pitch(yarp::os::idl::WireReader& reader);
124 bool write_pitch(const yarp::os::idl::WireWriter& writer) const;
125 bool nested_read_pitch(yarp::os::idl::WireReader& reader);
126 bool nested_write_pitch(const yarp::os::idl::WireWriter& writer) const;
127
128 // read/write yaw field
129 bool read_yaw(yarp::os::idl::WireReader& reader);
130 bool write_yaw(const yarp::os::idl::WireWriter& writer) const;
131 bool nested_read_yaw(yarp::os::idl::WireReader& reader);
132 bool nested_write_yaw(const yarp::os::idl::WireWriter& writer) const;
133
134 // read/write description field
135 bool read_description(yarp::os::idl::WireReader& reader);
136 bool write_description(const yarp::os::idl::WireWriter& writer) const;
137 bool nested_read_description(yarp::os::idl::WireReader& reader);
138 bool nested_write_description(const yarp::os::idl::WireWriter& writer) const;
139};
140
141} // namespace yarp::dev
142
143#endif // YARP_THRIFT_GENERATOR_STRUCT_MAP2DOBJECTDATA_H
std::string toString(const T &value)
convert an arbitrary type to string.
yarp::os::idl::Unwrapped< Map2DObjectData > unwrapped
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
For streams capable of holding different kinds of content, check what they actually have.
#define YARP_dev_API
Definition api.h:18