30 #include <fastcdr/Cdr.h> 32 #include <fastcdr/exceptions/BadParamException.h> 37 #define geometry_msgs_msg_Vector3_max_cdr_typesize 24ULL; 38 #define geometry_msgs_msg_Transform_max_cdr_typesize 56ULL; 39 #define tf2_msgs_msg_TFMessage_max_cdr_typesize 58408ULL; 40 #define std_msgs_msg_Time_max_cdr_typesize 8ULL; 41 #define geometry_msgs_msg_TransformStamped_max_cdr_typesize 584ULL; 42 #define geometry_msgs_msg_Quaternion_max_cdr_typesize 32ULL; 43 #define std_msgs_msg_Header_max_cdr_typesize 268ULL; 44 #define geometry_msgs_msg_Vector3_max_key_cdr_typesize 0ULL; 45 #define geometry_msgs_msg_Transform_max_key_cdr_typesize 0ULL; 46 #define tf2_msgs_msg_TFMessage_max_key_cdr_typesize 0ULL; 47 #define std_msgs_msg_Time_max_key_cdr_typesize 0ULL; 48 #define geometry_msgs_msg_TransformStamped_max_key_cdr_typesize 0ULL; 49 #define geometry_msgs_msg_Quaternion_max_key_cdr_typesize 0ULL; 50 #define std_msgs_msg_Header_max_key_cdr_typesize 0ULL; 69 m_transforms = std::move(x.m_transforms);
83 m_transforms = std::move(x.m_transforms);
101 size_t current_alignment)
103 static_cast<void>(current_alignment);
109 size_t current_alignment)
111 size_t initial_alignment = current_alignment;
112 current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
114 for(
size_t a = 0; a < data.
transforms().size(); ++a)
119 return current_alignment - initial_alignment;
123 eprosima::fastcdr::Cdr& scdr)
const 125 scdr << m_transforms;
129 eprosima::fastcdr::Cdr& dcdr)
131 dcdr >> m_transforms;
139 const std::vector<geometry_msgs::msg::TransformStamped>& _transforms)
141 m_transforms = _transforms;
149 std::vector<geometry_msgs::msg::TransformStamped>&& _transforms)
151 m_transforms = std::move(_transforms);
173 size_t current_alignment)
175 static_cast<void>(current_alignment);
185 eprosima::fastcdr::Cdr& scdr)
const static eProsima_user_DllExport size_t getCdrSerializedSize(const tf2_msgs::msg::TFMessage &data, size_t current_alignment=0)
This function returns the serialized size of a data depending on the buffer alignment.
#define tf2_msgs_msg_TFMessage_max_key_cdr_typesize
eProsima_user_DllExport const std::vector< geometry_msgs::msg::TransformStamped > & transforms() const
This function returns a constant reference to member transforms.
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 TFMessage()
Default constructor.
eProsima_user_DllExport void serialize(eprosima::fastcdr::Cdr &cdr) const
This function serializes an object using CDR serialization.
eProsima_user_DllExport ~TFMessage()
Default destructor.
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 bool operator!=(const TFMessage &x) const
Comparison operator.
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 TFMessage &x) const
Comparison operator.
#define tf2_msgs_msg_TFMessage_max_cdr_typesize
This class represents the structure TFMessage defined by the user in the IDL file.
std::vector< geometry_msgs::msg::TransformStamped > m_transforms
static eProsima_user_DllExport bool isKeyDefined()
This function tells you if the Key has been defined for this type.
eProsima_user_DllExport TFMessage & operator=(const TFMessage &x)
Copy assignment.
eProsima_user_DllExport void transforms(const std::vector< geometry_msgs::msg::TransformStamped > &_transforms)
This function copies the value in member transforms.