30#include <fastcdr/Cdr.h>
32#include <fastcdr/exceptions/BadParamException.h>
33using namespace eprosima::fastcdr::exception;
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;
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
#define geometry_msgs_msg_TwistWithCovariance_max_cdr_typesize
#define geometry_msgs_msg_TwistWithCovariance_max_key_cdr_typesize
This class represents the structure TwistWithCovariance 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 const geometry_msgs::msg::geometry_msgs__TwistWithCovariance__double_array_36 & covariance() const
This function returns a constant reference to member covariance
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 bool isKeyDefined()
This function tells you if the Key has been defined for this type
eProsima_user_DllExport const geometry_msgs::msg::Twist & twist() const
This function returns a constant reference to member twist
geometry_msgs::msg::geometry_msgs__TwistWithCovariance__double_array_36 m_covariance
eProsima_user_DllExport void deserialize(eprosima::fastcdr::Cdr &cdr)
This function deserializes an object using CDR serialization.
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 bool operator==(const TwistWithCovariance &x) const
Comparison operator.
eProsima_user_DllExport void serialize(eprosima::fastcdr::Cdr &cdr) const
This function serializes an object using CDR serialization.
eProsima_user_DllExport TwistWithCovariance & operator=(const TwistWithCovariance &x)
Copy assignment.
eProsima_user_DllExport TwistWithCovariance()
Default constructor.
eProsima_user_DllExport ~TwistWithCovariance()
Default destructor.
eProsima_user_DllExport bool operator!=(const TwistWithCovariance &x) const
Comparison operator.
geometry_msgs::msg::Twist m_twist
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 twist(const geometry_msgs::msg::Twist &_twist)
This function copies the value in member twist
This class represents the structure Twist defined by the user in the IDL file.
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.
std::array< double, 36 > geometry_msgs__TwistWithCovariance__double_array_36