CARLA
 
载入中...
搜索中...
未找到
NavSatStatus.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 NavSatStatus.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_NAVSATSTATUS_H_
23#define _FAST_DDS_GENERATED_SENSOR_MSGS_MSG_NAVSATSTATUS_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(NavSatStatus_SOURCE)
47#define NavSatStatus_DllAPI __declspec( dllexport )
48#else
49#define NavSatStatus_DllAPI __declspec( dllimport )
50#endif // NavSatStatus_SOURCE
51#else
52#define NavSatStatus_DllAPI
53#endif // EPROSIMA_USER_DLL_EXPORT
54#else
55#define NavSatStatus_DllAPI
56#endif // _WIN32
57
58namespace eprosima {
59namespace fastcdr {
60class Cdr;
61} // namespace fastcdr
62} // namespace eprosima
63
64namespace sensor_msgs {
65 namespace msg {
66 const uint8_t NavSatStatus__STATUS_NO_FIX = 255;
67 const uint8_t NavSatStatus__STATUS_FIX = 0;
70 const uint16_t NavSatStatus__SERVICE_GPS = 1;
74 /*!
75 * @brief This class represents the structure NavSatStatus defined by the user in the IDL file.
76 * @ingroup NAVSATSTATUS
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::NavSatStatus that will be copied.
95 */
97 const NavSatStatus& x);
98
99 /*!
100 * @brief Move constructor.
101 * @param x Reference to the object sensor_msgs::msg::NavSatStatus that will be copied.
102 */
104 NavSatStatus&& x) noexcept;
105
106 /*!
107 * @brief Copy assignment.
108 * @param x Reference to the object sensor_msgs::msg::NavSatStatus that will be copied.
109 */
111 const NavSatStatus& x);
112
113 /*!
114 * @brief Move assignment.
115 * @param x Reference to the object sensor_msgs::msg::NavSatStatus that will be copied.
116 */
118 NavSatStatus&& x) noexcept;
119
120 /*!
121 * @brief Comparison operator.
122 * @param x sensor_msgs::msg::NavSatStatus object to compare.
123 */
125 const NavSatStatus& x) const;
126
127 /*!
128 * @brief Comparison operator.
129 * @param x sensor_msgs::msg::NavSatStatus object to compare.
130 */
132 const NavSatStatus& x) const;
133
134 /*!
135 * @brief This function sets a value in member status
136 * @param _status New value for member status
137 */
139 uint8_t _status);
140
141 /*!
142 * @brief This function returns the value of member status
143 * @return Value of member status
144 */
145 eProsima_user_DllExport uint8_t status() const;
146
147 /*!
148 * @brief This function returns a reference to member status
149 * @return Reference to member status
150 */
152
153 /*!
154 * @brief This function sets a value in member service
155 * @param _service New value for member service
156 */
158 uint16_t _service);
159
160 /*!
161 * @brief This function returns the value of member service
162 * @return Value of member service
163 */
164 eProsima_user_DllExport uint16_t service() const;
165
166 /*!
167 * @brief This function returns a reference to member service
168 * @return Reference to member service
169 */
171
172 /*!
173 * @brief This function returns the maximum serialized size of an object
174 * depending on the buffer alignment.
175 * @param current_alignment Buffer alignment.
176 * @return Maximum serialized size.
177 */
179 size_t current_alignment = 0);
180
181 /*!
182 * @brief This function returns the serialized size of a data depending on the buffer alignment.
183 * @param data Data which is calculated its serialized size.
184 * @param current_alignment Buffer alignment.
185 * @return Serialized size.
186 */
189 size_t current_alignment = 0);
190
191 /*!
192 * @brief This function serializes an object using CDR serialization.
193 * @param cdr CDR serialization object.
194 */
196 eprosima::fastcdr::Cdr& cdr) const;
197
198 /*!
199 * @brief This function deserializes an object using CDR serialization.
200 * @param cdr CDR serialization object.
201 */
203 eprosima::fastcdr::Cdr& cdr);
204
205 /*!
206 * @brief This function returns the maximum serialized size of the Key of an object
207 * depending on the buffer alignment.
208 * @param current_alignment Buffer alignment.
209 * @return Maximum serialized size.
210 */
212 size_t current_alignment = 0);
213
214 /*!
215 * @brief This function tells you if the Key has been defined for this type
216 */
218
219 /*!
220 * @brief This function serializes the key members of an object using CDR serialization.
221 * @param cdr CDR serialization object.
222 */
224 eprosima::fastcdr::Cdr& cdr) const;
225
226 private:
227 uint8_t m_status;
228 uint16_t m_service;
229 };
230 } // namespace msg
231} // namespace sensor_msgs
232
233#endif // _FAST_DDS_GENERATED_SENSOR_MSGS_MSG_NAVSATSTATUS_H_
#define eProsima_user_DllExport
Definition CameraInfo.h:44
This class represents the structure NavSatStatus defined by the user in the IDL file.
eProsima_user_DllExport NavSatStatus & operator=(const NavSatStatus &x)
Copy assignment.
eProsima_user_DllExport bool operator==(const NavSatStatus &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 void serialize(eprosima::fastcdr::Cdr &cdr) const
This function serializes an object using CDR serialization.
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 NavSatStatus()
Default constructor.
eProsima_user_DllExport void serializeKey(eprosima::fastcdr::Cdr &cdr) const
This function serializes the key members of an object using CDR serialization.
static eProsima_user_DllExport bool isKeyDefined()
This function tells you if the Key has been defined for this type
eProsima_user_DllExport uint8_t status() const
This function returns the value of member status
eProsima_user_DllExport bool operator!=(const NavSatStatus &x) const
Comparison operator.
eProsima_user_DllExport ~NavSatStatus()
Default destructor.
eProsima_user_DllExport void deserialize(eprosima::fastcdr::Cdr &cdr)
This function deserializes an object using CDR serialization.
eProsima_user_DllExport uint16_t service() const
This function returns the value of member service
static eProsima_user_DllExport size_t getCdrSerializedSize(const sensor_msgs::msg::NavSatStatus &data, size_t current_alignment=0)
This function returns the serialized size of a data depending on the buffer alignment.
const uint8_t NavSatStatus__STATUS_SBAS_FIX
const uint16_t NavSatStatus__SERVICE_GLONASS
const uint8_t NavSatStatus__STATUS_NO_FIX
const uint8_t NavSatStatus__STATUS_GBAS_FIX
const uint8_t NavSatStatus__STATUS_FIX
const uint16_t NavSatStatus__SERVICE_GPS
const uint16_t NavSatStatus__SERVICE_GALILEO
const uint16_t NavSatStatus__SERVICE_COMPASS