CARLA
NavSatFix.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 NavSatFix.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_NAVSATFIX_H_
23 #define _FAST_DDS_GENERATED_SENSOR_MSGS_MSG_NAVSATFIX_H_
24 
25 #include "Header.h"
26 #include "NavSatStatus.h"
27 
28 #include <fastrtps/utils/fixed_size_string.hpp>
29 
30 #include <stdint.h>
31 #include <array>
32 #include <string>
33 #include <vector>
34 #include <map>
35 #include <bitset>
36 
37 #if defined(_WIN32)
38 #if defined(EPROSIMA_USER_DLL_EXPORT)
39 #define eProsima_user_DllExport __declspec( dllexport )
40 #else
41 #define eProsima_user_DllExport
42 #endif // EPROSIMA_USER_DLL_EXPORT
43 #else
44 #define eProsima_user_DllExport
45 #endif // _WIN32
46 
47 #if defined(_WIN32)
48 #if defined(EPROSIMA_USER_DLL_EXPORT)
49 #if defined(NavSatFix_SOURCE)
50 #define NavSatFix_DllAPI __declspec( dllexport )
51 #else
52 #define NavSatFix_DllAPI __declspec( dllimport )
53 #endif // NavSatFix_SOURCE
54 #else
55 #define NavSatFix_DllAPI
56 #endif // EPROSIMA_USER_DLL_EXPORT
57 #else
58 #define NavSatFix_DllAPI
59 #endif // _WIN32
60 
61 namespace eprosima {
62 namespace fastcdr {
63 class Cdr;
64 } // namespace fastcdr
65 } // namespace eprosima
66 
67 namespace sensor_msgs {
68  namespace msg {
73  typedef std::array<double, 9> sensor_msgs__NavSatFix__double_array_9;
74  /*!
75  * @brief This class represents the structure NavSatFix defined by the user in the IDL file.
76  * @ingroup NAVSATFIX
77  */
78  class NavSatFix
79  {
80  public:
81 
82  /*!
83  * @brief Default constructor.
84  */
86 
87  /*!
88  * @brief Default destructor.
89  */
90  eProsima_user_DllExport ~NavSatFix();
91 
92  /*!
93  * @brief Copy constructor.
94  * @param x Reference to the object sensor_msgs::msg::NavSatFix that will be copied.
95  */
96  eProsima_user_DllExport NavSatFix(
97  const NavSatFix& x);
98 
99  /*!
100  * @brief Move constructor.
101  * @param x Reference to the object sensor_msgs::msg::NavSatFix that will be copied.
102  */
103  eProsima_user_DllExport NavSatFix(
104  NavSatFix&& x) noexcept;
105 
106  /*!
107  * @brief Copy assignment.
108  * @param x Reference to the object sensor_msgs::msg::NavSatFix that will be copied.
109  */
110  eProsima_user_DllExport NavSatFix& operator =(
111  const NavSatFix& x);
112 
113  /*!
114  * @brief Move assignment.
115  * @param x Reference to the object sensor_msgs::msg::NavSatFix that will be copied.
116  */
117  eProsima_user_DllExport NavSatFix& operator =(
118  NavSatFix&& x) noexcept;
119 
120  /*!
121  * @brief Comparison operator.
122  * @param x sensor_msgs::msg::NavSatFix object to compare.
123  */
125  const NavSatFix& x) const;
126 
127  /*!
128  * @brief Comparison operator.
129  * @param x sensor_msgs::msg::NavSatFix object to compare.
130  */
132  const NavSatFix& x) const;
133 
134  /*!
135  * @brief This function copies the value in member header
136  * @param _header New value to be copied in member header
137  */
138  eProsima_user_DllExport void header(
139  const std_msgs::msg::Header& _header);
140 
141  /*!
142  * @brief This function moves the value in member header
143  * @param _header New value to be moved in member header
144  */
145  eProsima_user_DllExport void header(
146  std_msgs::msg::Header&& _header);
147 
148  /*!
149  * @brief This function returns a constant reference to member header
150  * @return Constant reference to member header
151  */
152  eProsima_user_DllExport const std_msgs::msg::Header& header() const;
153 
154  /*!
155  * @brief This function returns a reference to member header
156  * @return Reference to member header
157  */
159  /*!
160  * @brief This function copies the value in member status
161  * @param _status New value to be copied in member status
162  */
163  eProsima_user_DllExport void status(
164  const sensor_msgs::msg::NavSatStatus& _status);
165 
166  /*!
167  * @brief This function moves the value in member status
168  * @param _status New value to be moved in member status
169  */
170  eProsima_user_DllExport void status(
172 
173  /*!
174  * @brief This function returns a constant reference to member status
175  * @return Constant reference to member status
176  */
178 
179  /*!
180  * @brief This function returns a reference to member status
181  * @return Reference to member status
182  */
184  /*!
185  * @brief This function sets a value in member latitude
186  * @param _latitude New value for member latitude
187  */
188  eProsima_user_DllExport void latitude(
189  double _latitude);
190 
191  /*!
192  * @brief This function returns the value of member latitude
193  * @return Value of member latitude
194  */
195  eProsima_user_DllExport double latitude() const;
196 
197  /*!
198  * @brief This function returns a reference to member latitude
199  * @return Reference to member latitude
200  */
201  eProsima_user_DllExport double& latitude();
202 
203  /*!
204  * @brief This function sets a value in member longitude
205  * @param _longitude New value for member longitude
206  */
207  eProsima_user_DllExport void longitude(
208  double _longitude);
209 
210  /*!
211  * @brief This function returns the value of member longitude
212  * @return Value of member longitude
213  */
214  eProsima_user_DllExport double longitude() const;
215 
216  /*!
217  * @brief This function returns a reference to member longitude
218  * @return Reference to member longitude
219  */
220  eProsima_user_DllExport double& longitude();
221 
222  /*!
223  * @brief This function sets a value in member altitude
224  * @param _altitude New value for member altitude
225  */
226  eProsima_user_DllExport void altitude(
227  double _altitude);
228 
229  /*!
230  * @brief This function returns the value of member altitude
231  * @return Value of member altitude
232  */
233  eProsima_user_DllExport double altitude() const;
234 
235  /*!
236  * @brief This function returns a reference to member altitude
237  * @return Reference to member altitude
238  */
239  eProsima_user_DllExport double& altitude();
240 
241  /*!
242  * @brief This function copies the value in member position_covariance
243  * @param _position_covariance New value to be copied in member position_covariance
244  */
245  eProsima_user_DllExport void position_covariance(
247 
248  /*!
249  * @brief This function moves the value in member position_covariance
250  * @param _position_covariance New value to be moved in member position_covariance
251  */
252  eProsima_user_DllExport void position_covariance(
254 
255  /*!
256  * @brief This function returns a constant reference to member position_covariance
257  * @return Constant reference to member position_covariance
258  */
260 
261  /*!
262  * @brief This function returns a reference to member position_covariance
263  * @return Reference to member position_covariance
264  */
266  /*!
267  * @brief This function sets a value in member position_covariance_type
268  * @param _position_covariance_type New value for member position_covariance_type
269  */
270  eProsima_user_DllExport void position_covariance_type(
271  uint8_t _position_covariance_type);
272 
273  /*!
274  * @brief This function returns the value of member position_covariance_type
275  * @return Value of member position_covariance_type
276  */
277  eProsima_user_DllExport uint8_t position_covariance_type() const;
278 
279  /*!
280  * @brief This function returns a reference to member position_covariance_type
281  * @return Reference to member position_covariance_type
282  */
283  eProsima_user_DllExport uint8_t& position_covariance_type();
284 
285  /*!
286  * @brief This function returns the maximum serialized size of an object
287  * depending on the buffer alignment.
288  * @param current_alignment Buffer alignment.
289  * @return Maximum serialized size.
290  */
291  eProsima_user_DllExport static size_t getMaxCdrSerializedSize(
292  size_t current_alignment = 0);
293 
294  /*!
295  * @brief This function returns the serialized size of a data depending on the buffer alignment.
296  * @param data Data which is calculated its serialized size.
297  * @param current_alignment Buffer alignment.
298  * @return Serialized size.
299  */
300  eProsima_user_DllExport static size_t getCdrSerializedSize(
301  const sensor_msgs::msg::NavSatFix& data,
302  size_t current_alignment = 0);
303 
304  /*!
305  * @brief This function serializes an object using CDR serialization.
306  * @param cdr CDR serialization object.
307  */
308  eProsima_user_DllExport void serialize(
309  eprosima::fastcdr::Cdr& cdr) const;
310 
311  /*!
312  * @brief This function deserializes an object using CDR serialization.
313  * @param cdr CDR serialization object.
314  */
315  eProsima_user_DllExport void deserialize(
316  eprosima::fastcdr::Cdr& cdr);
317 
318  /*!
319  * @brief This function returns the maximum serialized size of the Key of an object
320  * depending on the buffer alignment.
321  * @param current_alignment Buffer alignment.
322  * @return Maximum serialized size.
323  */
324  eProsima_user_DllExport static size_t getKeyMaxCdrSerializedSize(
325  size_t current_alignment = 0);
326 
327  /*!
328  * @brief This function tells you if the Key has been defined for this type
329  */
330  eProsima_user_DllExport static bool isKeyDefined();
331 
332  /*!
333  * @brief This function serializes the key members of an object using CDR serialization.
334  * @param cdr CDR serialization object.
335  */
336  eProsima_user_DllExport void serializeKey(
337  eprosima::fastcdr::Cdr& cdr) const;
338 
339  private:
342  double m_latitude;
343  double m_longitude;
344  double m_altitude;
347  };
348  } // namespace msg
349 } // namespace sensor_msgs
350 
351 #endif // _FAST_DDS_GENERATED_SENSOR_MSGS_MSG_NAVSATFIX_H_
This class represents the structure NavSatFix defined by the user in the IDL file.
Definition: NavSatFix.h:78
sensor_msgs::msg::NavSatStatus m_status
Definition: NavSatFix.h:341
const uint8_t NavSatFix__COVARIANCE_TYPE_DIAGONAL_KNOWN
Definition: NavSatFix.h:71
bool operator==(const Waypoint &lhs, const Waypoint &rhs)
std_msgs::msg::Header m_header
Definition: NavSatFix.h:340
const uint8_t NavSatFix__COVARIANCE_TYPE_APPROXIMATED
Definition: NavSatFix.h:70
const uint8_t NavSatFix__COVARIANCE_TYPE_KNOWN
Definition: NavSatFix.h:72
This class represents the structure Header defined by the user in the IDL file.
Definition: Header.h:72
std::array< double, 9 > sensor_msgs__NavSatFix__double_array_9
Definition: NavSatFix.h:73
This class represents the structure NavSatStatus defined by the user in the IDL file.
Definition: NavSatStatus.h:78
bool operator!=(const Waypoint &lhs, const Waypoint &rhs)
const uint8_t NavSatFix__COVARIANCE_TYPE_UNKNOWN
Definition: NavSatFix.h:69
sensor_msgs::msg::sensor_msgs__NavSatFix__double_array_9 m_position_covariance
Definition: NavSatFix.h:345