CARLA
 
载入中...
搜索中...
未找到
CarlaCollisionEvent.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 CarlaCollisionEvent.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_CARLA_MSGS_MSG_CARLACOLLISIONEVENT_H_
23#define _FAST_DDS_GENERATED_CARLA_MSGS_MSG_CARLACOLLISIONEVENT_H_
24
25#include "Vector3.h"
26#include "Header.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(CarlaCollisionEvent_SOURCE)
50#define CarlaCollisionEvent_DllAPI __declspec( dllexport )
51#else
52#define CarlaCollisionEvent_DllAPI __declspec( dllimport )
53#endif // CarlaCollisionEvent_SOURCE
54#else
55#define CarlaCollisionEvent_DllAPI
56#endif // EPROSIMA_USER_DLL_EXPORT
57#else
58#define CarlaCollisionEvent_DllAPI
59#endif // _WIN32
60
61namespace eprosima {
62namespace fastcdr {
63class Cdr;
64} // namespace fastcdr
65} // namespace eprosima
66
67
68namespace carla_msgs {
69 namespace msg {
70 /*!
71 * @brief This class represents the structure CarlaCollisionEvent defined by the user in the IDL file.
72 * @ingroup CARLACOLLISIONEVENT
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 carla_msgs::msg::CarlaCollisionEvent that will be copied.
91 */
93 const CarlaCollisionEvent& x);
94
95 /*!
96 * @brief Move constructor.
97 * @param x Reference to the object carla_msgs::msg::CarlaCollisionEvent that will be copied.
98 */
100 CarlaCollisionEvent&& x) noexcept;
101
102 /*!
103 * @brief Copy assignment.
104 * @param x Reference to the object carla_msgs::msg::CarlaCollisionEvent that will be copied.
105 */
107 const CarlaCollisionEvent& x);
108
109 /*!
110 * @brief Move assignment.
111 * @param x Reference to the object carla_msgs::msg::CarlaCollisionEvent that will be copied.
112 */
114 CarlaCollisionEvent&& x) noexcept;
115
116 /*!
117 * @brief Comparison operator.
118 * @param x carla_msgs::msg::CarlaCollisionEvent object to compare.
119 */
121 const CarlaCollisionEvent& x) const;
122
123 /*!
124 * @brief Comparison operator.
125 * @param x carla_msgs::msg::CarlaCollisionEvent object to compare.
126 */
128 const CarlaCollisionEvent& 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 sets a value in member other_actor_id
157 * @param _other_actor_id New value for member other_actor_id
158 */
160 uint32_t _other_actor_id);
161
162 /*!
163 * @brief This function returns the value of member other_actor_id
164 * @return Value of member other_actor_id
165 */
167
168 /*!
169 * @brief This function returns a reference to member other_actor_id
170 * @return Reference to member other_actor_id
171 */
173
174 /*!
175 * @brief This function copies the value in member normal_impulse
176 * @param _normal_impulse New value to be copied in member normal_impulse
177 */
179 const geometry_msgs::msg::Vector3& _normal_impulse);
180
181 /*!
182 * @brief This function moves the value in member normal_impulse
183 * @param _normal_impulse New value to be moved in member normal_impulse
184 */
186 geometry_msgs::msg::Vector3&& _normal_impulse);
187
188 /*!
189 * @brief This function returns a constant reference to member normal_impulse
190 * @return Constant reference to member normal_impulse
191 */
193
194 /*!
195 * @brief This function returns a reference to member normal_impulse
196 * @return Reference to member normal_impulse
197 */
199
200 /*!
201 * @brief This function returns the maximum serialized size of an object
202 * depending on the buffer alignment.
203 * @param current_alignment Buffer alignment.
204 * @return Maximum serialized size.
205 */
207 size_t current_alignment = 0);
208
209 /*!
210 * @brief This function returns the serialized size of a data depending on the buffer alignment.
211 * @param data Data which is calculated its serialized size.
212 * @param current_alignment Buffer alignment.
213 * @return Serialized size.
214 */
217 size_t current_alignment = 0);
218
219 /*!
220 * @brief This function serializes an object using CDR serialization.
221 * @param cdr CDR serialization object.
222 */
224 eprosima::fastcdr::Cdr& cdr) const;
225
226 /*!
227 * @brief This function deserializes an object using CDR serialization.
228 * @param cdr CDR serialization object.
229 */
231 eprosima::fastcdr::Cdr& cdr);
232
233 /*!
234 * @brief This function returns the maximum serialized size of the Key of an object
235 * depending on the buffer alignment.
236 * @param current_alignment Buffer alignment.
237 * @return Maximum serialized size.
238 */
240 size_t current_alignment = 0);
241
242 /*!
243 * @brief This function tells you if the Key has been defined for this type
244 */
246
247 /*!
248 * @brief This function serializes the key members of an object using CDR serialization.
249 * @param cdr CDR serialization object.
250 */
252 eprosima::fastcdr::Cdr& cdr) const;
253
254 private:
258 };
259 } // namespace msg
260} // namespace carla_msgs
261
262#endif // _FAST_DDS_GENERATED_CARLA_MSGS_MSG_CARLACOLLISIONEVENT_H_
#define eProsima_user_DllExport
Definition CameraInfo.h:44
This class represents the structure CarlaCollisionEvent defined by the user in the IDL file.
eProsima_user_DllExport const std_msgs::msg::Header & header() const
This function returns a constant reference to member header
eProsima_user_DllExport uint32_t other_actor_id() const
This function returns the value of member other_actor_id
eProsima_user_DllExport bool operator==(const CarlaCollisionEvent &x) const
Comparison operator.
static eProsima_user_DllExport bool isKeyDefined()
This function tells you if the Key has been defined for this type
eProsima_user_DllExport CarlaCollisionEvent & operator=(const CarlaCollisionEvent &x)
Copy assignment.
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.
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...
eProsima_user_DllExport void serializeKey(eprosima::fastcdr::Cdr &cdr) const
This function serializes the key members of an object using CDR serialization.
eProsima_user_DllExport bool operator!=(const CarlaCollisionEvent &x) const
Comparison operator.
eProsima_user_DllExport const geometry_msgs::msg::Vector3 & normal_impulse() const
This function returns a constant reference to member normal_impulse
eProsima_user_DllExport void serialize(eprosima::fastcdr::Cdr &cdr) const
This function serializes an object using CDR serialization.
eProsima_user_DllExport CarlaCollisionEvent()
Default constructor.
eProsima_user_DllExport void deserialize(eprosima::fastcdr::Cdr &cdr)
This function deserializes an object using CDR serialization.
geometry_msgs::msg::Vector3 m_normal_impulse
static eProsima_user_DllExport size_t getCdrSerializedSize(const carla_msgs::msg::CarlaCollisionEvent &data, size_t current_alignment=0)
This function returns the serialized size of a data depending on the buffer alignment.
eProsima_user_DllExport ~CarlaCollisionEvent()
Default destructor.
This class represents the structure Vector3 defined by the user in the IDL file.
Definition Vector3.h:72
This class represents the structure Header defined by the user in the IDL file.
Definition Header.h:73