YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
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 (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_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
63public:
64 // Default constructor
65 OdometryData() = default;
66
67 // Constructor with field values
68 OdometryData(const double odom_x,
69 const double odom_y,
70 const double odom_theta,
71 const double base_vel_x,
72 const double base_vel_y,
73 const double base_vel_theta,
74 const double odom_vel_x,
75 const double odom_vel_y,
76 const double odom_vel_theta);
77
78 // Read structure on a Wire
79 bool read(yarp::os::idl::WireReader& reader) override;
80
81 // Read structure on a Connection
82 bool read(yarp::os::ConnectionReader& connection) override;
83
84 // Write structure on a Wire
85 bool write(const yarp::os::idl::WireWriter& writer) const override;
86
87 // Write structure on a Connection
88 bool write(yarp::os::ConnectionWriter& connection) const override;
89
90 // Convert to a printable string
91 std::string toString() const;
92
93 // If you want to serialize this class without nesting, use this helper
95
96private:
97 // read/write odom_x field
98 bool read_odom_x(yarp::os::idl::WireReader& reader);
99 bool write_odom_x(const yarp::os::idl::WireWriter& writer) const;
100 bool nested_read_odom_x(yarp::os::idl::WireReader& reader);
101 bool nested_write_odom_x(const yarp::os::idl::WireWriter& writer) const;
102
103 // read/write odom_y field
104 bool read_odom_y(yarp::os::idl::WireReader& reader);
105 bool write_odom_y(const yarp::os::idl::WireWriter& writer) const;
106 bool nested_read_odom_y(yarp::os::idl::WireReader& reader);
107 bool nested_write_odom_y(const yarp::os::idl::WireWriter& writer) const;
108
109 // read/write odom_theta field
110 bool read_odom_theta(yarp::os::idl::WireReader& reader);
111 bool write_odom_theta(const yarp::os::idl::WireWriter& writer) const;
112 bool nested_read_odom_theta(yarp::os::idl::WireReader& reader);
113 bool nested_write_odom_theta(const yarp::os::idl::WireWriter& writer) const;
114
115 // read/write base_vel_x field
116 bool read_base_vel_x(yarp::os::idl::WireReader& reader);
117 bool write_base_vel_x(const yarp::os::idl::WireWriter& writer) const;
118 bool nested_read_base_vel_x(yarp::os::idl::WireReader& reader);
119 bool nested_write_base_vel_x(const yarp::os::idl::WireWriter& writer) const;
120
121 // read/write base_vel_y field
122 bool read_base_vel_y(yarp::os::idl::WireReader& reader);
123 bool write_base_vel_y(const yarp::os::idl::WireWriter& writer) const;
124 bool nested_read_base_vel_y(yarp::os::idl::WireReader& reader);
125 bool nested_write_base_vel_y(const yarp::os::idl::WireWriter& writer) const;
126
127 // read/write base_vel_theta field
128 bool read_base_vel_theta(yarp::os::idl::WireReader& reader);
129 bool write_base_vel_theta(const yarp::os::idl::WireWriter& writer) const;
130 bool nested_read_base_vel_theta(yarp::os::idl::WireReader& reader);
131 bool nested_write_base_vel_theta(const yarp::os::idl::WireWriter& writer) const;
132
133 // read/write odom_vel_x field
134 bool read_odom_vel_x(yarp::os::idl::WireReader& reader);
135 bool write_odom_vel_x(const yarp::os::idl::WireWriter& writer) const;
136 bool nested_read_odom_vel_x(yarp::os::idl::WireReader& reader);
137 bool nested_write_odom_vel_x(const yarp::os::idl::WireWriter& writer) const;
138
139 // read/write odom_vel_y field
140 bool read_odom_vel_y(yarp::os::idl::WireReader& reader);
141 bool write_odom_vel_y(const yarp::os::idl::WireWriter& writer) const;
142 bool nested_read_odom_vel_y(yarp::os::idl::WireReader& reader);
143 bool nested_write_odom_vel_y(const yarp::os::idl::WireWriter& writer) const;
144
145 // read/write odom_vel_theta field
146 bool read_odom_vel_theta(yarp::os::idl::WireReader& reader);
147 bool write_odom_vel_theta(const yarp::os::idl::WireWriter& writer) const;
148 bool nested_read_odom_vel_theta(yarp::os::idl::WireReader& reader);
149 bool nested_write_odom_vel_theta(const yarp::os::idl::WireWriter& writer) const;
150};
151
152} // namespace yarp::dev
153
154#endif // YARP_THRIFT_GENERATOR_STRUCT_ODOMETRYDATA_H
std::string toString(const T &value)
convert an arbitrary type to string.
yarp::os::idl::Unwrapped< OdometryData > 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