This class represents the structure PoseWithCovariance defined by the user in the IDL file. More...
#include <PoseWithCovariance.h>
Static Public Member Functions | |
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. 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::geometry_msgs__PoseWithCovariance__double_array_36 | m_covariance |
geometry_msgs::msg::Pose | m_pose |
This class represents the structure PoseWithCovariance defined by the user in the IDL file.
Definition at line 74 of file PoseWithCovariance.h.
geometry_msgs::msg::PoseWithCovariance::PoseWithCovariance | ( | ) |
Default constructor.
Definition at line 46 of file PoseWithCovariance.cpp.
geometry_msgs::msg::PoseWithCovariance::~PoseWithCovariance | ( | ) |
Default destructor.
Definition at line 54 of file PoseWithCovariance.cpp.
geometry_msgs::msg::PoseWithCovariance::PoseWithCovariance | ( | const PoseWithCovariance & | x | ) |
Copy constructor.
x | Reference to the object geometry_msgs::msg::PoseWithCovariance that will be copied. |
Definition at line 58 of file PoseWithCovariance.cpp.
References m_covariance, and m_pose.
|
noexcept |
Move constructor.
x | Reference to the object geometry_msgs::msg::PoseWithCovariance that will be copied. |
Definition at line 65 of file PoseWithCovariance.cpp.
void geometry_msgs::msg::PoseWithCovariance::covariance | ( | const geometry_msgs::msg::geometry_msgs__PoseWithCovariance__double_array_36 & | _covariance | ) |
This function copies the value in member covariance.
_covariance | New value to be copied in member covariance |
Definition at line 175 of file PoseWithCovariance.cpp.
void geometry_msgs::msg::PoseWithCovariance::covariance | ( | geometry_msgs::msg::geometry_msgs__PoseWithCovariance__double_array_36 && | _covariance | ) |
This function moves the value in member covariance.
_covariance | New value to be moved in member covariance |
Definition at line 185 of file PoseWithCovariance.cpp.
const geometry_msgs::msg::geometry_msgs__PoseWithCovariance__double_array_36 & geometry_msgs::msg::PoseWithCovariance::covariance | ( | ) | const |
This function returns a constant reference to member covariance.
Definition at line 195 of file PoseWithCovariance.cpp.
geometry_msgs::msg::geometry_msgs__PoseWithCovariance__double_array_36 & geometry_msgs::msg::PoseWithCovariance::covariance | ( | ) |
This function returns a reference to member covariance.
Definition at line 204 of file PoseWithCovariance.cpp.
void geometry_msgs::msg::PoseWithCovariance::deserialize | ( | eprosima::fastcdr::Cdr & | cdr | ) |
This function deserializes an object using CDR serialization.
cdr | CDR serialization object. |
Definition at line 127 of file PoseWithCovariance.cpp.
Referenced by geometry_msgs::msg::PoseWithCovariancePubSubType::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 109 of file PoseWithCovariance.cpp.
References geometry_msgs::msg::Pose::getCdrSerializedSize(), and pose().
Referenced by nav_msgs::msg::Odometry::getCdrSerializedSize(), and geometry_msgs::msg::PoseWithCovariancePubSubType::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 210 of file PoseWithCovariance.cpp.
References geometry_msgs_msg_PoseWithCovariance_max_key_cdr_typesize.
Referenced by geometry_msgs::msg::PoseWithCovariancePubSubType::getKey(), and geometry_msgs::msg::PoseWithCovariancePubSubType::PoseWithCovariancePubSubType().
|
static |
This function returns the maximum serialized size of an object depending on the buffer alignment.
current_alignment | Buffer alignment. |
Definition at line 102 of file PoseWithCovariance.cpp.
References geometry_msgs_msg_PoseWithCovariance_max_cdr_typesize.
Referenced by geometry_msgs::msg::PoseWithCovariancePubSubType::PoseWithCovariancePubSubType().
|
static |
This function tells you if the Key has been defined for this type.
Definition at line 217 of file PoseWithCovariance.cpp.
Referenced by geometry_msgs::msg::PoseWithCovariancePubSubType::PoseWithCovariancePubSubType().
bool geometry_msgs::msg::PoseWithCovariance::operator!= | ( | const PoseWithCovariance & | x | ) | const |
Comparison operator.
x | geometry_msgs::msg::PoseWithCovariance object to compare. |
Definition at line 96 of file PoseWithCovariance.cpp.
geometry_msgs::msg::PoseWithCovariance & geometry_msgs::msg::PoseWithCovariance::operator= | ( | const PoseWithCovariance & | x | ) |
Copy assignment.
x | Reference to the object geometry_msgs::msg::PoseWithCovariance that will be copied. |
Definition at line 72 of file PoseWithCovariance.cpp.
References m_covariance, and m_pose.
|
noexcept |
Move assignment.
x | Reference to the object geometry_msgs::msg::PoseWithCovariance that will be copied. |
Definition at line 81 of file PoseWithCovariance.cpp.
bool geometry_msgs::msg::PoseWithCovariance::operator== | ( | const PoseWithCovariance & | x | ) | const |
Comparison operator.
x | geometry_msgs::msg::PoseWithCovariance object to compare. |
Definition at line 90 of file PoseWithCovariance.cpp.
References m_covariance, and m_pose.
void geometry_msgs::msg::PoseWithCovariance::pose | ( | const geometry_msgs::msg::Pose & | _pose | ) |
This function copies the value in member pose.
_pose | New value to be copied in member pose |
Definition at line 138 of file PoseWithCovariance.cpp.
Referenced by getCdrSerializedSize().
void geometry_msgs::msg::PoseWithCovariance::pose | ( | geometry_msgs::msg::Pose && | _pose | ) |
This function moves the value in member pose.
_pose | New value to be moved in member pose |
Definition at line 148 of file PoseWithCovariance.cpp.
const geometry_msgs::msg::Pose & geometry_msgs::msg::PoseWithCovariance::pose | ( | ) | const |
This function returns a constant reference to member pose.
Definition at line 158 of file PoseWithCovariance.cpp.
geometry_msgs::msg::Pose & geometry_msgs::msg::PoseWithCovariance::pose | ( | ) |
This function returns a reference to member pose.
Definition at line 167 of file PoseWithCovariance.cpp.
void geometry_msgs::msg::PoseWithCovariance::serialize | ( | eprosima::fastcdr::Cdr & | cdr | ) | const |
This function serializes an object using CDR serialization.
cdr | CDR serialization object. |
Definition at line 120 of file PoseWithCovariance.cpp.
Referenced by geometry_msgs::msg::PoseWithCovariancePubSubType::serialize().
void geometry_msgs::msg::PoseWithCovariance::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 222 of file PoseWithCovariance.cpp.
Referenced by geometry_msgs::msg::PoseWithCovariancePubSubType::getKey().
|
private |
Definition at line 237 of file PoseWithCovariance.h.
Referenced by operator=(), operator==(), and PoseWithCovariance().
|
private |
Definition at line 236 of file PoseWithCovariance.h.
Referenced by operator=(), operator==(), and PoseWithCovariance().