30 #include <fastcdr/Cdr.h> 32 #include <fastcdr/exceptions/BadParamException.h> 37 #define geometry_msgs_msg_TwistWithCovariance_max_cdr_typesize 336ULL; 38 #define geometry_msgs_msg_Vector3_max_cdr_typesize 24ULL; 39 #define geometry_msgs_msg_Twist_max_cdr_typesize 48ULL; 40 #define geometry_msgs_msg_TwistWithCovariance_max_key_cdr_typesize 0ULL; 41 #define geometry_msgs_msg_Vector3_max_key_cdr_typesize 0ULL; 42 #define geometry_msgs_msg_Twist_max_key_cdr_typesize 0ULL; 49 memset(&m_covariance, 0, (36) * 8);
66 m_twist = std::move(x.m_twist);
67 m_covariance = std::move(x.m_covariance);
82 m_twist = std::move(x.m_twist);
83 m_covariance = std::move(x.m_covariance);
101 size_t current_alignment)
103 static_cast<void>(current_alignment);
109 size_t current_alignment)
111 size_t initial_alignment = current_alignment;
113 current_alignment += ((36) * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8);
115 return current_alignment - initial_alignment;
119 eprosima::fastcdr::Cdr& scdr)
const 122 scdr << m_covariance;
126 eprosima::fastcdr::Cdr& dcdr)
129 dcdr >> m_covariance;
149 m_twist = std::move(_twist);
177 m_covariance = _covariance;
187 m_covariance = std::move(_covariance);
209 size_t current_alignment)
211 static_cast<void>(current_alignment);
221 eprosima::fastcdr::Cdr& scdr)
const This class represents the structure TwistWithCovariance defined by the user in the IDL file...
eProsima_user_DllExport bool operator==(const TwistWithCovariance &x) const
Comparison operator.
This class represents the structure Twist defined by the user in the IDL file.
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 const geometry_msgs::msg::Twist & twist() const
This function returns a constant reference to member twist.
geometry_msgs::msg::Twist m_twist
eProsima_user_DllExport bool operator!=(const TwistWithCovariance &x) const
Comparison operator.
eProsima_user_DllExport const geometry_msgs::msg::geometry_msgs__TwistWithCovariance__double_array_36 & covariance() const
This function returns a constant reference to member covariance.
eProsima_user_DllExport TwistWithCovariance()
Default constructor.
#define geometry_msgs_msg_TwistWithCovariance_max_key_cdr_typesize
eProsima_user_DllExport TwistWithCovariance & operator=(const TwistWithCovariance &x)
Copy assignment.
static eProsima_user_DllExport size_t getCdrSerializedSize(const geometry_msgs::msg::Twist &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 ~TwistWithCovariance()
Default destructor.
geometry_msgs::msg::geometry_msgs__TwistWithCovariance__double_array_36 m_covariance
std::array< double, 36 > geometry_msgs__TwistWithCovariance__double_array_36
static eProsima_user_DllExport size_t getCdrSerializedSize(const geometry_msgs::msg::TwistWithCovariance &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.
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 twist(const geometry_msgs::msg::Twist &_twist)
This function copies the value in member twist.
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 geometry_msgs_msg_TwistWithCovariance_max_cdr_typesize