YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
PidUnitsData.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_PIDUNITSDATA_H
12#define YARP_THRIFT_GENERATOR_STRUCT_PIDUNITSDATA_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 units_kp{};
33 std::string units_kd{};
37 std::string units_ki{};
41 std::string units_max_int{};
45 std::string units_scale{};
49 std::string units_max_output{};
53 std::string units_offset{};
57 std::string units_stiction_up_val{};
61 std::string units_stiction_down_val{};
65 std::string units_kff{};
66
67 // Default constructor
68 PidUnitsData() = default;
69
70 // Constructor with field values
71 PidUnitsData(const std::string& units_kp,
72 const std::string& units_kd,
73 const std::string& units_ki,
74 const std::string& units_max_int,
75 const std::string& units_scale,
76 const std::string& units_max_output,
77 const std::string& units_offset,
78 const std::string& units_stiction_up_val,
79 const std::string& units_stiction_down_val,
80 const std::string& units_kff);
81
82 // Read structure on a Wire
83 bool read(yarp::os::idl::WireReader& reader) override;
84
85 // Read structure on a Connection
86 bool read(yarp::os::ConnectionReader& connection) override;
87
88 // Write structure on a Wire
89 bool write(const yarp::os::idl::WireWriter& writer) const override;
90
91 // Write structure on a Connection
92 bool write(yarp::os::ConnectionWriter& connection) const override;
93
94 // Convert to a printable string
95 std::string toString() const;
96
97 // If you want to serialize this class without nesting, use this helper
99
100private:
101 // read/write units_kp field
102 bool read_units_kp(yarp::os::idl::WireReader& reader);
103 bool write_units_kp(const yarp::os::idl::WireWriter& writer) const;
104 bool nested_read_units_kp(yarp::os::idl::WireReader& reader);
105 bool nested_write_units_kp(const yarp::os::idl::WireWriter& writer) const;
106
107 // read/write units_kd field
108 bool read_units_kd(yarp::os::idl::WireReader& reader);
109 bool write_units_kd(const yarp::os::idl::WireWriter& writer) const;
110 bool nested_read_units_kd(yarp::os::idl::WireReader& reader);
111 bool nested_write_units_kd(const yarp::os::idl::WireWriter& writer) const;
112
113 // read/write units_ki field
114 bool read_units_ki(yarp::os::idl::WireReader& reader);
115 bool write_units_ki(const yarp::os::idl::WireWriter& writer) const;
116 bool nested_read_units_ki(yarp::os::idl::WireReader& reader);
117 bool nested_write_units_ki(const yarp::os::idl::WireWriter& writer) const;
118
119 // read/write units_max_int field
120 bool read_units_max_int(yarp::os::idl::WireReader& reader);
121 bool write_units_max_int(const yarp::os::idl::WireWriter& writer) const;
122 bool nested_read_units_max_int(yarp::os::idl::WireReader& reader);
123 bool nested_write_units_max_int(const yarp::os::idl::WireWriter& writer) const;
124
125 // read/write units_scale field
126 bool read_units_scale(yarp::os::idl::WireReader& reader);
127 bool write_units_scale(const yarp::os::idl::WireWriter& writer) const;
128 bool nested_read_units_scale(yarp::os::idl::WireReader& reader);
129 bool nested_write_units_scale(const yarp::os::idl::WireWriter& writer) const;
130
131 // read/write units_max_output field
132 bool read_units_max_output(yarp::os::idl::WireReader& reader);
133 bool write_units_max_output(const yarp::os::idl::WireWriter& writer) const;
134 bool nested_read_units_max_output(yarp::os::idl::WireReader& reader);
135 bool nested_write_units_max_output(const yarp::os::idl::WireWriter& writer) const;
136
137 // read/write units_offset field
138 bool read_units_offset(yarp::os::idl::WireReader& reader);
139 bool write_units_offset(const yarp::os::idl::WireWriter& writer) const;
140 bool nested_read_units_offset(yarp::os::idl::WireReader& reader);
141 bool nested_write_units_offset(const yarp::os::idl::WireWriter& writer) const;
142
143 // read/write units_stiction_up_val field
144 bool read_units_stiction_up_val(yarp::os::idl::WireReader& reader);
145 bool write_units_stiction_up_val(const yarp::os::idl::WireWriter& writer) const;
146 bool nested_read_units_stiction_up_val(yarp::os::idl::WireReader& reader);
147 bool nested_write_units_stiction_up_val(const yarp::os::idl::WireWriter& writer) const;
148
149 // read/write units_stiction_down_val field
150 bool read_units_stiction_down_val(yarp::os::idl::WireReader& reader);
151 bool write_units_stiction_down_val(const yarp::os::idl::WireWriter& writer) const;
152 bool nested_read_units_stiction_down_val(yarp::os::idl::WireReader& reader);
153 bool nested_write_units_stiction_down_val(const yarp::os::idl::WireWriter& writer) const;
154
155 // read/write units_kff field
156 bool read_units_kff(yarp::os::idl::WireReader& reader);
157 bool write_units_kff(const yarp::os::idl::WireWriter& writer) const;
158 bool nested_read_units_kff(yarp::os::idl::WireReader& reader);
159 bool nested_write_units_kff(const yarp::os::idl::WireWriter& writer) const;
160};
161
162} // namespace yarp::dev
163
164#endif // YARP_THRIFT_GENERATOR_STRUCT_PIDUNITSDATA_H
std::string toString(const T &value)
convert an arbitrary type to string.
yarp::os::idl::Unwrapped< PidUnitsData > 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