CARLA
RegionOfInterest.h
Go to the documentation of this file.
1 // Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 /*!
16  * @file RegionOfInterest.h
17  * This header file contains the declaration of the described types in the IDL file.
18  *
19  * This file was generated by the tool gen.
20  */
21 
22 #ifndef _FAST_DDS_GENERATED_SENSOR_MSGS_MSG_REGIONOFINTEREST_H_
23 #define _FAST_DDS_GENERATED_SENSOR_MSGS_MSG_REGIONOFINTEREST_H_
24 
25 #include <fastrtps/utils/fixed_size_string.hpp>
26 
27 #include <stdint.h>
28 #include <array>
29 #include <string>
30 #include <vector>
31 #include <map>
32 #include <bitset>
33 
34 #if defined(_WIN32)
35 #if defined(EPROSIMA_USER_DLL_EXPORT)
36 #define eProsima_user_DllExport __declspec( dllexport )
37 #else
38 #define eProsima_user_DllExport
39 #endif // EPROSIMA_USER_DLL_EXPORT
40 #else
41 #define eProsima_user_DllExport
42 #endif // _WIN32
43 
44 #if defined(_WIN32)
45 #if defined(EPROSIMA_USER_DLL_EXPORT)
46 #if defined(REGIONOFINTEREST_SOURCE)
47 #define REGIONOFINTEREST_DllAPI __declspec( dllexport )
48 #else
49 #define REGIONOFINTEREST_DllAPI __declspec( dllimport )
50 #endif // REGIONOFINTEREST_SOURCE
51 #else
52 #define REGIONOFINTEREST_DllAPI
53 #endif // EPROSIMA_USER_DLL_EXPORT
54 #else
55 #define REGIONOFINTEREST_DllAPI
56 #endif // _WIN32
57 
58 namespace eprosima {
59 namespace fastcdr {
60 class Cdr;
61 } // namespace fastcdr
62 } // namespace eprosima
63 
64 namespace sensor_msgs {
65  namespace msg {
66  /*!
67  * @brief This class represents the structure RegionOfInterest defined by the user in the IDL file.
68  * @ingroup RegionOfInterest
69  */
71  {
72  public:
73 
74  /*!
75  * @brief Default constructor.
76  */
78 
79  /*!
80  * @brief Default destructor.
81  */
82  eProsima_user_DllExport ~RegionOfInterest();
83 
84  /*!
85  * @brief Copy constructor.
86  * @param x Reference to the object sensor_msgs::msg::RegionOfInterest that will be copied.
87  */
88  eProsima_user_DllExport RegionOfInterest(
89  const RegionOfInterest& x);
90 
91  /*!
92  * @brief Move constructor.
93  * @param x Reference to the object sensor_msgs::msg::RegionOfInterest that will be copied.
94  */
95  eProsima_user_DllExport RegionOfInterest(
96  RegionOfInterest&& x) noexcept;
97 
98  /*!
99  * @brief Copy assignment.
100  * @param x Reference to the object sensor_msgs::msg::RegionOfInterest that will be copied.
101  */
102  eProsima_user_DllExport RegionOfInterest& operator =(
103  const RegionOfInterest& x);
104 
105  /*!
106  * @brief Move assignment.
107  * @param x Reference to the object sensor_msgs::msg::RegionOfInterest that will be copied.
108  */
109  eProsima_user_DllExport RegionOfInterest& operator =(
110  RegionOfInterest&& x) noexcept;
111 
112  /*!
113  * @brief Comparison operator.
114  * @param x sensor_msgs::msg::RegionOfInterest object to compare.
115  */
117  const RegionOfInterest& x) const;
118 
119  /*!
120  * @brief Comparison operator.
121  * @param x sensor_msgs::msg::RegionOfInterest object to compare.
122  */
124  const RegionOfInterest& x) const;
125 
126  /*!
127  * @brief This function sets a value in member x_offset
128  * @param _x_offset New value for member x_offset
129  */
130  eProsima_user_DllExport void x_offset(
131  uint32_t _x_offset);
132 
133  /*!
134  * @brief This function returns the value of member x_offset
135  * @return Value of member x_offset
136  */
137  eProsima_user_DllExport uint32_t x_offset() const;
138 
139  /*!
140  * @brief This function returns a reference to member x_offset
141  * @return Reference to member x_offset
142  */
143  eProsima_user_DllExport uint32_t& x_offset();
144 
145  /*!
146  * @brief This function sets a value in member y_offset
147  * @param _y_offset New value for member y_offset
148  */
149  eProsima_user_DllExport void y_offset(
150  uint32_t _y_offset);
151 
152  /*!
153  * @brief This function returns the value of member y_offset
154  * @return Value of member y_offset
155  */
156  eProsima_user_DllExport uint32_t y_offset() const;
157 
158  /*!
159  * @brief This function returns a reference to member y_offset
160  * @return Reference to member y_offset
161  */
162  eProsima_user_DllExport uint32_t& y_offset();
163 
164  /*!
165  * @brief This function sets a value in member height
166  * @param _height New value for member height
167  */
168  eProsima_user_DllExport void height(
169  uint32_t _height);
170 
171  /*!
172  * @brief This function returns the value of member height
173  * @return Value of member height
174  */
175  eProsima_user_DllExport uint32_t height() const;
176 
177  /*!
178  * @brief This function returns a reference to member height
179  * @return Reference to member height
180  */
181  eProsima_user_DllExport uint32_t& height();
182 
183  /*!
184  * @brief This function sets a value in member width
185  * @param _width New value for member width
186  */
187  eProsima_user_DllExport void width(
188  uint32_t _width);
189 
190  /*!
191  * @brief This function returns the value of member width
192  * @return Value of member width
193  */
194  eProsima_user_DllExport uint32_t width() const;
195 
196  /*!
197  * @brief This function returns a reference to member width
198  * @return Reference to member width
199  */
200  eProsima_user_DllExport uint32_t& width();
201 
202  /*!
203  * @brief This function sets a value in member do_rectify
204  * @param _do_rectify New value for member do_rectify
205  */
206  eProsima_user_DllExport void do_rectify(
207  bool _do_rectify);
208 
209  /*!
210  * @brief This function returns the value of member do_rectify
211  * @return Value of member do_rectify
212  */
213  eProsima_user_DllExport bool do_rectify() const;
214 
215  /*!
216  * @brief This function returns a reference to member do_rectify
217  * @return Reference to member do_rectify
218  */
219  eProsima_user_DllExport bool& do_rectify();
220 
221 
222  /*!
223  * @brief This function returns the maximum serialized size of an object
224  * depending on the buffer alignment.
225  * @param current_alignment Buffer alignment.
226  * @return Maximum serialized size.
227  */
228  eProsima_user_DllExport static size_t getMaxCdrSerializedSize(
229  size_t current_alignment = 0);
230 
231  /*!
232  * @brief This function returns the serialized size of a data depending on the buffer alignment.
233  * @param data Data which is calculated its serialized size.
234  * @param current_alignment Buffer alignment.
235  * @return Serialized size.
236  */
237  eProsima_user_DllExport static size_t getCdrSerializedSize(
239  size_t current_alignment = 0);
240 
241  /*!
242  * @brief This function serializes an object using CDR serialization.
243  * @param cdr CDR serialization object.
244  */
245  eProsima_user_DllExport void serialize(
246  eprosima::fastcdr::Cdr& cdr) const;
247 
248  /*!
249  * @brief This function deserializes an object using CDR serialization.
250  * @param cdr CDR serialization object.
251  */
252  eProsima_user_DllExport void deserialize(
253  eprosima::fastcdr::Cdr& cdr);
254 
255  /*!
256  * @brief This function returns the maximum serialized size of the Key of an object
257  * depending on the buffer alignment.
258  * @param current_alignment Buffer alignment.
259  * @return Maximum serialized size.
260  */
261  eProsima_user_DllExport static size_t getKeyMaxCdrSerializedSize(
262  size_t current_alignment = 0);
263 
264  /*!
265  * @brief This function tells you if the Key has been defined for this type
266  */
267  eProsima_user_DllExport static bool isKeyDefined();
268 
269  /*!
270  * @brief This function serializes the key members of an object using CDR serialization.
271  * @param cdr CDR serialization object.
272  */
273  eProsima_user_DllExport void serializeKey(
274  eprosima::fastcdr::Cdr& cdr) const;
275 
276  private:
277  uint32_t m_x_offset;
278  uint32_t m_y_offset;
279  uint32_t m_height;
280  uint32_t m_width;
282  };
283  } // namespace msg
284 } // namespace sensor_msgs
285 
286 #endif // _FAST_DDS_GENERATED_SENSOR_MSGS_MSG_REGIONOFINTEREST_H_
bool operator==(const Waypoint &lhs, const Waypoint &rhs)
bool operator!=(const Waypoint &lhs, const Waypoint &rhs)
This class represents the structure RegionOfInterest defined by the user in the IDL file...
#define eProsima_user_DllExport