CARLA
TwistWithCovariance.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 TwistWithCovariance.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_TWISTWITHCOVARIANCE_H_
23 #define _FAST_DDS_GENERATED_GEOMETRY_MSGS_MSG_TWISTWITHCOVARIANCE_H_
24 
25 #include "Twist.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(TwistWithCovariance_SOURCE)
49 #define TwistWithCovariance_DllAPI __declspec( dllexport )
50 #else
51 #define TwistWithCovariance_DllAPI __declspec( dllimport )
52 #endif // TwistWithCovariance_SOURCE
53 #else
54 #define TwistWithCovariance_DllAPI
55 #endif // EPROSIMA_USER_DLL_EXPORT
56 #else
57 #define TwistWithCovariance_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 TwistWithCovariance defined by the user in the IDL file.
72  * @ingroup TWISTWITHCOVARIANCE
73  */
75  {
76  public:
77 
78  /*!
79  * @brief Default constructor.
80  */
82 
83  /*!
84  * @brief Default destructor.
85  */
86  eProsima_user_DllExport ~TwistWithCovariance();
87 
88  /*!
89  * @brief Copy constructor.
90  * @param x Reference to the object geometry_msgs::msg::TwistWithCovariance that will be copied.
91  */
92  eProsima_user_DllExport TwistWithCovariance(
93  const TwistWithCovariance& x);
94 
95  /*!
96  * @brief Move constructor.
97  * @param x Reference to the object geometry_msgs::msg::TwistWithCovariance that will be copied.
98  */
99  eProsima_user_DllExport TwistWithCovariance(
100  TwistWithCovariance&& x) noexcept;
101 
102  /*!
103  * @brief Copy assignment.
104  * @param x Reference to the object geometry_msgs::msg::TwistWithCovariance that will be copied.
105  */
106  eProsima_user_DllExport TwistWithCovariance& operator =(
107  const TwistWithCovariance& x);
108 
109  /*!
110  * @brief Move assignment.
111  * @param x Reference to the object geometry_msgs::msg::TwistWithCovariance that will be copied.
112  */
113  eProsima_user_DllExport TwistWithCovariance& operator =(
114  TwistWithCovariance&& x) noexcept;
115 
116  /*!
117  * @brief Comparison operator.
118  * @param x geometry_msgs::msg::TwistWithCovariance object to compare.
119  */
121  const TwistWithCovariance& x) const;
122 
123  /*!
124  * @brief Comparison operator.
125  * @param x geometry_msgs::msg::TwistWithCovariance object to compare.
126  */
128  const TwistWithCovariance& x) const;
129 
130  /*!
131  * @brief This function copies the value in member twist
132  * @param _twist New value to be copied in member twist
133  */
134  eProsima_user_DllExport void twist(
135  const geometry_msgs::msg::Twist& _twist);
136 
137  /*!
138  * @brief This function moves the value in member twist
139  * @param _twist New value to be moved in member twist
140  */
141  eProsima_user_DllExport void twist(
142  geometry_msgs::msg::Twist&& _twist);
143 
144  /*!
145  * @brief This function returns a constant reference to member twist
146  * @return Constant reference to member twist
147  */
149 
150  /*!
151  * @brief This function returns a reference to member twist
152  * @return Reference to member twist
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_TWISTWITHCOVARIANCE_H_
This class represents the structure TwistWithCovariance defined by the user in the IDL file...
This class represents the structure Twist defined by the user in the IDL file.
Definition: Twist.h:72
bool operator==(const Waypoint &lhs, const Waypoint &rhs)
bool operator!=(const Waypoint &lhs, const Waypoint &rhs)
geometry_msgs::msg::geometry_msgs__TwistWithCovariance__double_array_36 m_covariance
std::array< double, 36 > geometry_msgs__TwistWithCovariance__double_array_36
#define eProsima_user_DllExport