CARLA
 
载入中...
搜索中...
未找到
TransformStamped.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 TransformStamped.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_TRANSFORMSTAMPED_H_
23#define _FAST_DDS_GENERATED_GEOMETRY_MSGS_MSG_TRANSFORMSTAMPED_H_
24
25#include "Header.h"
26#include "Transform.h"
27
28#include <fastrtps/utils/fixed_size_string.hpp>
29
30#include <stdint.h>
31#include <array>
32#include <string>
33#include <vector>
34#include <map>
35#include <bitset>
36
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#if defined(_WIN32)
48#if defined(EPROSIMA_USER_DLL_EXPORT)
49#if defined(TransformStamped_SOURCE)
50#define TransformStamped_DllAPI __declspec( dllexport )
51#else
52#define TransformStamped_DllAPI __declspec( dllimport )
53#endif // TransformStamped_SOURCE
54#else
55#define TransformStamped_DllAPI
56#endif // EPROSIMA_USER_DLL_EXPORT
57#else
58#define TransformStamped_DllAPI
59#endif // _WIN32
60
61namespace eprosima {
62namespace fastcdr {
63class Cdr;
64} // namespace fastcdr
65} // namespace eprosima
66
67namespace geometry_msgs {
68 namespace msg {
69 /*!
70 * @brief This class represents the structure TransformStamped defined by the user in the IDL file.
71 * @ingroup TRANSFORMSTAMPED
72 */
74 {
75 public:
76
77 /*!
78 * @brief Default constructor.
79 */
81
82 /*!
83 * @brief Default destructor.
84 */
86
87 /*!
88 * @brief Copy constructor.
89 * @param x Reference to the object geometry_msgs::msg::TransformStamped that will be copied.
90 */
92 const TransformStamped& x);
93
94 /*!
95 * @brief Move constructor.
96 * @param x Reference to the object geometry_msgs::msg::TransformStamped that will be copied.
97 */
99 TransformStamped&& x) noexcept;
100
101 /*!
102 * @brief Copy assignment.
103 * @param x Reference to the object geometry_msgs::msg::TransformStamped that will be copied.
104 */
106 const TransformStamped& x);
107
108 /*!
109 * @brief Move assignment.
110 * @param x Reference to the object geometry_msgs::msg::TransformStamped that will be copied.
111 */
113 TransformStamped&& x) noexcept;
114
115 /*!
116 * @brief Comparison operator.
117 * @param x geometry_msgs::msg::TransformStamped object to compare.
118 */
120 const TransformStamped& x) const;
121
122 /*!
123 * @brief Comparison operator.
124 * @param x geometry_msgs::msg::TransformStamped object to compare.
125 */
127 const TransformStamped& x) const;
128
129 /*!
130 * @brief This function copies the value in member header
131 * @param _header New value to be copied in member header
132 */
134 const std_msgs::msg::Header& _header);
135
136 /*!
137 * @brief This function moves the value in member header
138 * @param _header New value to be moved in member header
139 */
141 std_msgs::msg::Header&& _header);
142
143 /*!
144 * @brief This function returns a constant reference to member header
145 * @return Constant reference to member header
146 */
148
149 /*!
150 * @brief This function returns a reference to member header
151 * @return Reference to member header
152 */
154 /*!
155 * @brief This function copies the value in member child_frame_id
156 * @param _child_frame_id New value to be copied in member child_frame_id
157 */
159 const std::string& _child_frame_id);
160
161 /*!
162 * @brief This function moves the value in member child_frame_id
163 * @param _child_frame_id New value to be moved in member child_frame_id
164 */
166 std::string&& _child_frame_id);
167
168 /*!
169 * @brief This function returns a constant reference to member child_frame_id
170 * @return Constant reference to member child_frame_id
171 */
172 eProsima_user_DllExport const std::string& child_frame_id() const;
173
174 /*!
175 * @brief This function returns a reference to member child_frame_id
176 * @return Reference to member child_frame_id
177 */
179 /*!
180 * @brief This function copies the value in member transform
181 * @param _transform New value to be copied in member transform
182 */
184 const geometry_msgs::msg::Transform& _transform);
185
186 /*!
187 * @brief This function moves the value in member transform
188 * @param _transform New value to be moved in member transform
189 */
191 geometry_msgs::msg::Transform&& _transform);
192
193 /*!
194 * @brief This function returns a constant reference to member transform
195 * @return Constant reference to member transform
196 */
198
199 /*!
200 * @brief This function returns a reference to member transform
201 * @return Reference to member transform
202 */
204
205 /*!
206 * @brief This function returns the maximum serialized size 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 returns the serialized size of a data depending on the buffer alignment.
216 * @param data Data which is calculated its serialized size.
217 * @param current_alignment Buffer alignment.
218 * @return Serialized size.
219 */
222 size_t current_alignment = 0);
223
224 /*!
225 * @brief This function serializes an object using CDR serialization.
226 * @param cdr CDR serialization object.
227 */
229 eprosima::fastcdr::Cdr& cdr) const;
230
231 /*!
232 * @brief This function deserializes an object using CDR serialization.
233 * @param cdr CDR serialization object.
234 */
236 eprosima::fastcdr::Cdr& cdr);
237
238 /*!
239 * @brief This function returns the maximum serialized size of the Key of an object
240 * depending on the buffer alignment.
241 * @param current_alignment Buffer alignment.
242 * @return Maximum serialized size.
243 */
245 size_t current_alignment = 0);
246
247 /*!
248 * @brief This function tells you if the Key has been defined for this type
249 */
251
252 /*!
253 * @brief This function serializes the key members of an object using CDR serialization.
254 * @param cdr CDR serialization object.
255 */
257 eprosima::fastcdr::Cdr& cdr) const;
258
259 private:
261 std::string m_child_frame_id;
263
264 };
265 } // namespace msg
266} // namespace geometry_msgs
267
268#endif // _FAST_DDS_GENERATED_GEOMETRY_MSGS_MSG_TRANSFORMSTAMPED_H_
#define eProsima_user_DllExport
Definition CameraInfo.h:44
This class represents the structure TransformStamped defined by the user in the IDL file.
geometry_msgs::msg::Transform m_transform
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 bool operator!=(const TransformStamped &x) const
Comparison operator.
static eProsima_user_DllExport size_t getCdrSerializedSize(const geometry_msgs::msg::TransformStamped &data, size_t current_alignment=0)
This function returns the serialized size of a data depending on the buffer alignment.
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 ~TransformStamped()
Default destructor.
eProsima_user_DllExport void deserialize(eprosima::fastcdr::Cdr &cdr)
This function deserializes an object using CDR serialization.
eProsima_user_DllExport void serialize(eprosima::fastcdr::Cdr &cdr) const
This function serializes an object using CDR serialization.
eProsima_user_DllExport bool operator==(const TransformStamped &x) const
Comparison operator.
eProsima_user_DllExport const std::string & child_frame_id() const
This function returns a constant reference to member child_frame_id
eProsima_user_DllExport TransformStamped()
Default constructor.
eProsima_user_DllExport const geometry_msgs::msg::Transform & transform() const
This function returns a constant reference to member transform
static eProsima_user_DllExport bool isKeyDefined()
This function tells you if the Key has been defined for this type
eProsima_user_DllExport TransformStamped & operator=(const TransformStamped &x)
Copy assignment.
eProsima_user_DllExport const std_msgs::msg::Header & header() const
This function returns a constant reference to member header
eProsima_user_DllExport void serializeKey(eprosima::fastcdr::Cdr &cdr) const
This function serializes the key members of an object using CDR serialization.
This class represents the structure Transform defined by the user in the IDL file.
This class represents the structure Header defined by the user in the IDL file.
Definition Header.h:73