This class represents the structure Pose defined by the user in the IDL file. More...
#include <Pose.h>
Public Member Functions | |
eProsima_user_DllExport void | deserialize (eprosima::fastcdr::Cdr &cdr) |
This function deserializes an object using CDR serialization. More... | |
eProsima_user_DllExport bool | operator!= (const Pose &x) const |
Comparison operator. More... | |
eProsima_user_DllExport Pose & | operator= (const Pose &x) |
Copy assignment. More... | |
eProsima_user_DllExport Pose & | operator= (Pose &&x) noexcept |
Move assignment. More... | |
eProsima_user_DllExport bool | operator== (const Pose &x) const |
Comparison operator. More... | |
eProsima_user_DllExport void | orientation (const geometry_msgs::msg::Quaternion &_orientation) |
This function copies the value in member orientation. More... | |
eProsima_user_DllExport void | orientation (geometry_msgs::msg::Quaternion &&_orientation) |
This function moves the value in member orientation. More... | |
eProsima_user_DllExport const geometry_msgs::msg::Quaternion & | orientation () const |
This function returns a constant reference to member orientation. More... | |
eProsima_user_DllExport geometry_msgs::msg::Quaternion & | orientation () |
This function returns a reference to member orientation. More... | |
eProsima_user_DllExport | Pose () |
Default constructor. More... | |
eProsima_user_DllExport | Pose (const Pose &x) |
Copy constructor. More... | |
eProsima_user_DllExport | Pose (Pose &&x) noexcept |
Move constructor. More... | |
eProsima_user_DllExport void | position (const geometry_msgs::msg::Point &_position) |
This function copies the value in member position. More... | |
eProsima_user_DllExport void | position (geometry_msgs::msg::Point &&_position) |
This function moves the value in member position. More... | |
eProsima_user_DllExport const geometry_msgs::msg::Point & | position () const |
This function returns a constant reference to member position. More... | |
eProsima_user_DllExport geometry_msgs::msg::Point & | position () |
This function returns a reference to member position. More... | |
eProsima_user_DllExport void | serialize (eprosima::fastcdr::Cdr &cdr) const |
This function serializes an object using CDR serialization. More... | |
eProsima_user_DllExport void | serializeKey (eprosima::fastcdr::Cdr &cdr) const |
This function serializes the key members of an object using CDR serialization. More... | |
eProsima_user_DllExport | ~Pose () |
Default destructor. More... | |
Static Public Member Functions | |
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. More... | |
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 alignment. More... | |
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. More... | |
static eProsima_user_DllExport bool | isKeyDefined () |
This function tells you if the Key has been defined for this type. More... | |
Private Attributes | |
geometry_msgs::msg::Quaternion | m_orientation |
geometry_msgs::msg::Point | m_position |
This class represents the structure Pose defined by the user in the IDL file.
geometry_msgs::msg::Pose::Pose | ( | const Pose & | x | ) |
Copy constructor.
x | Reference to the object geometry_msgs::msg::Pose that will be copied. |
Definition at line 52 of file Pose.cpp.
References m_orientation, and m_position.
|
noexcept |
Move constructor.
x | Reference to the object geometry_msgs::msg::Pose that will be copied. |
void geometry_msgs::msg::Pose::deserialize | ( | eprosima::fastcdr::Cdr & | cdr | ) |
This function deserializes an object using CDR serialization.
cdr | CDR serialization object. |
Definition at line 121 of file Pose.cpp.
Referenced by geometry_msgs::msg::PosePubSubType::deserialize().
|
static |
This function returns the serialized size of a data depending on the buffer alignment.
data | Data which is calculated its serialized size. |
current_alignment | Buffer alignment. |
Definition at line 103 of file Pose.cpp.
References geometry_msgs::msg::Point::getCdrSerializedSize(), geometry_msgs::msg::Quaternion::getCdrSerializedSize(), orientation(), and position().
Referenced by geometry_msgs::msg::PoseWithCovariance::getCdrSerializedSize(), and geometry_msgs::msg::PosePubSubType::getSerializedSizeProvider().
|
static |
This function returns the maximum serialized size of the Key of an object depending on the buffer alignment.
current_alignment | Buffer alignment. |
Definition at line 205 of file Pose.cpp.
References geometry_msgs_msg_Pose_max_key_cdr_typesize.
Referenced by geometry_msgs::msg::PosePubSubType::getKey(), and geometry_msgs::msg::PosePubSubType::PosePubSubType().
|
static |
This function returns the maximum serialized size of an object depending on the buffer alignment.
current_alignment | Buffer alignment. |
Definition at line 96 of file Pose.cpp.
References geometry_msgs_msg_Pose_max_cdr_typesize.
Referenced by geometry_msgs::msg::PosePubSubType::PosePubSubType().
|
static |
This function tells you if the Key has been defined for this type.
Definition at line 212 of file Pose.cpp.
Referenced by geometry_msgs::msg::PosePubSubType::PosePubSubType().
bool geometry_msgs::msg::Pose::operator!= | ( | const Pose & | x | ) | const |
Comparison operator.
x | geometry_msgs::msg::Pose object to compare. |
geometry_msgs::msg::Pose & geometry_msgs::msg::Pose::operator= | ( | const Pose & | x | ) |
Copy assignment.
x | Reference to the object geometry_msgs::msg::Pose that will be copied. |
Definition at line 66 of file Pose.cpp.
References m_orientation, and m_position.
|
noexcept |
Move assignment.
x | Reference to the object geometry_msgs::msg::Pose that will be copied. |
bool geometry_msgs::msg::Pose::operator== | ( | const Pose & | x | ) | const |
Comparison operator.
x | geometry_msgs::msg::Pose object to compare. |
Definition at line 84 of file Pose.cpp.
References m_orientation, and m_position.
void geometry_msgs::msg::Pose::orientation | ( | const geometry_msgs::msg::Quaternion & | _orientation | ) |
This function copies the value in member orientation.
_orientation | New value to be copied in member orientation |
Definition at line 170 of file Pose.cpp.
Referenced by getCdrSerializedSize().
void geometry_msgs::msg::Pose::orientation | ( | geometry_msgs::msg::Quaternion && | _orientation | ) |
const geometry_msgs::msg::Quaternion & geometry_msgs::msg::Pose::orientation | ( | ) | const |
geometry_msgs::msg::Quaternion & geometry_msgs::msg::Pose::orientation | ( | ) |
void geometry_msgs::msg::Pose::position | ( | const geometry_msgs::msg::Point & | _position | ) |
This function copies the value in member position.
_position | New value to be copied in member position |
Definition at line 132 of file Pose.cpp.
Referenced by getCdrSerializedSize().
void geometry_msgs::msg::Pose::position | ( | geometry_msgs::msg::Point && | _position | ) |
const geometry_msgs::msg::Point & geometry_msgs::msg::Pose::position | ( | ) | const |
geometry_msgs::msg::Point & geometry_msgs::msg::Pose::position | ( | ) |
void geometry_msgs::msg::Pose::serialize | ( | eprosima::fastcdr::Cdr & | cdr | ) | const |
This function serializes an object using CDR serialization.
cdr | CDR serialization object. |
Definition at line 114 of file Pose.cpp.
Referenced by geometry_msgs::msg::PosePubSubType::serialize().
void geometry_msgs::msg::Pose::serializeKey | ( | eprosima::fastcdr::Cdr & | cdr | ) | const |
This function serializes the key members of an object using CDR serialization.
cdr | CDR serialization object. |
Definition at line 217 of file Pose.cpp.
Referenced by geometry_msgs::msg::PosePubSubType::getKey().
|
private |
Definition at line 236 of file Pose.h.
Referenced by operator=(), operator==(), and Pose().
|
private |
Definition at line 235 of file Pose.h.
Referenced by operator=(), operator==(), and Pose().