CARLA
 
载入中...
搜索中...
未找到
Pose.h
浏览该文件的文档.
1// 版权 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
2//
3// 根据Apache许可证第2.0版(“许可证”)授权;
4// 除非遵守许可证,否则您不得使用此文件。
5// 您可以在以下地址获取许可证副本:
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// 除非适用法律要求或书面同意,
10// 根据许可证分发的软件在“按原样”基础上分发,
11// 不提供任何形式的保证或条件,无论是明示的还是暗示的。
12// 有关许可证下的特定权限和限制,请参见许可证。
13
14/*!
15 * @file Pose.h
16 * 此头文件包含IDL文件中描述的类型的声明。
17 *
18 * 此文件由工具gen生成。
19 */
20
21#ifndef _FAST_DDS_GENERATED_GEOMETRY_MSGS_MSG_POSE_H_
22#define _FAST_DDS_GENERATED_GEOMETRY_MSGS_MSG_POSE_H_
23
24#include "Point.h" // 包含Point类的头文件
25#include "Quaternion.h" // 包含Quaternion类的头文件
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// Windows平台下的DLL导出宏定义
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// Pose类的DLL导出宏定义
48#if defined(_WIN32)
49#if defined(EPROSIMA_USER_DLL_EXPORT)
50#if defined(Pose_SOURCE)
51#define Pose_DllAPI __declspec( dllexport )
52#else
53#define Pose_DllAPI __declspec( dllimport )
54#endif // Pose_SOURCE
55#else
56#define Pose_DllAPI
57#endif // EPROSIMA_USER_DLL_EXPORT
58#else
59#define Pose_DllAPI
60#endif // _WIN32
61
62namespace eprosima {
63namespace fastcdr {
64class Cdr; // 前向声明Cdr类
65} // namespace fastcdr
66} // namespace eprosima
67
68namespace geometry_msgs {
69 namespace msg {
70 /*!
71 * @brief 此类表示IDL文件中定义的Pose结构。
72 * @ingroup POSE
73 */
74 class Pose
75 {
76 public:
77
78 /*!
79 * @brief 默认构造函数。
80 */
82
83 /*!
84 * @brief 默认析构函数。
85 */
87
88 /*!
89 * @brief 拷贝构造函数。
90 * @param x 要复制的geometry_msgs::msg::Pose对象的引用。
91 */
93 const Pose& x);
94
95 /*!
96 * @brief 移动构造函数。
97 * @param x 要复制的geometry_msgs::msg::Pose对象的引用。
98 */
100 Pose&& x) noexcept;
101
102 /*!
103 * @brief 拷贝赋值运算符。
104 * @param x 要复制的geometry_msgs::msg::Pose对象的引用。
105 */
107 const Pose& x);
108
109 /*!
110 * @brief 移动赋值运算符。
111 * @param x 要复制的geometry_msgs::msg::Pose对象的引用。
112 */
114 Pose&& x) noexcept;
115
116 /*!
117 * @brief 比较运算符。
118 * @param x 要比较的geometry_msgs::msg::Pose对象。
119 */
121 const Pose& x) const;
122
123 /*!
124 * @brief 比较运算符。
125 * @param x 要比较的geometry_msgs::msg::Pose对象。
126 */
128 const Pose& x) const;
129
130 /*!
131 * @brief 复制成员position的值。
132 * @param _position 要复制到成员position的新值。
133 */
135 const geometry_msgs::msg::Point& _position);
136
137 /*!
138 * @brief 移动成员position的值。
139 * @param _position 要移动到成员position的新值。
140 */
142 geometry_msgs::msg::Point&& _position);
143
144 /*!
145 * @brief 返回成员position的常量引用。
146 * @return 成员position的常量引用。
147 */
149
150 /*!
151 * @brief 返回成员position的引用。
152 * @return 成员position的引用。
153 */
155
156 /*!
157 * @brief 复制成员orientation的值。
158 * @param _orientation 要复制到成员orientation的新值。
159 */
161 const geometry_msgs::msg::Quaternion& _orientation);
162
163 /*!
164 * @brief 移动成员orientation的值。
165 * @param _orientation 要移动到成员orientation的新值。
166 */
168 geometry_msgs::msg::Quaternion&& _orientation);
169
170 /*!
171 * @brief 返回成员orientation的常量引用。
172 * @return 成员orientation的常量引用。
173 */
175
176
177 /*!
178 * @brief 返回成员orientation的引用。
179 * @return 成员orientation的引用。
180 */
182
183 /*!
184 * @brief 返回对象的最大序列化大小,取决于缓冲区对齐。
185 * @param current_alignment 缓冲区对齐。
186 * @return 最大序列化大小。
187 */
189 size_t current_alignment = 0);
190
191 /*!
192 * @brief 返回数据的序列化大小,取决于缓冲区对齐。
193 * @param data 要计算其序列化大小的数据。
194 * @param current_alignment 缓冲区对齐。
195 * @return 序列化大小。
196 */
198 const geometry_msgs::msg::Pose& data,
199 size_t current_alignment = 0);
200
201 /*!
202 * @brief 使用CDR序列化对对象进行序列化。
203 * @param cdr CDR序列化对象。
204 */
206 eprosima::fastcdr::Cdr& cdr) const;
207
208 /*!
209 * @brief 使用CDR序列化对对象进行反序列化。
210 * @param cdr CDR序列化对象。
211 */
213 eprosima::fastcdr::Cdr& cdr);
214
215 /*!
216 * @brief 返回对象键的最大序列化大小,取决于缓冲区对齐。
217 * @param current_alignment 缓冲区对齐。
218 * @return 最大序列化大小。
219 */
221 size_t current_alignment = 0);
222
223 /*!
224 * @brief 告诉您是否为此类型定义了键。
225 */
227
228 /*!
229 * @brief 使用CDR序列化序列化对象的键成员。
230 * @param cdr CDR序列化对象。
231 */
233 eprosima::fastcdr::Cdr& cdr) const;
234
235 private:
236 // 类的私有成员变量:(位置)和(方向)
237 geometry_msgs::msg::Point m_position; // 位置,类型为Point
238 geometry_msgs::msg::Quaternion m_orientation; // 方位,类型为Quaternion
239 };
240 } // namespace msg
241} // namespace geometry_msgs
242
243#endif // _FAST_DDS_GENERATED_GEOMETRY_MSGS_MSG_POSE_H_
#define eProsima_user_DllExport
Definition CameraInfo.h:44
This class represents the structure Point defined by the user in the IDL file.
Definition Point.h:71
此类表示IDL文件中定义的Pose结构。 <>
Definition Pose.h:75
eProsima_user_DllExport Pose()
默认构造函数。
Definition Pose.cpp:44
static eProsima_user_DllExport bool isKeyDefined()
告诉您是否为此类型定义了键。
Definition Pose.cpp:227
eProsima_user_DllExport void deserialize(eprosima::fastcdr::Cdr &cdr)
使用CDR序列化对对象进行反序列化。
Definition Pose.cpp:136
eProsima_user_DllExport const geometry_msgs::msg::Quaternion & orientation() const
返回成员orientation的常量引用。
Definition Pose.cpp:205
static eProsima_user_DllExport size_t getMaxCdrSerializedSize(size_t current_alignment=0)
返回对象的最大序列化大小,取决于缓冲区对齐。
Definition Pose.cpp:109
geometry_msgs::msg::Point m_position
Definition Pose.h:237
eProsima_user_DllExport void serializeKey(eprosima::fastcdr::Cdr &cdr) const
使用CDR序列化序列化对象的键成员。
Definition Pose.cpp:232
eProsima_user_DllExport bool operator!=(const Pose &x) const
比较运算符。
Definition Pose.cpp:102
eProsima_user_DllExport ~Pose()
默认析构函数。
Definition Pose.cpp:48
static eProsima_user_DllExport size_t getCdrSerializedSize(const geometry_msgs::msg::Pose &data, size_t current_alignment=0)
返回数据的序列化大小,取决于缓冲区对齐。
Definition Pose.cpp:118
static eProsima_user_DllExport size_t getKeyMaxCdrSerializedSize(size_t current_alignment=0)
返回对象键的最大序列化大小,取决于缓冲区对齐。
Definition Pose.cpp:220
geometry_msgs::msg::Quaternion m_orientation
Definition Pose.h:238
eProsima_user_DllExport bool operator==(const Pose &x) const
比较运算符。
Definition Pose.cpp:94
eProsima_user_DllExport Pose & operator=(const Pose &x)
拷贝赋值运算符。
Definition Pose.cpp:72
eProsima_user_DllExport const geometry_msgs::msg::Point & position() const
返回成员position的常量引用。
Definition Pose.cpp:167
eProsima_user_DllExport void serialize(eprosima::fastcdr::Cdr &cdr) const
使用CDR序列化对对象进行序列化。
Definition Pose.cpp:129
This class represents the structure Quaternion defined by the user in the IDL file.
Definition Quaternion.h:71