CARLA
 
载入中...
搜索中...
未找到
TwistWithCovariance.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 TwistWithCovariance.h
17 * 此头文件包含在 IDL 文件中描述的类型的声明。
18 *
19 * 此文件是由工具 gen 生成的。
20 */
21
22#ifndef _FAST_DDS_GENERATED_GEOMETRY_MSGS_MSG_TWISTWITHCOVARIANCE_H_
23#define _FAST_DDS_GENERATED_GEOMETRY_MSGS_MSG_TWISTWITHCOVARIANCE_H_
24
25#include "Twist.h"// 包含 Twist.h 头文件,定义了 Twist 类型
26
27#include <fastrtps/utils/fixed_size_string.hpp>// Fast DDS 的固定大小字符串工具
28
29#include <stdint.h>// 包含整数类型的定义
30#include <array>// 包含数组的定义
31#include <string>
32#include <vector>
33#include <map>
34#include <bitset>
35// Windows 平台的 DLL 导出定义
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// Windows 平台的 DLL API 定义
46#if defined(_WIN32)
47#if defined(EPROSIMA_USER_DLL_EXPORT)
48#if defined(TwistWithCovariance_SOURCE)
49#define TwistWithCovariance_DllAPI __declspec( dllexport )
50#else
51#define TwistWithCovariance_DllAPI __declspec( dllimport )
52#endif // TwistWithCovariance_SOURCE
53#else
54#define TwistWithCovariance_DllAPI
55#endif // EPROSIMA_USER_DLL_EXPORT
56#else
57#define TwistWithCovariance_DllAPI
58#endif // _WIN32
59
60namespace eprosima {
61namespace fastcdr {
62class Cdr;// 前向声明 Cdr 类,用于序列化和反序列化
63} // namespace fastcdr
64} // namespace eprosima
65
66
67namespace geometry_msgs {
68 namespace msg {
70 /*!
71 * @brief 此类表示用户在 IDL 文件中定义的 TwistWithCovariance 结构。
72 * @ingroup TWISTWITHCOVARIANCE
73 */
75 {
76 public:
77
78 /*!
79 * @brief 默认构造函数。
80 */
82
83 /*!
84 * @brief 默认析构函数。
85 */
87
88 /*!
89 * @brief 复制构造函数。
90 * @param x 要复制的 geometry_msgs::msg::TwistWithCovariance 对象的引用。
91 */
93 const TwistWithCovariance& x);
94
95 /*!
96 * @brief 移动构造函数。
97 * @param x 要复制的 geometry_msgs::msg::TwistWithCovariance 对象的引用。
98 */
100 TwistWithCovariance&& x) noexcept;
101
102 /*!
103 * @brief 复制赋值运算符。
104 * @param x 要复制的 geometry_msgs::msg::TwistWithCovariance 对象的引用。
105 */
107 const TwistWithCovariance& x);
108
109 /*!
110 * @brief 移动赋值运算符。
111 * @param x 要复制的 geometry_msgs::msg::TwistWithCovariance 对象的引用。
112 */
114 TwistWithCovariance&& x) noexcept;
115
116 /*!
117 * @brief 比较运算符。
118 * @param x 要比较的 geometry_msgs::msg::TwistWithCovariance 对象。
119 * @return 如果两个对象相等,则返回 true,否则返回 false。
120 */
122 const TwistWithCovariance& x) const;
123
124 /*!
125 * @brief 不等于运算符。
126 * @param x 要比较的 geometry_msgs::msg::TwistWithCovariance 对象。
127 * @return 如果两个对象不等,则返回 true,否则返回 false。
128 */
130 const TwistWithCovariance& x) const;
131
132 /*!
133 * @brief 复制成员变量 twist 的值。
134 * @param _twist 要复制的新值。
135 */
137 const geometry_msgs::msg::Twist& _twist);
138
139 /*!
140 * @brief 移动成员变量 twist 的值。
141 * @param _twist 要移动的新值。
142 */
145
146 /*!
147 * @brief 返回对成员变量 twist 的常量引用。
148 * @return 对成员变量 twist 的常量引用。
149 */
151
152 /*!
153 * @brief 返回对成员变量 twist 的引用。
154 * @return 对成员变量 twist 的引用。
155 */
157 /*!
158 * @brief 复制成员变量 covariance 的值。
159 * @param _covariance 要复制的新值。
160 */
163
164 /*!
165 * @brief 移动成员变量 covariance 的值。
166 * @param _covariance 要移动的新值。
167 */
170
171 /*!
172 * @brief 返回对成员变量 covariance 的常量引用。
173 * @return 对成员变量 covariance 的常量引用。
174 */
176
177 /*!
178 * @brief 返回对成员变量 covariance 的引用。
179 * @return 对成员变量 covariance 的引用。
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 */
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 * @return 如果已定义键,则返回 true,否则返回 false。
226 */
228
229 /*!
230 * @brief 使用 CDR 序列化对象的键成员。
231 * @param cdr CDR 序列化对象。
232 */
234 eprosima::fastcdr::Cdr& cdr) const;
235
236 private:
237 geometry_msgs::msg::Twist m_twist;// 速度信息,包含线速度和角速度
239 };
240 } // namespace msg
241} // namespace geometry_msgs
242
243#endif // _FAST_DDS_GENERATED_GEOMETRY_MSGS_MSG_TWISTWITHCOVARIANCE_H_
#define eProsima_user_DllExport
Definition CameraInfo.h:44
此类表示用户在 IDL 文件中定义的 TwistWithCovariance 结构。 <>
eProsima_user_DllExport void serializeKey(eprosima::fastcdr::Cdr &cdr) const
使用 CDR 序列化对象的键成员。
eProsima_user_DllExport const geometry_msgs::msg::geometry_msgs__TwistWithCovariance__double_array_36 & covariance() const
返回对成员变量 covariance 的常量引用。
static eProsima_user_DllExport size_t getKeyMaxCdrSerializedSize(size_t current_alignment=0)
返回对象键的最大序列化大小(取决于缓冲区对齐)。
static eProsima_user_DllExport bool isKeyDefined()
告诉您此类型的键是否已定义。
eProsima_user_DllExport const geometry_msgs::msg::Twist & twist() const
返回对成员变量 twist 的常量引用。
geometry_msgs::msg::geometry_msgs__TwistWithCovariance__double_array_36 m_covariance
eProsima_user_DllExport void deserialize(eprosima::fastcdr::Cdr &cdr)
使用 CDR 反序列化对象。
static eProsima_user_DllExport size_t getMaxCdrSerializedSize(size_t current_alignment=0)
返回对象的最大序列化大小(取决于缓冲区对齐)。
eProsima_user_DllExport bool operator==(const TwistWithCovariance &x) const
比较运算符。
eProsima_user_DllExport void serialize(eprosima::fastcdr::Cdr &cdr) const
使用 CDR 序列化序列化对象。
eProsima_user_DllExport TwistWithCovariance & operator=(const TwistWithCovariance &x)
复制赋值运算符。
eProsima_user_DllExport TwistWithCovariance()
默认构造函数。
eProsima_user_DllExport ~TwistWithCovariance()
默认析构函数。
eProsima_user_DllExport bool operator!=(const TwistWithCovariance &x) const
不等于运算符。
static eProsima_user_DllExport size_t getCdrSerializedSize(const geometry_msgs::msg::TwistWithCovariance &data, size_t current_alignment=0)
返回数据的序列化大小(取决于缓冲区对齐)。
std::array< double, 36 > geometry_msgs__TwistWithCovariance__double_array_36