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_Quaternion_max_cdr_typesize 32ULL;
40#define geometry_msgs_msg_Pose_max_key_cdr_typesize 0ULL;
41#define geometry_msgs_msg_Point_max_key_cdr_typesize 0ULL;
42#define geometry_msgs_msg_Quaternion_max_key_cdr_typesize 0ULL;
66 m_position = std::move(x.m_position);
67 m_orientation = std::move(x.m_orientation);
86 m_position = std::move(x.m_position);
87 m_orientation = std::move(x.m_orientation);
105 return !(*
this == x);
130 eprosima::fastcdr::Cdr& scdr)
const
133 scdr << m_orientation;
137 eprosima::fastcdr::Cdr& dcdr)
140 dcdr >> m_orientation;
150 m_position = _position;
160 m_position = std::move(_position);
188 m_orientation = _orientation;
198 m_orientation = std::move(_orientation);
207 return m_orientation;
216 return m_orientation;
233 eprosima::fastcdr::Cdr& scdr)
const
#define geometry_msgs_msg_Pose_max_cdr_typesize
#define geometry_msgs_msg_Pose_max_key_cdr_typesize
return current_alignment initial_alignment
This class represents the structure Point defined by the user in the IDL file.
static eProsima_user_DllExport size_t getCdrSerializedSize(const geometry_msgs::msg::Point &data, size_t current_alignment=0)
This function returns the serialized size of a data depending on the buffer alignment.
eProsima_user_DllExport Pose()
默认构造函数。
static eProsima_user_DllExport bool isKeyDefined()
告诉您是否为此类型定义了键。
eProsima_user_DllExport void deserialize(eprosima::fastcdr::Cdr &cdr)
使用CDR序列化对对象进行反序列化。
eProsima_user_DllExport const geometry_msgs::msg::Quaternion & orientation() const
返回成员orientation的常量引用。
static eProsima_user_DllExport size_t getMaxCdrSerializedSize(size_t current_alignment=0)
返回对象的最大序列化大小,取决于缓冲区对齐。
geometry_msgs::msg::Point m_position
eProsima_user_DllExport void serializeKey(eprosima::fastcdr::Cdr &cdr) const
使用CDR序列化序列化对象的键成员。
eProsima_user_DllExport bool operator!=(const Pose &x) const
比较运算符。
eProsima_user_DllExport ~Pose()
默认析构函数。
static eProsima_user_DllExport size_t getCdrSerializedSize(const geometry_msgs::msg::Pose &data, size_t current_alignment=0)
返回数据的序列化大小,取决于缓冲区对齐。
eProsima_user_DllExport void orientation(const geometry_msgs::msg::Quaternion &_orientation)
复制成员orientation的值。
static eProsima_user_DllExport size_t getKeyMaxCdrSerializedSize(size_t current_alignment=0)
返回对象键的最大序列化大小,取决于缓冲区对齐。
geometry_msgs::msg::Quaternion m_orientation
eProsima_user_DllExport bool operator==(const Pose &x) const
比较运算符。
eProsima_user_DllExport Pose & operator=(const Pose &x)
拷贝赋值运算符。
eProsima_user_DllExport void position(const geometry_msgs::msg::Point &_position)
复制成员position的值。
eProsima_user_DllExport const geometry_msgs::msg::Point & position() const
返回成员position的常量引用。
eProsima_user_DllExport void serialize(eprosima::fastcdr::Cdr &cdr) const
使用CDR序列化对对象进行序列化。
This class represents the structure Quaternion defined by the user in the IDL file.
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.