30#include <fastcdr/Cdr.h>
32#include <fastcdr/exceptions/BadParamException.h>
33using namespace eprosima::fastcdr::exception;
37#define carla_msgs_msg_geometry_msgs_msg_Vector3_max_cdr_typesize 24ULL;
38#define carla_msgs_msg_std_msgs_msg_Header_max_cdr_typesize 268ULL;
39#define carla_msgs_msg_CarlaCollisionEvent_max_cdr_typesize 296ULL;
40#define carla_msgs_msg_std_msgs_msg_Time_max_cdr_typesize 8ULL;
41#define carla_msgs_msg_geometry_msgs_msg_Vector3_max_key_cdr_typesize 0ULL;
42#define carla_msgs_msg_std_msgs_msg_Header_max_key_cdr_typesize 0ULL;
43#define carla_msgs_msg_CarlaCollisionEvent_max_key_cdr_typesize 0ULL;
44#define carla_msgs_msg_std_msgs_msg_Time_max_key_cdr_typesize 0ULL;
69 m_header = std::move(x.m_header);
70 m_other_actor_id = x.m_other_actor_id;
71 m_normal_impulse = std::move(x.m_normal_impulse);
87 m_header = std::move(x.m_header);
88 m_other_actor_id = x.m_other_actor_id;
89 m_normal_impulse = std::move(x.m_normal_impulse);
103 return !(*
this == x);
107 size_t current_alignment)
109 static_cast<void>(current_alignment);
115 size_t current_alignment)
118 size_t initial_alignment = current_alignment;
120 current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
122 return current_alignment - initial_alignment;
126 eprosima::fastcdr::Cdr& scdr)
const
129 scdr << m_other_actor_id;
130 scdr << m_normal_impulse;
134 eprosima::fastcdr::Cdr& dcdr)
137 dcdr >> m_other_actor_id;
138 dcdr >> m_normal_impulse;
158 m_header = std::move(_header);
184 uint32_t _other_actor_id)
186 m_other_actor_id = _other_actor_id;
195 return m_other_actor_id;
204 return m_other_actor_id;
214 m_normal_impulse = _normal_impulse;
224 m_normal_impulse = std::move(_normal_impulse);
233 return m_normal_impulse;
242 return m_normal_impulse;
246 size_t current_alignment)
248 static_cast<void>(current_alignment);
258 eprosima::fastcdr::Cdr& scdr)
const
#define carla_msgs_msg_CarlaCollisionEvent_max_key_cdr_typesize
#define carla_msgs_msg_CarlaCollisionEvent_max_cdr_typesize
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.
eProsima_user_DllExport void normal_impulse(const geometry_msgs::msg::Vector3 &_normal_impulse)
This function copies the value in member normal_impulse
uint32_t m_other_actor_id
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 header(const std_msgs::msg::Header &_header)
This function copies the value in member header
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.
std_msgs::msg::Header m_header
This class represents the structure Vector3 defined by the user in the IDL file.
static eProsima_user_DllExport size_t getCdrSerializedSize(const geometry_msgs::msg::Vector3 &data, size_t current_alignment=0)
This function returns the serialized size of a data depending on the buffer alignment.