CARLA
 
载入中...
搜索中...
未找到
NavSatFix.h
浏览该文件的文档.
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
61namespace eprosima {
62namespace fastcdr {
63class Cdr;
64} // namespace fastcdr
65} // namespace eprosima
66
67namespace 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 */
79 {
80 public:
81
82 /*!
83 * @brief Default constructor.
84 */
86
87 /*!
88 * @brief Default destructor.
89 */
91
92 /*!
93 * @brief Copy constructor.
94 * @param x Reference to the object sensor_msgs::msg::NavSatFix that will be copied.
95 */
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 */
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 */
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 */
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 */
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 */
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 */
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 */
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 */
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 */
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 */
202
203 /*!
204 * @brief This function sets a value in member longitude
205 * @param _longitude New value for member longitude
206 */
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 */
221
222 /*!
223 * @brief This function sets a value in member altitude
224 * @param _altitude New value for member altitude
225 */
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 */
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 */
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 */
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 */
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 */
278
279 /*!
280 * @brief This function returns a reference to member position_covariance_type
281 * @return Reference to member position_covariance_type
282 */
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 */
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 */
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 */
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 */
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 */
325 size_t current_alignment = 0);
326
327 /*!
328 * @brief This function tells you if the Key has been defined for this type
329 */
331
332 /*!
333 * @brief This function serializes the key members of an object using CDR serialization.
334 * @param cdr CDR serialization object.
335 */
337 eprosima::fastcdr::Cdr& cdr) const;
338
339 private:
347 };
348 } // namespace msg
349} // namespace sensor_msgs
350
351#endif // _FAST_DDS_GENERATED_SENSOR_MSGS_MSG_NAVSATFIX_H_
#define eProsima_user_DllExport
Definition CameraInfo.h:44
This class represents the structure NavSatFix defined by the user in the IDL file.
Definition NavSatFix.h:79
sensor_msgs::msg::NavSatStatus m_status
Definition NavSatFix.h:341
eProsima_user_DllExport void serializeKey(eprosima::fastcdr::Cdr &cdr) const
This function serializes the key members of an object using CDR serialization.
eProsima_user_DllExport bool operator==(const NavSatFix &x) const
Comparison operator.
static eProsima_user_DllExport size_t getKeyMaxCdrSerializedSize(size_t current_alignment=0)
This function returns the maximum serialized size of the Key of an object depending on the buffer ali...
eProsima_user_DllExport NavSatFix & operator=(const NavSatFix &x)
Copy assignment.
Definition NavSatFix.cpp:93
eProsima_user_DllExport const std_msgs::msg::Header & header() const
This function returns a constant reference to member header
eProsima_user_DllExport uint8_t position_covariance_type() const
This function returns the value of member position_covariance_type
eProsima_user_DllExport void serialize(eprosima::fastcdr::Cdr &cdr) const
This function serializes an object using CDR serialization.
std_msgs::msg::Header m_header
Definition NavSatFix.h:340
sensor_msgs::msg::sensor_msgs__NavSatFix__double_array_9 m_position_covariance
Definition NavSatFix.h:345
eProsima_user_DllExport bool operator!=(const NavSatFix &x) const
Comparison operator.
eProsima_user_DllExport NavSatFix()
Default constructor.
Definition NavSatFix.cpp:47
eProsima_user_DllExport ~NavSatFix()
Default destructor.
Definition NavSatFix.cpp:65
static eProsima_user_DllExport size_t getCdrSerializedSize(const sensor_msgs::msg::NavSatFix &data, size_t current_alignment=0)
This function returns the serialized size of a data depending on the buffer alignment.
static eProsima_user_DllExport size_t getMaxCdrSerializedSize(size_t current_alignment=0)
This function returns the maximum serialized size of an object depending on the buffer alignment.
eProsima_user_DllExport double altitude() const
This function returns the value of member altitude
static eProsima_user_DllExport bool isKeyDefined()
This function tells you if the Key has been defined for this type
eProsima_user_DllExport const sensor_msgs::msg::sensor_msgs__NavSatFix__double_array_9 & position_covariance() const
This function returns a constant reference to member position_covariance
eProsima_user_DllExport double longitude() const
This function returns the value of member longitude
eProsima_user_DllExport const sensor_msgs::msg::NavSatStatus & status() const
This function returns a constant reference to member status
eProsima_user_DllExport double latitude() const
This function returns the value of member latitude
eProsima_user_DllExport void deserialize(eprosima::fastcdr::Cdr &cdr)
This function deserializes an object using CDR serialization.
This class represents the structure NavSatStatus defined by the user in the IDL file.
This class represents the structure Header defined by the user in the IDL file.
Definition Header.h:73
std::array< double, 9 > sensor_msgs__NavSatFix__double_array_9
Definition NavSatFix.h:73
const uint8_t NavSatFix__COVARIANCE_TYPE_APPROXIMATED
Definition NavSatFix.h:70
const uint8_t NavSatFix__COVARIANCE_TYPE_KNOWN
Definition NavSatFix.h:72
const uint8_t NavSatFix__COVARIANCE_TYPE_UNKNOWN
Definition NavSatFix.h:69
const uint8_t NavSatFix__COVARIANCE_TYPE_DIAGONAL_KNOWN
Definition NavSatFix.h:71