30#include <fastcdr/Cdr.h>
32#include <fastcdr/exceptions/BadParamException.h>
33using namespace eprosima::fastcdr::exception;
37#define geometry_msgs_msg_Quaternion_max_cdr_typesize 32ULL;
38#define geometry_msgs_msg_Quaternion_max_key_cdr_typesize 0ULL;
99 return (m_x == x.
m_x && m_y == x.
m_y && m_z == x.
m_z && m_w == x.
m_w);
105 return !(*
this == x);
109 size_t current_alignment)
111 static_cast<void>(current_alignment);
117 size_t current_alignment)
120 size_t initial_alignment = current_alignment;
121 current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8);
122 current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8);
123 current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8);
124 current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8);
126 return current_alignment - initial_alignment;
130 eprosima::fastcdr::Cdr& scdr)
const
139 eprosima::fastcdr::Cdr& dcdr)
260 size_t current_alignment)
262 static_cast<void>(current_alignment);
272 eprosima::fastcdr::Cdr& scdr)
const
#define geometry_msgs_msg_Quaternion_max_cdr_typesize
#define geometry_msgs_msg_Quaternion_max_key_cdr_typesize
This class represents the structure Quaternion defined by the user in the IDL file.
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 ~Quaternion()
Default destructor.
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 void serialize(eprosima::fastcdr::Cdr &cdr) const
This function serializes an object using CDR serialization.
eProsima_user_DllExport double z() const
This function returns the value of member z
eProsima_user_DllExport Quaternion & operator=(const Quaternion &x)
Copy assignment.
eProsima_user_DllExport Quaternion()
Default constructor.
eProsima_user_DllExport void deserialize(eprosima::fastcdr::Cdr &cdr)
This function deserializes an object using CDR serialization.
eProsima_user_DllExport double y() const
This function returns the value of member y
eProsima_user_DllExport double w() const
This function returns the value of member w
eProsima_user_DllExport double x() const
This function returns the value of member x
eProsima_user_DllExport bool operator==(const Quaternion &x) const
Comparison operator.
eProsima_user_DllExport void serializeKey(eprosima::fastcdr::Cdr &cdr) const
This function serializes the key members of an object using CDR serialization.
static eProsima_user_DllExport bool isKeyDefined()
This function tells you if the Key has been defined for this type
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 bool operator!=(const Quaternion &x) const
Comparison operator.