CARLA
TransformStamped.h
Go to the documentation of this file.
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 
61 namespace eprosima {
62 namespace fastcdr {
63 class Cdr;
64 } // namespace fastcdr
65 } // namespace eprosima
66 
67 namespace 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  */
85  eProsima_user_DllExport ~TransformStamped();
86 
87  /*!
88  * @brief Copy constructor.
89  * @param x Reference to the object geometry_msgs::msg::TransformStamped that will be copied.
90  */
91  eProsima_user_DllExport TransformStamped(
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  */
98  eProsima_user_DllExport TransformStamped(
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  */
105  eProsima_user_DllExport TransformStamped& operator =(
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  */
112  eProsima_user_DllExport TransformStamped& operator =(
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  */
133  eProsima_user_DllExport void header(
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  */
140  eProsima_user_DllExport void header(
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  */
147  eProsima_user_DllExport const std_msgs::msg::Header& header() const;
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  */
158  eProsima_user_DllExport void child_frame_id(
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  */
165  eProsima_user_DllExport void child_frame_id(
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  */
178  eProsima_user_DllExport std::string& child_frame_id();
179  /*!
180  * @brief This function copies the value in member transform
181  * @param _transform New value to be copied in member transform
182  */
183  eProsima_user_DllExport void transform(
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  */
190  eProsima_user_DllExport void transform(
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  */
211  eProsima_user_DllExport static size_t getMaxCdrSerializedSize(
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  */
220  eProsima_user_DllExport static size_t getCdrSerializedSize(
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  */
228  eProsima_user_DllExport void serialize(
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  */
235  eProsima_user_DllExport void deserialize(
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  */
244  eProsima_user_DllExport static size_t getKeyMaxCdrSerializedSize(
245  size_t current_alignment = 0);
246 
247  /*!
248  * @brief This function tells you if the Key has been defined for this type
249  */
250  eProsima_user_DllExport static bool isKeyDefined();
251 
252  /*!
253  * @brief This function serializes the key members of an object using CDR serialization.
254  * @param cdr CDR serialization object.
255  */
256  eProsima_user_DllExport void serializeKey(
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_
bool operator==(const Waypoint &lhs, const Waypoint &rhs)
#define eProsima_user_DllExport
This class represents the structure Header defined by the user in the IDL file.
Definition: Header.h:72
This class represents the structure Transform defined by the user in the IDL file.
bool operator!=(const Waypoint &lhs, const Waypoint &rhs)
geometry_msgs::msg::Transform m_transform
This class represents the structure TransformStamped defined by the user in the IDL file...