30#include <fastcdr/Cdr.h>
32#include <fastcdr/exceptions/BadParamException.h>
33using namespace eprosima::fastcdr::exception;
37#define geometry_msgs_msg_Pose_max_cdr_typesize 56ULL;
38#define geometry_msgs_msg_Point_max_cdr_typesize 24ULL;
39#define geometry_msgs_msg_PoseWithCovariance_max_cdr_typesize 344ULL;
40#define geometry_msgs_msg_Quaternion_max_cdr_typesize 32ULL;
41#define geometry_msgs_msg_Pose_max_key_cdr_typesize 0ULL;
42#define geometry_msgs_msg_Point_max_key_cdr_typesize 0ULL;
43#define geometry_msgs_msg_PoseWithCovariance_max_key_cdr_typesize 0ULL;
44#define geometry_msgs_msg_Quaternion_max_key_cdr_typesize 0ULL;
68 m_pose = std::move(x.m_pose);
69 m_covariance = std::move(x.m_covariance);
84 m_pose = std::move(x.m_pose);
85 m_covariance = std::move(x.m_covariance);
103 size_t current_alignment)
105 static_cast<void>(current_alignment);
111 size_t current_alignment)
113 size_t initial_alignment = current_alignment;
115 current_alignment += ((36) * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8);
117 return current_alignment - initial_alignment;
121 eprosima::fastcdr::Cdr& scdr)
const
124 scdr << m_covariance;
128 eprosima::fastcdr::Cdr& dcdr)
131 dcdr >> m_covariance;
151 m_pose = std::move(_pose);
178 m_covariance = _covariance;
188 m_covariance = std::move(_covariance);
211 size_t current_alignment)
213 static_cast<void>(current_alignment);
223 eprosima::fastcdr::Cdr& scdr)
const
#define geometry_msgs_msg_PoseWithCovariance_max_cdr_typesize
#define geometry_msgs_msg_PoseWithCovariance_max_key_cdr_typesize
This class represents the structure PoseWithCovariance defined by the user in the IDL file.
geometry_msgs::msg::geometry_msgs__PoseWithCovariance__double_array_36 m_covariance
geometry_msgs::msg::Pose m_pose
eProsima_user_DllExport void serialize(eprosima::fastcdr::Cdr &cdr) const
This function serializes an object using CDR serialization.
static eProsima_user_DllExport size_t getCdrSerializedSize(const geometry_msgs::msg::PoseWithCovariance &data, size_t current_alignment=0)
This function returns the serialized size of a data depending on the buffer alignment.
eProsima_user_DllExport const geometry_msgs::msg::Pose & pose() const
This function returns a constant reference to member pose
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 serializeKey(eprosima::fastcdr::Cdr &cdr) const
This function serializes the key members of an object using CDR serialization.
eProsima_user_DllExport ~PoseWithCovariance()
Default destructor.
eProsima_user_DllExport bool operator==(const PoseWithCovariance &x) const
Comparison operator.
eProsima_user_DllExport bool operator!=(const PoseWithCovariance &x) const
Comparison operator.
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 const geometry_msgs::msg::geometry_msgs__PoseWithCovariance__double_array_36 & covariance() const
This function returns a constant reference to member covariance
static eProsima_user_DllExport bool isKeyDefined()
This function tells you if the Key has been defined for this type
eProsima_user_DllExport void pose(const geometry_msgs::msg::Pose &_pose)
This function copies the value in member pose
eProsima_user_DllExport PoseWithCovariance()
Default constructor.
eProsima_user_DllExport PoseWithCovariance & operator=(const PoseWithCovariance &x)
Copy assignment.
eProsima_user_DllExport void deserialize(eprosima::fastcdr::Cdr &cdr)
This function deserializes an object using CDR serialization.
This class represents the structure Pose defined by the user in the IDL file.
static eProsima_user_DllExport size_t getCdrSerializedSize(const geometry_msgs::msg::Pose &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__PoseWithCovariance__double_array_36