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 * 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_TWISTWITHCOVARIANCE_H_
23#define _FAST_DDS_GENERATED_GEOMETRY_MSGS_MSG_TWISTWITHCOVARIANCE_H_
24
25#include "Twist.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(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;
63} // namespace fastcdr
64} // namespace eprosima
65
66
67namespace geometry_msgs {
68 namespace msg {
70 /*!
71 * @brief This class represents the structure TwistWithCovariance defined by the user in the IDL file.
72 * @ingroup TWISTWITHCOVARIANCE
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::TwistWithCovariance that will be copied.
91 */
93 const TwistWithCovariance& x);
94
95 /*!
96 * @brief Move constructor.
97 * @param x Reference to the object geometry_msgs::msg::TwistWithCovariance that will be copied.
98 */
100 TwistWithCovariance&& x) noexcept;
101
102 /*!
103 * @brief Copy assignment.
104 * @param x Reference to the object geometry_msgs::msg::TwistWithCovariance that will be copied.
105 */
107 const TwistWithCovariance& x);
108
109 /*!
110 * @brief Move assignment.
111 * @param x Reference to the object geometry_msgs::msg::TwistWithCovariance that will be copied.
112 */
114 TwistWithCovariance&& x) noexcept;
115
116 /*!
117 * @brief Comparison operator.
118 * @param x geometry_msgs::msg::TwistWithCovariance object to compare.
119 */
121 const TwistWithCovariance& x) const;
122
123 /*!
124 * @brief Comparison operator.
125 * @param x geometry_msgs::msg::TwistWithCovariance object to compare.
126 */
128 const TwistWithCovariance& x) const;
129
130 /*!
131 * @brief This function copies the value in member twist
132 * @param _twist New value to be copied in member twist
133 */
135 const geometry_msgs::msg::Twist& _twist);
136
137 /*!
138 * @brief This function moves the value in member twist
139 * @param _twist New value to be moved in member twist
140 */
143
144 /*!
145 * @brief This function returns a constant reference to member twist
146 * @return Constant reference to member twist
147 */
149
150 /*!
151 * @brief This function returns a reference to member twist
152 * @return Reference to member twist
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_TWISTWITHCOVARIANCE_H_
#define eProsima_user_DllExport
Definition CameraInfo.h:44
This class represents the structure TwistWithCovariance defined by the user in the IDL file.
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 const geometry_msgs::msg::geometry_msgs__TwistWithCovariance__double_array_36 & covariance() const
This function returns a constant reference to member covariance
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...
static eProsima_user_DllExport bool isKeyDefined()
This function tells you if the Key has been defined for this type
eProsima_user_DllExport const geometry_msgs::msg::Twist & twist() const
This function returns a constant reference to member twist
geometry_msgs::msg::geometry_msgs__TwistWithCovariance__double_array_36 m_covariance
eProsima_user_DllExport void deserialize(eprosima::fastcdr::Cdr &cdr)
This function deserializes 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 bool operator==(const TwistWithCovariance &x) const
Comparison operator.
eProsima_user_DllExport void serialize(eprosima::fastcdr::Cdr &cdr) const
This function serializes an object using CDR serialization.
eProsima_user_DllExport TwistWithCovariance & operator=(const TwistWithCovariance &x)
Copy assignment.
eProsima_user_DllExport TwistWithCovariance()
Default constructor.
eProsima_user_DllExport ~TwistWithCovariance()
Default destructor.
eProsima_user_DllExport bool operator!=(const TwistWithCovariance &x) const
Comparison operator.
static eProsima_user_DllExport size_t getCdrSerializedSize(const geometry_msgs::msg::TwistWithCovariance &data, size_t current_alignment=0)
This function returns the serialized size of a data depending on the buffer alignment.
This class represents the structure Twist defined by the user in the IDL file.
Definition Twist.h:73
std::array< double, 36 > geometry_msgs__TwistWithCovariance__double_array_36