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