CARLA
Odometry.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 Odometry.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_NAV_MSGS_MSG_ODOMETRY_H_
23 #define _FAST_DDS_GENERATED_NAV_MSGS_MSG_ODOMETRY_H_
24 
25 #include "PoseWithCovariance.h"
26 #include "TwistWithCovariance.h"
27 #include "Header.h"
28 
29 #include <fastrtps/utils/fixed_size_string.hpp>
30 
31 #include <stdint.h>
32 #include <array>
33 #include <string>
34 #include <vector>
35 #include <map>
36 #include <bitset>
37 
38 #if defined(_WIN32)
39 #if defined(EPROSIMA_USER_DLL_EXPORT)
40 #define eProsima_user_DllExport __declspec( dllexport )
41 #else
42 #define eProsima_user_DllExport
43 #endif // EPROSIMA_USER_DLL_EXPORT
44 #else
45 #define eProsima_user_DllExport
46 #endif // _WIN32
47 
48 #if defined(_WIN32)
49 #if defined(EPROSIMA_USER_DLL_EXPORT)
50 #if defined(Odometry_SOURCE)
51 #define Odometry_DllAPI __declspec( dllexport )
52 #else
53 #define Odometry_DllAPI __declspec( dllimport )
54 #endif // Odometry_SOURCE
55 #else
56 #define Odometry_DllAPI
57 #endif // EPROSIMA_USER_DLL_EXPORT
58 #else
59 #define Odometry_DllAPI
60 #endif // _WIN32
61 
62 namespace eprosima {
63 namespace fastcdr {
64 class Cdr;
65 } // namespace fastcdr
66 } // namespace eprosima
67 
68 namespace nav_msgs {
69  namespace msg {
70  /*!
71  * @brief This class represents the structure Odometry defined by the user in the IDL file.
72  * @ingroup ODOMETRY
73  */
74  class Odometry
75  {
76  public:
77 
78  /*!
79  * @brief Default constructor.
80  */
82 
83  /*!
84  * @brief Default destructor.
85  */
86  eProsima_user_DllExport ~Odometry();
87 
88  /*!
89  * @brief Copy constructor.
90  * @param x Reference to the object nav_msgs::msg::Odometry that will be copied.
91  */
92  eProsima_user_DllExport Odometry(
93  const Odometry& x);
94 
95  /*!
96  * @brief Move constructor.
97  * @param x Reference to the object nav_msgs::msg::Odometry that will be copied.
98  */
99  eProsima_user_DllExport Odometry(
100  Odometry&& x) noexcept;
101 
102  /*!
103  * @brief Copy assignment.
104  * @param x Reference to the object nav_msgs::msg::Odometry that will be copied.
105  */
106  eProsima_user_DllExport Odometry& operator =(
107  const Odometry& x);
108 
109  /*!
110  * @brief Move assignment.
111  * @param x Reference to the object nav_msgs::msg::Odometry that will be copied.
112  */
113  eProsima_user_DllExport Odometry& operator =(
114  Odometry&& x) noexcept;
115 
116  /*!
117  * @brief Comparison operator.
118  * @param x nav_msgs::msg::Odometry object to compare.
119  */
121  const Odometry& x) const;
122 
123  /*!
124  * @brief Comparison operator.
125  * @param x nav_msgs::msg::Odometry object to compare.
126  */
128  const Odometry& x) const;
129 
130  /*!
131  * @brief This function copies the value in member header
132  * @param _header New value to be copied in member header
133  */
134  eProsima_user_DllExport void header(
135  const std_msgs::msg::Header& _header);
136 
137  /*!
138  * @brief This function moves the value in member header
139  * @param _header New value to be moved in member header
140  */
141  eProsima_user_DllExport void header(
142  std_msgs::msg::Header&& _header);
143 
144  /*!
145  * @brief This function returns a constant reference to member header
146  * @return Constant reference to member header
147  */
148  eProsima_user_DllExport const std_msgs::msg::Header& header() const;
149 
150  /*!
151  * @brief This function returns a reference to member header
152  * @return Reference to member header
153  */
155  /*!
156  * @brief This function copies the value in member child_frame_id
157  * @param _child_frame_id New value to be copied in member child_frame_id
158  */
159  eProsima_user_DllExport void child_frame_id(
160  const std::string& _child_frame_id);
161 
162  /*!
163  * @brief This function moves the value in member child_frame_id
164  * @param _child_frame_id New value to be moved in member child_frame_id
165  */
166  eProsima_user_DllExport void child_frame_id(
167  std::string&& _child_frame_id);
168 
169  /*!
170  * @brief This function returns a constant reference to member child_frame_id
171  * @return Constant reference to member child_frame_id
172  */
173  eProsima_user_DllExport const std::string& child_frame_id() const;
174 
175  /*!
176  * @brief This function returns a reference to member child_frame_id
177  * @return Reference to member child_frame_id
178  */
179  eProsima_user_DllExport std::string& child_frame_id();
180  /*!
181  * @brief This function copies the value in member pose
182  * @param _pose New value to be copied in member pose
183  */
184  eProsima_user_DllExport void pose(
186 
187  /*!
188  * @brief This function moves the value in member pose
189  * @param _pose New value to be moved in member pose
190  */
191  eProsima_user_DllExport void pose(
193 
194  /*!
195  * @brief This function returns a constant reference to member pose
196  * @return Constant reference to member pose
197  */
199 
200  /*!
201  * @brief This function returns a reference to member pose
202  * @return Reference to member pose
203  */
205  /*!
206  * @brief This function copies the value in member twist
207  * @param _twist New value to be copied in member twist
208  */
209  eProsima_user_DllExport void twist(
211 
212  /*!
213  * @brief This function moves the value in member twist
214  * @param _twist New value to be moved in member twist
215  */
216  eProsima_user_DllExport void twist(
218 
219  /*!
220  * @brief This function returns a constant reference to member twist
221  * @return Constant reference to member twist
222  */
224 
225  /*!
226  * @brief This function returns a reference to member twist
227  * @return Reference to member twist
228  */
230 
231  /*!
232  * @brief This function returns the maximum serialized size of an object
233  * depending on the buffer alignment.
234  * @param current_alignment Buffer alignment.
235  * @return Maximum serialized size.
236  */
237  eProsima_user_DllExport static size_t getMaxCdrSerializedSize(
238  size_t current_alignment = 0);
239 
240  /*!
241  * @brief This function returns the serialized size of a data depending on the buffer alignment.
242  * @param data Data which is calculated its serialized size.
243  * @param current_alignment Buffer alignment.
244  * @return Serialized size.
245  */
246  eProsima_user_DllExport static size_t getCdrSerializedSize(
247  const nav_msgs::msg::Odometry& data,
248  size_t current_alignment = 0);
249 
250  /*!
251  * @brief This function serializes an object using CDR serialization.
252  * @param cdr CDR serialization object.
253  */
254  eProsima_user_DllExport void serialize(
255  eprosima::fastcdr::Cdr& cdr) const;
256 
257  /*!
258  * @brief This function deserializes an object using CDR serialization.
259  * @param cdr CDR serialization object.
260  */
261  eProsima_user_DllExport void deserialize(
262  eprosima::fastcdr::Cdr& cdr);
263 
264  /*!
265  * @brief This function returns the maximum serialized size of the Key of an object
266  * depending on the buffer alignment.
267  * @param current_alignment Buffer alignment.
268  * @return Maximum serialized size.
269  */
270  eProsima_user_DllExport static size_t getKeyMaxCdrSerializedSize(
271  size_t current_alignment = 0);
272 
273  /*!
274  * @brief This function tells you if the Key has been defined for this type
275  */
276  eProsima_user_DllExport static bool isKeyDefined();
277 
278  /*!
279  * @brief This function serializes the key members of an object using CDR serialization.
280  * @param cdr CDR serialization object.
281  */
282  eProsima_user_DllExport void serializeKey(
283  eprosima::fastcdr::Cdr& cdr) const;
284 
285  private:
287  std::string m_child_frame_id;
290  };
291  } // namespace msg
292 } // namespace nav_msgs
293 
294 #endif // _FAST_DDS_GENERATED_NAV_MSGS_MSG_ODOMETRY_H_
geometry_msgs::msg::TwistWithCovariance m_twist
Definition: Odometry.h:289
This class represents the structure TwistWithCovariance defined by the user in the IDL file...
std::string m_child_frame_id
Definition: Odometry.h:287
bool operator==(const Waypoint &lhs, const Waypoint &rhs)
This class represents the structure Header defined by the user in the IDL file.
Definition: Header.h:72
bool operator!=(const Waypoint &lhs, const Waypoint &rhs)
This class represents the structure PoseWithCovariance defined by the user in the IDL file...
geometry_msgs::msg::PoseWithCovariance m_pose
Definition: Odometry.h:288
std_msgs::msg::Header m_header
Definition: Odometry.h:286
#define eProsima_user_DllExport
Definition: Odometry.h:45
This class represents the structure Odometry defined by the user in the IDL file. ...
Definition: Odometry.h:74