30 #include <fastcdr/Cdr.h> 32 #include <fastcdr/exceptions/BadParamException.h> 37 #define carla_msgs_msg_std_msgs_msg_Header_max_cdr_typesize 268ULL; 38 #define carla_msgs_msg_LaneInvasionEvent_max_cdr_typesize 672ULL; 39 #define carla_msgs_msg_std_msgs_msg_Time_max_cdr_typesize 8ULL; 40 #define carla_msgs_msg_std_msgs_msg_Header_max_key_cdr_typesize 0ULL; 41 #define carla_msgs_msg_LaneInvasionEvent_max_key_cdr_typesize 0ULL; 42 #define carla_msgs_msg_std_msgs_msg_Time_max_key_cdr_typesize 0ULL; 62 m_header = std::move(x.m_header);
63 m_crossed_lane_markings = std::move(x.m_crossed_lane_markings);
78 m_header = std::move(x.m_header);
79 m_crossed_lane_markings = std::move(x.m_crossed_lane_markings);
97 size_t current_alignment)
99 static_cast<void>(current_alignment);
105 size_t current_alignment)
107 size_t initial_alignment = current_alignment;
109 current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
113 current_alignment += (data.
crossed_lane_markings().size() * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
116 return current_alignment - initial_alignment;
120 eprosima::fastcdr::Cdr& scdr)
const 123 scdr << m_crossed_lane_markings;
127 eprosima::fastcdr::Cdr& dcdr)
130 dcdr >> m_crossed_lane_markings;
150 m_header = std::move(_header);
175 const std::vector<int32_t>& _crossed_lane_markings)
177 m_crossed_lane_markings = _crossed_lane_markings;
185 std::vector<int32_t>&& _crossed_lane_markings)
187 m_crossed_lane_markings = std::move(_crossed_lane_markings);
196 return m_crossed_lane_markings;
205 return m_crossed_lane_markings;
210 size_t current_alignment)
212 static_cast<void>(current_alignment);
222 eprosima::fastcdr::Cdr& scdr)
const This class represents the structure LaneInvasionEvent defined by the user in the IDL file...
eProsima_user_DllExport ~LaneInvasionEvent()
Default destructor.
#define carla_msgs_msg_LaneInvasionEvent_max_cdr_typesize
std_msgs::msg::Header m_header
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...
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...
eProsima_user_DllExport LaneInvasionEvent & operator=(const LaneInvasionEvent &x)
Copy assignment.
static eProsima_user_DllExport size_t getCdrSerializedSize(const carla_msgs::msg::LaneInvasionEvent &data, size_t current_alignment=0)
This function returns the serialized size of a data depending on the buffer alignment.
static eProsima_user_DllExport bool isKeyDefined()
This function tells you if the Key has been defined for this type.
eProsima_user_DllExport void serialize(eprosima::fastcdr::Cdr &cdr) const
This function serializes an object using CDR serialization.
std::vector< int32_t > m_crossed_lane_markings
eProsima_user_DllExport const std_msgs::msg::Header & header() const
This function returns a constant reference to member header.
#define carla_msgs_msg_LaneInvasionEvent_max_key_cdr_typesize
eProsima_user_DllExport const std::vector< int32_t > & crossed_lane_markings() const
This function returns a constant reference to member crossed_lane_markings.
eProsima_user_DllExport LaneInvasionEvent()
Default constructor.
eProsima_user_DllExport bool operator!=(const LaneInvasionEvent &x) const
Comparison operator.
eProsima_user_DllExport bool operator==(const LaneInvasionEvent &x) const
Comparison operator.
eProsima_user_DllExport void crossed_lane_markings(const std::vector< int32_t > &_crossed_lane_markings)
This function copies the value in member crossed_lane_markings.
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 void deserialize(eprosima::fastcdr::Cdr &cdr)
This function deserializes an object using CDR serialization.
eProsima_user_DllExport void header(const std_msgs::msg::Header &_header)
This function copies the value in member header.