CARLA
PoseWithCovariance.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 PoseWithCovariance.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_POSEWITHCOVARIANCE_H_
23 #define _FAST_DDS_GENERATED_GEOMETRY_MSGS_MSG_POSEWITHCOVARIANCE_H_
24 
25 #include "Pose.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(PoseWithCovariance_SOURCE)
49 #define PoseWithCovariance_DllAPI __declspec( dllexport )
50 #else
51 #define PoseWithCovariance_DllAPI __declspec( dllimport )
52 #endif // PoseWithCovariance_SOURCE
53 #else
54 #define PoseWithCovariance_DllAPI
55 #endif // EPROSIMA_USER_DLL_EXPORT
56 #else
57 #define PoseWithCovariance_DllAPI
58 #endif // _WIN32
59 
60 namespace eprosima {
61 namespace fastcdr {
62 class Cdr;
63 } // namespace fastcdr
64 } // namespace eprosima
65 
66 
67 namespace geometry_msgs {
68  namespace msg {
70  /*!
71  * @brief This class represents the structure PoseWithCovariance defined by the user in the IDL file.
72  * @ingroup POSEWITHCOVARIANCE
73  */
75  {
76  public:
77 
78  /*!
79  * @brief Default constructor.
80  */
82 
83  /*!
84  * @brief Default destructor.
85  */
86  eProsima_user_DllExport ~PoseWithCovariance();
87 
88  /*!
89  * @brief Copy constructor.
90  * @param x Reference to the object geometry_msgs::msg::PoseWithCovariance that will be copied.
91  */
92  eProsima_user_DllExport PoseWithCovariance(
93  const PoseWithCovariance& x);
94 
95  /*!
96  * @brief Move constructor.
97  * @param x Reference to the object geometry_msgs::msg::PoseWithCovariance that will be copied.
98  */
99  eProsima_user_DllExport PoseWithCovariance(
100  PoseWithCovariance&& x) noexcept;
101 
102  /*!
103  * @brief Copy assignment.
104  * @param x Reference to the object geometry_msgs::msg::PoseWithCovariance that will be copied.
105  */
106  eProsima_user_DllExport PoseWithCovariance& operator =(
107  const PoseWithCovariance& x);
108 
109  /*!
110  * @brief Move assignment.
111  * @param x Reference to the object geometry_msgs::msg::PoseWithCovariance that will be copied.
112  */
113  eProsima_user_DllExport PoseWithCovariance& operator =(
114  PoseWithCovariance&& x) noexcept;
115 
116  /*!
117  * @brief Comparison operator.
118  * @param x geometry_msgs::msg::PoseWithCovariance object to compare.
119  */
121  const PoseWithCovariance& x) const;
122 
123  /*!
124  * @brief Comparison operator.
125  * @param x geometry_msgs::msg::PoseWithCovariance object to compare.
126  */
128  const PoseWithCovariance& x) const;
129 
130  /*!
131  * @brief This function copies the value in member pose
132  * @param _pose New value to be copied in member pose
133  */
134  eProsima_user_DllExport void pose(
135  const geometry_msgs::msg::Pose& _pose);
136 
137  /*!
138  * @brief This function moves the value in member pose
139  * @param _pose New value to be moved in member pose
140  */
141  eProsima_user_DllExport void pose(
142  geometry_msgs::msg::Pose&& _pose);
143 
144  /*!
145  * @brief This function returns a constant reference to member pose
146  * @return Constant reference to member pose
147  */
149 
150  /*!
151  * @brief This function returns a reference to member pose
152  * @return Reference to member pose
153  */
155  /*!
156  * @brief This function copies the value in member covariance
157  * @param _covariance New value to be copied in member covariance
158  */
159  eProsima_user_DllExport void covariance(
161 
162  /*!
163  * @brief This function moves the value in member covariance
164  * @param _covariance New value to be moved in member covariance
165  */
166  eProsima_user_DllExport void covariance(
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  */
187  eProsima_user_DllExport static size_t getMaxCdrSerializedSize(
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  */
196  eProsima_user_DllExport static size_t getCdrSerializedSize(
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  */
204  eProsima_user_DllExport void serialize(
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  */
211  eProsima_user_DllExport void deserialize(
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  */
220  eProsima_user_DllExport static size_t getKeyMaxCdrSerializedSize(
221  size_t current_alignment = 0);
222 
223  /*!
224  * @brief This function tells you if the Key has been defined for this type
225  */
226  eProsima_user_DllExport static bool isKeyDefined();
227 
228  /*!
229  * @brief This function serializes the key members of an object using CDR serialization.
230  * @param cdr CDR serialization object.
231  */
232  eProsima_user_DllExport void serializeKey(
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_POSEWITHCOVARIANCE_H_
geometry_msgs::msg::geometry_msgs__PoseWithCovariance__double_array_36 m_covariance
bool operator==(const Waypoint &lhs, const Waypoint &rhs)
This class represents the structure Pose defined by the user in the IDL file.
Definition: Pose.h:73
bool operator!=(const Waypoint &lhs, const Waypoint &rhs)
This class represents the structure PoseWithCovariance defined by the user in the IDL file...
#define eProsima_user_DllExport
std::array< double, 36 > geometry_msgs__PoseWithCovariance__double_array_36