YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
MobileBaseVelocityData.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_MOBILEBASEVELOCITYDATA_H
12#define YARP_THRIFT_GENERATOR_STRUCT_MOBILEBASEVELOCITYDATA_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 vel_x{0.0};
33 double vel_y{0.0};
37 double vel_theta{0.0};
38
39public:
40 // Default constructor
42
43 // Constructor with field values
44 MobileBaseVelocityData(const double vel_x,
45 const double vel_y,
46 const double vel_theta);
47
48 // Read structure on a Wire
49 bool read(yarp::os::idl::WireReader& reader) override;
50
51 // Read structure on a Connection
52 bool read(yarp::os::ConnectionReader& connection) override;
53
54 // Write structure on a Wire
55 bool write(const yarp::os::idl::WireWriter& writer) const override;
56
57 // Write structure on a Connection
58 bool write(yarp::os::ConnectionWriter& connection) const override;
59
60 // Convert to a printable string
61 std::string toString() const;
62
63 // If you want to serialize this class without nesting, use this helper
65
66private:
67 // read/write vel_x field
68 bool read_vel_x(yarp::os::idl::WireReader& reader);
69 bool write_vel_x(const yarp::os::idl::WireWriter& writer) const;
70 bool nested_read_vel_x(yarp::os::idl::WireReader& reader);
71 bool nested_write_vel_x(const yarp::os::idl::WireWriter& writer) const;
72
73 // read/write vel_y field
74 bool read_vel_y(yarp::os::idl::WireReader& reader);
75 bool write_vel_y(const yarp::os::idl::WireWriter& writer) const;
76 bool nested_read_vel_y(yarp::os::idl::WireReader& reader);
77 bool nested_write_vel_y(const yarp::os::idl::WireWriter& writer) const;
78
79 // read/write vel_theta field
80 bool read_vel_theta(yarp::os::idl::WireReader& reader);
81 bool write_vel_theta(const yarp::os::idl::WireWriter& writer) const;
82 bool nested_read_vel_theta(yarp::os::idl::WireReader& reader);
83 bool nested_write_vel_theta(const yarp::os::idl::WireWriter& writer) const;
84};
85
86} // namespace yarp::dev
87
88#endif // YARP_THRIFT_GENERATOR_STRUCT_MOBILEBASEVELOCITYDATA_H
std::string toString(const T &value)
convert an arbitrary type to string.
yarp::os::idl::Unwrapped< MobileBaseVelocityData > 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