YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
LaserScan2D.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_LASERSCAN2D_H
12#define YARP_THRIFT_GENERATOR_STRUCT_LASERSCAN2D_H
13
14#include <yarp/dev/api.h>
15
16#include <yarp/os/Wire.h>
18#include <yarp/sig/Vector.h>
19
20namespace yarp::dev {
21
24{
25public:
26 // Fields
30 double angle_min{0.0};
34 double angle_max{0.0};
38 double range_min{0.0};
42 double range_max{0.0};
50 std::int32_t status{3};
51
52 // Default constructor
53 LaserScan2D() = default;
54
55 // Constructor with field values
56 LaserScan2D(const double angle_min,
57 const double angle_max,
58 const double range_min,
59 const double range_max,
60 const yarp::sig::Vector& scans,
61 const std::int32_t status);
62
63 // Read structure on a Wire
64 bool read(yarp::os::idl::WireReader& reader) override;
65
66 // Read structure on a Connection
67 bool read(yarp::os::ConnectionReader& connection) override;
68
69 // Write structure on a Wire
70 bool write(const yarp::os::idl::WireWriter& writer) const override;
71
72 // Write structure on a Connection
73 bool write(yarp::os::ConnectionWriter& connection) const override;
74
75 // Convert to a printable string
76 std::string toString() const;
77
78 // If you want to serialize this class without nesting, use this helper
80
81private:
82 // read/write angle_min field
83 bool read_angle_min(yarp::os::idl::WireReader& reader);
84 bool write_angle_min(const yarp::os::idl::WireWriter& writer) const;
85 bool nested_read_angle_min(yarp::os::idl::WireReader& reader);
86 bool nested_write_angle_min(const yarp::os::idl::WireWriter& writer) const;
87
88 // read/write angle_max field
89 bool read_angle_max(yarp::os::idl::WireReader& reader);
90 bool write_angle_max(const yarp::os::idl::WireWriter& writer) const;
91 bool nested_read_angle_max(yarp::os::idl::WireReader& reader);
92 bool nested_write_angle_max(const yarp::os::idl::WireWriter& writer) const;
93
94 // read/write range_min field
95 bool read_range_min(yarp::os::idl::WireReader& reader);
96 bool write_range_min(const yarp::os::idl::WireWriter& writer) const;
97 bool nested_read_range_min(yarp::os::idl::WireReader& reader);
98 bool nested_write_range_min(const yarp::os::idl::WireWriter& writer) const;
99
100 // read/write range_max field
101 bool read_range_max(yarp::os::idl::WireReader& reader);
102 bool write_range_max(const yarp::os::idl::WireWriter& writer) const;
103 bool nested_read_range_max(yarp::os::idl::WireReader& reader);
104 bool nested_write_range_max(const yarp::os::idl::WireWriter& writer) const;
105
106 // read/write scans field
107 bool read_scans(yarp::os::idl::WireReader& reader);
108 bool write_scans(const yarp::os::idl::WireWriter& writer) const;
109 bool nested_read_scans(yarp::os::idl::WireReader& reader);
110 bool nested_write_scans(const yarp::os::idl::WireWriter& writer) const;
111
112 // read/write status field
113 bool read_status(yarp::os::idl::WireReader& reader);
114 bool write_status(const yarp::os::idl::WireWriter& writer) const;
115 bool nested_read_status(yarp::os::idl::WireReader& reader);
116 bool nested_write_status(const yarp::os::idl::WireWriter& writer) const;
117};
118
119} // namespace yarp::dev
120
121#endif // YARP_THRIFT_GENERATOR_STRUCT_LASERSCAN2D_H
std::string toString(const T &value)
convert an arbitrary type to string.
contains the definition of a Vector type
yarp::os::idl::Unwrapped< LaserScan2D > unwrapped
Definition LaserScan2D.h:79
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