CARLA
 
载入中...
搜索中...
未找到
Odometry.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 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
62namespace eprosima {
63namespace fastcdr {
64class Cdr;
65} // namespace fastcdr
66} // namespace eprosima
67
68namespace 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 */
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 nav_msgs::msg::Odometry that will be copied.
91 */
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 */
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 */
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 */
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 */
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 */
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 */
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 */
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 */
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 */
180 /*!
181 * @brief This function copies the value in member pose
182 * @param _pose New value to be copied in member pose
183 */
186
187 /*!
188 * @brief This function moves the value in member pose
189 * @param _pose New value to be moved in member pose
190 */
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 */
211
212 /*!
213 * @brief This function moves the value in member twist
214 * @param _twist New value to be moved in member twist
215 */
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 */
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 */
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 */
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 */
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 */
271 size_t current_alignment = 0);
272
273 /*!
274 * @brief This function tells you if the Key has been defined for this type
275 */
277
278 /*!
279 * @brief This function serializes the key members of an object using CDR serialization.
280 * @param cdr CDR serialization object.
281 */
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_
#define eProsima_user_DllExport
Definition CameraInfo.h:44
This class represents the structure PoseWithCovariance defined by the user in the IDL file.
This class represents the structure TwistWithCovariance defined by the user in the IDL file.
This class represents the structure Odometry defined by the user in the IDL file.
Definition Odometry.h:75
eProsima_user_DllExport void serializeKey(eprosima::fastcdr::Cdr &cdr) const
This function serializes the key members of an object using CDR serialization.
Definition Odometry.cpp:326
eProsima_user_DllExport const std::string & child_frame_id() const
This function returns a constant reference to member child_frame_id
Definition Odometry.cpp:224
std_msgs::msg::Header m_header
Definition Odometry.h:286
std::string m_child_frame_id
Definition Odometry.h:287
eProsima_user_DllExport void deserialize(eprosima::fastcdr::Cdr &cdr)
This function deserializes an object using CDR serialization.
Definition Odometry.cpp:154
geometry_msgs::msg::PoseWithCovariance m_pose
Definition Odometry.h:288
eProsima_user_DllExport const geometry_msgs::msg::PoseWithCovariance & pose() const
This function returns a constant reference to member pose
Definition Odometry.cpp:262
eProsima_user_DllExport bool operator==(const Odometry &x) const
Comparison operator.
Definition Odometry.cpp:113
eProsima_user_DllExport ~Odometry()
Default destructor.
Definition Odometry.cpp:69
eProsima_user_DllExport bool operator!=(const Odometry &x) const
Comparison operator.
Definition Odometry.cpp:119
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...
Definition Odometry.cpp:314
static eProsima_user_DllExport bool isKeyDefined()
This function tells you if the Key has been defined for this type
Definition Odometry.cpp:321
eProsima_user_DllExport const std_msgs::msg::Header & header() const
This function returns a constant reference to member header
Definition Odometry.cpp:187
eProsima_user_DllExport Odometry()
Default constructor.
Definition Odometry.cpp:58
static eProsima_user_DllExport size_t getCdrSerializedSize(const nav_msgs::msg::Odometry &data, size_t current_alignment=0)
This function returns the serialized size of a data depending on the buffer alignment.
Definition Odometry.cpp:132
geometry_msgs::msg::TwistWithCovariance m_twist
Definition Odometry.h:289
eProsima_user_DllExport Odometry & operator=(const Odometry &x)
Copy assignment.
Definition Odometry.cpp:91
eProsima_user_DllExport const geometry_msgs::msg::TwistWithCovariance & twist() const
This function returns a constant reference to member twist
Definition Odometry.cpp:300
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.
Definition Odometry.cpp:125
eProsima_user_DllExport void serialize(eprosima::fastcdr::Cdr &cdr) const
This function serializes an object using CDR serialization.
Definition Odometry.cpp:145
This class represents the structure Header defined by the user in the IDL file.
Definition Header.h:73