CARLA
 
载入中...
搜索中...
未找到
PoseWithCovariance.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 PoseWithCovariance.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_GEOMETRY_MSGS_MSG_POSEWITHCOVARIANCE_H_
23#define _FAST_DDS_GENERATED_GEOMETRY_MSGS_MSG_POSEWITHCOVARIANCE_H_
24
25#include "Pose.h"
26
27#include <fastrtps/utils/fixed_size_string.hpp>
28
29#include <stdint.h>
30#include <array>
31#include <string>
32#include <vector>
33#include <map>
34#include <bitset>
35
36#if defined(_WIN32)
37#if defined(EPROSIMA_USER_DLL_EXPORT)
38#define eProsima_user_DllExport __declspec( dllexport )
39#else
40#define eProsima_user_DllExport
41#endif // EPROSIMA_USER_DLL_EXPORT
42#else
43#define eProsima_user_DllExport
44#endif // _WIN32
45
46#if defined(_WIN32)
47#if defined(EPROSIMA_USER_DLL_EXPORT)
48#if defined(PoseWithCovariance_SOURCE)
49#define PoseWithCovariance_DllAPI __declspec( dllexport )
50#else
51#define PoseWithCovariance_DllAPI __declspec( dllimport )
52#endif // PoseWithCovariance_SOURCE
53#else
54#define PoseWithCovariance_DllAPI
55#endif // EPROSIMA_USER_DLL_EXPORT
56#else
57#define PoseWithCovariance_DllAPI
58#endif // _WIN32
59
60namespace eprosima {
61namespace fastcdr {
62class Cdr;
63} // namespace fastcdr
64} // namespace eprosima
65
66
67namespace geometry_msgs {
68 namespace msg {
70 /*!
71 * @brief This class represents the structure PoseWithCovariance defined by the user in the IDL file.
72 * @ingroup POSEWITHCOVARIANCE
73 */
75 {
76 public:
77
78 /*!
79 * @brief Default constructor.
80 */
82
83 /*!
84 * @brief Default destructor.
85 */
87
88 /*!
89 * @brief Copy constructor.
90 * @param x Reference to the object geometry_msgs::msg::PoseWithCovariance that will be copied.
91 */
93 const PoseWithCovariance& x);
94
95 /*!
96 * @brief Move constructor.
97 * @param x Reference to the object geometry_msgs::msg::PoseWithCovariance that will be copied.
98 */
100 PoseWithCovariance&& x) noexcept;
101
102 /*!
103 * @brief Copy assignment.
104 * @param x Reference to the object geometry_msgs::msg::PoseWithCovariance that will be copied.
105 */
107 const PoseWithCovariance& x);
108
109 /*!
110 * @brief Move assignment.
111 * @param x Reference to the object geometry_msgs::msg::PoseWithCovariance that will be copied.
112 */
114 PoseWithCovariance&& x) noexcept;
115
116 /*!
117 * @brief Comparison operator.
118 * @param x geometry_msgs::msg::PoseWithCovariance object to compare.
119 */
121 const PoseWithCovariance& x) const;
122
123 /*!
124 * @brief Comparison operator.
125 * @param x geometry_msgs::msg::PoseWithCovariance object to compare.
126 */
128 const PoseWithCovariance& x) const;
129
130 /*!
131 * @brief This function copies the value in member pose
132 * @param _pose New value to be copied in member pose
133 */
135 const geometry_msgs::msg::Pose& _pose);
136
137 /*!
138 * @brief This function moves the value in member pose
139 * @param _pose New value to be moved in member pose
140 */
143
144 /*!
145 * @brief This function returns a constant reference to member pose
146 * @return Constant reference to member pose
147 */
149
150 /*!
151 * @brief This function returns a reference to member pose
152 * @return Reference to member pose
153 */
155 /*!
156 * @brief This function copies the value in member covariance
157 * @param _covariance New value to be copied in member covariance
158 */
161
162 /*!
163 * @brief This function moves the value in member covariance
164 * @param _covariance New value to be moved in member covariance
165 */
168
169 /*!
170 * @brief This function returns a constant reference to member covariance
171 * @return Constant reference to member covariance
172 */
174
175 /*!
176 * @brief This function returns a reference to member covariance
177 * @return Reference to member covariance
178 */
180
181 /*!
182 * @brief This function returns the maximum serialized size of an object
183 * depending on the buffer alignment.
184 * @param current_alignment Buffer alignment.
185 * @return Maximum serialized size.
186 */
188 size_t current_alignment = 0);
189
190 /*!
191 * @brief This function returns the serialized size of a data depending on the buffer alignment.
192 * @param data Data which is calculated its serialized size.
193 * @param current_alignment Buffer alignment.
194 * @return Serialized size.
195 */
198 size_t current_alignment = 0);
199
200 /*!
201 * @brief This function serializes an object using CDR serialization.
202 * @param cdr CDR serialization object.
203 */
205 eprosima::fastcdr::Cdr& cdr) const;
206
207 /*!
208 * @brief This function deserializes an object using CDR serialization.
209 * @param cdr CDR serialization object.
210 */
212 eprosima::fastcdr::Cdr& cdr);
213
214 /*!
215 * @brief This function returns the maximum serialized size of the Key of an object
216 * depending on the buffer alignment.
217 * @param current_alignment Buffer alignment.
218 * @return Maximum serialized size.
219 */
221 size_t current_alignment = 0);
222
223 /*!
224 * @brief This function tells you if the Key has been defined for this type
225 */
227
228 /*!
229 * @brief This function serializes the key members of an object using CDR serialization.
230 * @param cdr CDR serialization object.
231 */
233 eprosima::fastcdr::Cdr& cdr) const;
234
235 private:
238 };
239 } // namespace msg
240} // namespace geometry_msgs
241
242#endif // _FAST_DDS_GENERATED_GEOMETRY_MSGS_MSG_POSEWITHCOVARIANCE_H_
#define eProsima_user_DllExport
Definition CameraInfo.h:44
This class represents the structure PoseWithCovariance defined by the user in the IDL file.
geometry_msgs::msg::geometry_msgs__PoseWithCovariance__double_array_36 m_covariance
eProsima_user_DllExport void serialize(eprosima::fastcdr::Cdr &cdr) const
This function serializes an object using CDR serialization.
static eProsima_user_DllExport size_t getCdrSerializedSize(const geometry_msgs::msg::PoseWithCovariance &data, size_t current_alignment=0)
This function returns the serialized size of a data depending on the buffer alignment.
eProsima_user_DllExport const geometry_msgs::msg::Pose & pose() const
This function returns a constant reference to member pose
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 serializeKey(eprosima::fastcdr::Cdr &cdr) const
This function serializes the key members of an object using CDR serialization.
eProsima_user_DllExport ~PoseWithCovariance()
Default destructor.
eProsima_user_DllExport bool operator==(const PoseWithCovariance &x) const
Comparison operator.
eProsima_user_DllExport bool operator!=(const PoseWithCovariance &x) const
Comparison operator.
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 const geometry_msgs::msg::geometry_msgs__PoseWithCovariance__double_array_36 & covariance() const
This function returns a constant reference to member covariance
static eProsima_user_DllExport bool isKeyDefined()
This function tells you if the Key has been defined for this type
eProsima_user_DllExport PoseWithCovariance()
Default constructor.
eProsima_user_DllExport PoseWithCovariance & operator=(const PoseWithCovariance &x)
Copy assignment.
eProsima_user_DllExport void deserialize(eprosima::fastcdr::Cdr &cdr)
This function deserializes an object using CDR serialization.
This class represents the structure Pose defined by the user in the IDL file.
Definition Pose.h:74
std::array< double, 36 > geometry_msgs__PoseWithCovariance__double_array_36