30 #include <fastcdr/Cdr.h> 32 #include <fastcdr/exceptions/BadParamException.h> 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; 62 m_position = std::move(x.m_position);
63 m_orientation = std::move(x.m_orientation);
78 m_position = std::move(x.m_position);
79 m_orientation = std::move(x.m_orientation);
97 size_t current_alignment)
99 static_cast<void>(current_alignment);
105 size_t current_alignment)
107 size_t initial_alignment = current_alignment;
111 return current_alignment - initial_alignment;
115 eprosima::fastcdr::Cdr& scdr)
const 118 scdr << m_orientation;
122 eprosima::fastcdr::Cdr& dcdr)
125 dcdr >> m_orientation;
135 m_position = _position;
145 m_position = std::move(_position);
173 m_orientation = _orientation;
183 m_orientation = std::move(_orientation);
192 return m_orientation;
201 return m_orientation;
206 size_t current_alignment)
208 static_cast<void>(current_alignment);
218 eprosima::fastcdr::Cdr& scdr)
const eProsima_user_DllExport bool operator==(const Pose &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 const geometry_msgs::msg::Quaternion & orientation() const
This function returns a constant reference to member orientation.
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 void position(const geometry_msgs::msg::Point &_position)
This function copies the value in member position.
eProsima_user_DllExport Pose & operator=(const Pose &x)
Copy assignment.
eProsima_user_DllExport void deserialize(eprosima::fastcdr::Cdr &cdr)
This function deserializes an object using CDR serialization.
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.
eProsima_user_DllExport void orientation(const geometry_msgs::msg::Quaternion &_orientation)
This function copies the value in member orientation.
eProsima_user_DllExport Pose()
Default constructor.
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.
geometry_msgs::msg::Quaternion m_orientation
eProsima_user_DllExport ~Pose()
Default destructor.
static eProsima_user_DllExport bool isKeyDefined()
This function tells you if the Key has been defined for this type.
This class represents the structure Pose defined by the user in the IDL file.
#define geometry_msgs_msg_Pose_max_cdr_typesize
eProsima_user_DllExport void serializeKey(eprosima::fastcdr::Cdr &cdr) const
This function serializes the key members of an object using CDR serialization.
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.
geometry_msgs::msg::Point m_position
#define geometry_msgs_msg_Pose_max_key_cdr_typesize
This class represents the structure Quaternion defined by the user in the IDL file.
eProsima_user_DllExport const geometry_msgs::msg::Point & position() const
This function returns a constant reference to member position.
eProsima_user_DllExport void serialize(eprosima::fastcdr::Cdr &cdr) const
This function serializes an object using CDR serialization.
This class represents the structure Point defined by the user in the IDL file.
eProsima_user_DllExport bool operator!=(const Pose &x) const
Comparison operator.