YARP
Yet Another Robot Platform
OdometryData.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 Compiler (0.14.1-yarped)
7//
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_ODOMETRYDATA_H
12#define YARP_THRIFT_GENERATOR_STRUCT_ODOMETRYDATA_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 double odom_x{0.0};
33 double odom_y{0.0};
37 double odom_theta{0.0};
41 double base_vel_x{0.0};
45 double base_vel_y{0.0};
49 double base_vel_theta{0.0};
53 double odom_vel_x{0.0};
57 double odom_vel_y{0.0};
61 double odom_vel_theta{0.0};
62
63 // Default constructor
64 OdometryData() = default;
65
66 // Constructor with field values
67 OdometryData(const double odom_x,
68 const double odom_y,
69 const double odom_theta,
70 const double base_vel_x,
71 const double base_vel_y,
72 const double base_vel_theta,
73 const double odom_vel_x,
74 const double odom_vel_y,
75 const double odom_vel_theta);
76
77 // Read structure on a Wire
78 bool read(yarp::os::idl::WireReader& reader) override;
79
80 // Read structure on a Connection
81 bool read(yarp::os::ConnectionReader& connection) override;
82
83 // Write structure on a Wire
84 bool write(const yarp::os::idl::WireWriter& writer) const override;
85
86 // Write structure on a Connection
87 bool write(yarp::os::ConnectionWriter& connection) const override;
88
89 // Convert to a printable string
90 std::string toString() const;
91
92 // If you want to serialize this class without nesting, use this helper
94
95private:
96 // read/write odom_x field
97 bool read_odom_x(yarp::os::idl::WireReader& reader);
98 bool write_odom_x(const yarp::os::idl::WireWriter& writer) const;
99 bool nested_read_odom_x(yarp::os::idl::WireReader& reader);
100 bool nested_write_odom_x(const yarp::os::idl::WireWriter& writer) const;
101
102 // read/write odom_y field
103 bool read_odom_y(yarp::os::idl::WireReader& reader);
104 bool write_odom_y(const yarp::os::idl::WireWriter& writer) const;
105 bool nested_read_odom_y(yarp::os::idl::WireReader& reader);
106 bool nested_write_odom_y(const yarp::os::idl::WireWriter& writer) const;
107
108 // read/write odom_theta field
109 bool read_odom_theta(yarp::os::idl::WireReader& reader);
110 bool write_odom_theta(const yarp::os::idl::WireWriter& writer) const;
111 bool nested_read_odom_theta(yarp::os::idl::WireReader& reader);
112 bool nested_write_odom_theta(const yarp::os::idl::WireWriter& writer) const;
113
114 // read/write base_vel_x field
115 bool read_base_vel_x(yarp::os::idl::WireReader& reader);
116 bool write_base_vel_x(const yarp::os::idl::WireWriter& writer) const;
117 bool nested_read_base_vel_x(yarp::os::idl::WireReader& reader);
118 bool nested_write_base_vel_x(const yarp::os::idl::WireWriter& writer) const;
119
120 // read/write base_vel_y field
121 bool read_base_vel_y(yarp::os::idl::WireReader& reader);
122 bool write_base_vel_y(const yarp::os::idl::WireWriter& writer) const;
123 bool nested_read_base_vel_y(yarp::os::idl::WireReader& reader);
124 bool nested_write_base_vel_y(const yarp::os::idl::WireWriter& writer) const;
125
126 // read/write base_vel_theta field
127 bool read_base_vel_theta(yarp::os::idl::WireReader& reader);
128 bool write_base_vel_theta(const yarp::os::idl::WireWriter& writer) const;
129 bool nested_read_base_vel_theta(yarp::os::idl::WireReader& reader);
130 bool nested_write_base_vel_theta(const yarp::os::idl::WireWriter& writer) const;
131
132 // read/write odom_vel_x field
133 bool read_odom_vel_x(yarp::os::idl::WireReader& reader);
134 bool write_odom_vel_x(const yarp::os::idl::WireWriter& writer) const;
135 bool nested_read_odom_vel_x(yarp::os::idl::WireReader& reader);
136 bool nested_write_odom_vel_x(const yarp::os::idl::WireWriter& writer) const;
137
138 // read/write odom_vel_y field
139 bool read_odom_vel_y(yarp::os::idl::WireReader& reader);
140 bool write_odom_vel_y(const yarp::os::idl::WireWriter& writer) const;
141 bool nested_read_odom_vel_y(yarp::os::idl::WireReader& reader);
142 bool nested_write_odom_vel_y(const yarp::os::idl::WireWriter& writer) const;
143
144 // read/write odom_vel_theta field
145 bool read_odom_vel_theta(yarp::os::idl::WireReader& reader);
146 bool write_odom_vel_theta(const yarp::os::idl::WireWriter& writer) const;
147 bool nested_read_odom_vel_theta(yarp::os::idl::WireReader& reader);
148 bool nested_write_odom_vel_theta(const yarp::os::idl::WireWriter& writer) const;
149};
150
151} // namespace yarp::dev
152
153#endif // YARP_THRIFT_GENERATOR_STRUCT_ODOMETRYDATA_H
yarp::os::idl::Unwrapped< OdometryData > unwrapped
Definition: OdometryData.h:93
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.
Definition: WirePortable.h:21
IDL-friendly connection reader.
Definition: WireReader.h:27
IDL-friendly connection writer.
Definition: WireWriter.h:28
std::string toString(const T &value)
convert an arbitrary type to string.
For streams capable of holding different kinds of content, check what they actually have.
bool read(ImageOf< PixelRgb > &dest, const std::string &src, image_fileformat format=FORMAT_ANY)
Definition: ImageFile.cpp:915
bool write(const ImageOf< PixelRgb > &src, const std::string &dest, image_fileformat format=FORMAT_PPM)
Definition: ImageFile.cpp:1091
#define YARP_dev_API
Definition: api.h:18