30#include <fastcdr/Cdr.h>
32#include <fastcdr/exceptions/BadParamException.h>
33using namespace eprosima::fastcdr::exception;
37#define builtin_interfaces_msg_Time_max_cdr_typesize 8ULL;
38#define std_msgs_msg_Header_max_cdr_typesize 268ULL;
39#define carla_msgs_msg_CarlaEgoVehicleControl_max_cdr_typesize 289ULL;
40#define builtin_interfaces_msg_Time_max_key_cdr_typesize 0ULL;
41#define std_msgs_msg_Header_max_key_cdr_typesize 0ULL;
42#define carla_msgs_msg_CarlaEgoVehicleControl_max_key_cdr_typesize 0ULL;
85 m_header = std::move(x.m_header);
86 m_throttle = x.m_throttle;
89 m_hand_brake = x.m_hand_brake;
90 m_reverse = x.m_reverse;
92 m_manual_gear_shift = x.m_manual_gear_shift;
113 m_header = std::move(x.m_header);
114 m_throttle = x.m_throttle;
117 m_hand_brake = x.m_hand_brake;
118 m_reverse = x.m_reverse;
120 m_manual_gear_shift = x.m_manual_gear_shift;
134 return !(*
this == x);
138 size_t current_alignment)
140 static_cast<void>(current_alignment);
146 size_t current_alignment)
148 size_t initial_alignment = current_alignment;
150 current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
151 current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
152 current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
153 current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1);
154 current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1);
155 current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
156 current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1);
157 return current_alignment - initial_alignment;
161 eprosima::fastcdr::Cdr& scdr)
const
167 scdr << m_hand_brake;
170 scdr << m_manual_gear_shift;
174 eprosima::fastcdr::Cdr& dcdr)
180 dcdr >> m_hand_brake;
183 dcdr >> m_manual_gear_shift;
203 m_header = std::move(_header);
230 m_throttle = _throttle;
314 m_hand_brake = _hand_brake;
342 m_reverse = _reverse;
396 bool _manual_gear_shift)
398 m_manual_gear_shift = _manual_gear_shift;
407 return m_manual_gear_shift;
416 return m_manual_gear_shift;
420 size_t current_alignment)
422 static_cast<void>(current_alignment);
432 eprosima::fastcdr::Cdr& scdr)
const
#define carla_msgs_msg_CarlaEgoVehicleControl_max_key_cdr_typesize
#define carla_msgs_msg_CarlaEgoVehicleControl_max_cdr_typesize
This class represents the structure CarlaEgoVehicleControl defined by the user in the IDL file.
static eProsima_user_DllExport size_t getCdrSerializedSize(const carla_msgs::msg::CarlaEgoVehicleControl &data, size_t current_alignment=0)
This function returns the serialized size of a data depending on the buffer alignment.
eProsima_user_DllExport float brake() const
This function returns the value of member brake
eProsima_user_DllExport float steer() const
This function returns the value of member steer
eProsima_user_DllExport ~CarlaEgoVehicleControl()
Default destructor.
eProsima_user_DllExport void serialize(eprosima::fastcdr::Cdr &cdr) const
This function serializes an object using CDR serialization.
eProsima_user_DllExport int32_t gear() const
This function returns the value of member gear
eProsima_user_DllExport bool operator==(const CarlaEgoVehicleControl &x) const
Comparison operator.
eProsima_user_DllExport bool hand_brake() const
This function returns the value of member hand_brake
eProsima_user_DllExport CarlaEgoVehicleControl & operator=(const CarlaEgoVehicleControl &x)
Copy assignment.
eProsima_user_DllExport CarlaEgoVehicleControl()
Default constructor.
eProsima_user_DllExport const std_msgs::msg::Header & header() const
This function returns a constant reference to member header
eProsima_user_DllExport float throttle() const
This function returns the value of member throttle
eProsima_user_DllExport bool reverse() const
This function returns the value of member reverse
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 void serializeKey(eprosima::fastcdr::Cdr &cdr) const
This function serializes the key members of an object using CDR serialization.
std_msgs::msg::Header m_header
eProsima_user_DllExport bool operator!=(const CarlaEgoVehicleControl &x) const
Comparison operator.
eProsima_user_DllExport void deserialize(eprosima::fastcdr::Cdr &cdr)
This function deserializes an object using CDR serialization.
static eProsima_user_DllExport bool isKeyDefined()
This function tells you if the Key has been defined for this type
eProsima_user_DllExport bool manual_gear_shift() const
This function returns the value of member manual_gear_shift
eProsima_user_DllExport void header(const std_msgs::msg::Header &_header)
This function copies the value in member 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...