30 #include <fastcdr/Cdr.h> 32 #include <fastcdr/exceptions/BadParamException.h> 37 #define geometry_msgs_msg_Vector3_max_cdr_typesize 24ULL; 38 #define std_msgs_msg_Time_max_cdr_typesize 8ULL; 40 #define geometry_msgs_msg_Quaternion_max_cdr_typesize 32ULL; 41 #define std_msgs_msg_Header_max_cdr_typesize 268ULL; 42 #define sensor_msgs_msg_Imu_max_cdr_typesize 568ULL; 43 #define geometry_msgs_msg_Vector3_max_key_cdr_typesize 0ULL; 44 #define std_msgs_msg_Time_max_key_cdr_typesize 0ULL; 46 #define geometry_msgs_msg_Quaternion_max_key_cdr_typesize 0ULL; 47 #define std_msgs_msg_Header_max_key_cdr_typesize 0ULL; 48 #define sensor_msgs_msg_Imu_max_key_cdr_typesize 0ULL; 57 memset(&m_orientation_covariance, 0, (9) * 8);
61 memset(&m_angular_velocity_covariance, 0, (9) * 8);
65 memset(&m_linear_acceleration_covariance, 0, (9) * 8);
87 m_header = std::move(x.m_header);
88 m_orientation = std::move(x.m_orientation);
89 m_orientation_covariance = std::move(x.m_orientation_covariance);
90 m_angular_velocity = std::move(x.m_angular_velocity);
91 m_angular_velocity_covariance = std::move(x.m_angular_velocity_covariance);
92 m_linear_acceleration = std::move(x.m_linear_acceleration);
93 m_linear_acceleration_covariance = std::move(x.m_linear_acceleration_covariance);
113 m_header = std::move(x.m_header);
114 m_orientation = std::move(x.m_orientation);
115 m_orientation_covariance = std::move(x.m_orientation_covariance);
116 m_angular_velocity = std::move(x.m_angular_velocity);
117 m_angular_velocity_covariance = std::move(x.m_angular_velocity_covariance);
118 m_linear_acceleration = std::move(x.m_linear_acceleration);
119 m_linear_acceleration_covariance = std::move(x.m_linear_acceleration_covariance);
133 return !(*
this == x);
137 size_t current_alignment)
139 static_cast<void>(current_alignment);
145 size_t current_alignment)
147 size_t initial_alignment = current_alignment;
150 current_alignment += ((9) * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8);
152 current_alignment += ((9) * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8);
154 current_alignment += ((9) * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8);
156 return current_alignment - initial_alignment;
160 eprosima::fastcdr::Cdr& scdr)
const 163 scdr << m_orientation;
164 scdr << m_orientation_covariance;
165 scdr << m_angular_velocity;
166 scdr << m_angular_velocity_covariance;
167 scdr << m_linear_acceleration;
168 scdr << m_linear_acceleration_covariance;
172 eprosima::fastcdr::Cdr& dcdr)
175 dcdr >> m_orientation;
176 dcdr >> m_orientation_covariance;
177 dcdr >> m_angular_velocity;
178 dcdr >> m_angular_velocity_covariance;
179 dcdr >> m_linear_acceleration;
180 dcdr >> m_linear_acceleration_covariance;
200 m_header = std::move(_header);
228 m_orientation = _orientation;
238 m_orientation = std::move(_orientation);
247 return m_orientation;
256 return m_orientation;
266 m_orientation_covariance = _orientation_covariance;
276 m_orientation_covariance = std::move(_orientation_covariance);
285 return m_orientation_covariance;
294 return m_orientation_covariance;
304 m_angular_velocity = _angular_velocity;
314 m_angular_velocity = std::move(_angular_velocity);
323 return m_angular_velocity;
332 return m_angular_velocity;
342 m_angular_velocity_covariance = _angular_velocity_covariance;
352 m_angular_velocity_covariance = std::move(_angular_velocity_covariance);
361 return m_angular_velocity_covariance;
370 return m_angular_velocity_covariance;
380 m_linear_acceleration = _linear_acceleration;
390 m_linear_acceleration = std::move(_linear_acceleration);
399 return m_linear_acceleration;
408 return m_linear_acceleration;
418 m_linear_acceleration_covariance = _linear_acceleration_covariance;
428 m_linear_acceleration_covariance = std::move(_linear_acceleration_covariance);
437 return m_linear_acceleration_covariance;
446 return m_linear_acceleration_covariance;
450 size_t current_alignment)
452 static_cast<void>(current_alignment);
462 eprosima::fastcdr::Cdr& scdr)
const eProsima_user_DllExport const sensor_msgs::msg::sensor_msgs__Imu__double_array_9 & angular_velocity_covariance() const
This function returns a constant reference to member angular_velocity_covariance. ...
eProsima_user_DllExport void serialize(eprosima::fastcdr::Cdr &cdr) const
This function serializes an object using CDR serialization.
std_msgs::msg::Header m_header
geometry_msgs::msg::Vector3 m_angular_velocity
sensor_msgs::msg::sensor_msgs__Imu__double_array_9 m_orientation_covariance
eProsima_user_DllExport void linear_acceleration(const geometry_msgs::msg::Vector3 &_linear_acceleration)
This function copies the value in member linear_acceleration.
eProsima_user_DllExport void header(const std_msgs::msg::Header &_header)
This function copies the value in member header.
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 const geometry_msgs::msg::Vector3 & angular_velocity() const
This function returns a constant reference to member angular_velocity.
eProsima_user_DllExport bool operator!=(const Imu &x) const
Comparison operator.
static eProsima_user_DllExport size_t getCdrSerializedSize(const geometry_msgs::msg::Quaternion &data, size_t current_alignment=0)
This function returns the serialized size of a data depending on the buffer alignment.
eProsima_user_DllExport bool operator==(const Imu &x) const
Comparison operator.
This class represents the structure Vector3 defined by the user in the IDL file.
eProsima_user_DllExport void angular_velocity(const geometry_msgs::msg::Vector3 &_angular_velocity)
This function copies the value in member angular_velocity.
geometry_msgs::msg::Vector3 m_linear_acceleration
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 const geometry_msgs::msg::Quaternion & orientation() const
This function returns a constant reference to member orientation.
This class represents the structure Imu defined by the user in the IDL file.
eProsima_user_DllExport const geometry_msgs::msg::Vector3 & linear_acceleration() const
This function returns a constant reference to member linear_acceleration.
eProsima_user_DllExport Imu & operator=(const Imu &x)
Copy assignment.
sensor_msgs::msg::sensor_msgs__Imu__double_array_9 m_angular_velocity_covariance
geometry_msgs::msg::Quaternion m_orientation
eProsima_user_DllExport ~Imu()
Default destructor.
eProsima_user_DllExport void orientation(const geometry_msgs::msg::Quaternion &_orientation)
This function copies the value in member orientation.
eProsima_user_DllExport const std_msgs::msg::Header & header() const
This function returns a constant reference to member header.
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.
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...
#define sensor_msgs_msg_Imu_max_cdr_typesize
eProsima_user_DllExport Imu()
Default constructor.
static eProsima_user_DllExport size_t getCdrSerializedSize(const sensor_msgs::msg::Imu &data, size_t current_alignment=0)
This function returns the serialized size of a data depending on the buffer alignment.
eProsima_user_DllExport const sensor_msgs::msg::sensor_msgs__Imu__double_array_9 & orientation_covariance() const
This function returns a constant reference to member orientation_covariance.
std::array< double, 9 > sensor_msgs__Imu__double_array_9
#define sensor_msgs_msg_Imu_max_key_cdr_typesize
eProsima_user_DllExport const sensor_msgs::msg::sensor_msgs__Imu__double_array_9 & linear_acceleration_covariance() const
This function returns a constant reference to member linear_acceleration_covariance.
This class represents the structure Quaternion defined by the user in the IDL file.
static eProsima_user_DllExport bool isKeyDefined()
This function tells you if the Key has been defined for this type.
eProsima_user_DllExport void deserialize(eprosima::fastcdr::Cdr &cdr)
This function deserializes an object using CDR serialization.
sensor_msgs::msg::sensor_msgs__Imu__double_array_9 m_linear_acceleration_covariance