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