This class represents the structure TwistWithCovariance defined by the user in the IDL file. More...
#include <TwistWithCovariance.h>
Static Public Member Functions | |
static eProsima_user_DllExport size_t | getCdrSerializedSize (const geometry_msgs::msg::TwistWithCovariance &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__TwistWithCovariance__double_array_36 | m_covariance |
geometry_msgs::msg::Twist | m_twist |
This class represents the structure TwistWithCovariance defined by the user in the IDL file.
Definition at line 74 of file TwistWithCovariance.h.
geometry_msgs::msg::TwistWithCovariance::TwistWithCovariance | ( | ) |
Default constructor.
Definition at line 44 of file TwistWithCovariance.cpp.
geometry_msgs::msg::TwistWithCovariance::~TwistWithCovariance | ( | ) |
Default destructor.
Definition at line 52 of file TwistWithCovariance.cpp.
geometry_msgs::msg::TwistWithCovariance::TwistWithCovariance | ( | const TwistWithCovariance & | x | ) |
Copy constructor.
x | Reference to the object geometry_msgs::msg::TwistWithCovariance that will be copied. |
Definition at line 56 of file TwistWithCovariance.cpp.
References m_covariance, and m_twist.
|
noexcept |
Move constructor.
x | Reference to the object geometry_msgs::msg::TwistWithCovariance that will be copied. |
Definition at line 63 of file TwistWithCovariance.cpp.
void geometry_msgs::msg::TwistWithCovariance::covariance | ( | const geometry_msgs::msg::geometry_msgs__TwistWithCovariance__double_array_36 & | _covariance | ) |
This function copies the value in member covariance.
_covariance | New value to be copied in member covariance |
Definition at line 174 of file TwistWithCovariance.cpp.
void geometry_msgs::msg::TwistWithCovariance::covariance | ( | geometry_msgs::msg::geometry_msgs__TwistWithCovariance__double_array_36 && | _covariance | ) |
This function moves the value in member covariance.
_covariance | New value to be moved in member covariance |
Definition at line 184 of file TwistWithCovariance.cpp.
const geometry_msgs::msg::geometry_msgs__TwistWithCovariance__double_array_36 & geometry_msgs::msg::TwistWithCovariance::covariance | ( | ) | const |
This function returns a constant reference to member covariance.
Definition at line 194 of file TwistWithCovariance.cpp.
geometry_msgs::msg::geometry_msgs__TwistWithCovariance__double_array_36 & geometry_msgs::msg::TwistWithCovariance::covariance | ( | ) |
This function returns a reference to member covariance.
Definition at line 203 of file TwistWithCovariance.cpp.
void geometry_msgs::msg::TwistWithCovariance::deserialize | ( | eprosima::fastcdr::Cdr & | cdr | ) |
This function deserializes an object using CDR serialization.
cdr | CDR serialization object. |
Definition at line 125 of file TwistWithCovariance.cpp.
Referenced by geometry_msgs::msg::TwistWithCovariancePubSubType::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 107 of file TwistWithCovariance.cpp.
References geometry_msgs::msg::Twist::getCdrSerializedSize(), and twist().
Referenced by nav_msgs::msg::Odometry::getCdrSerializedSize(), and geometry_msgs::msg::TwistWithCovariancePubSubType::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 208 of file TwistWithCovariance.cpp.
References geometry_msgs_msg_TwistWithCovariance_max_key_cdr_typesize.
Referenced by geometry_msgs::msg::TwistWithCovariancePubSubType::getKey(), and geometry_msgs::msg::TwistWithCovariancePubSubType::TwistWithCovariancePubSubType().
|
static |
This function returns the maximum serialized size of an object depending on the buffer alignment.
current_alignment | Buffer alignment. |
Definition at line 100 of file TwistWithCovariance.cpp.
References geometry_msgs_msg_TwistWithCovariance_max_cdr_typesize.
Referenced by geometry_msgs::msg::TwistWithCovariancePubSubType::TwistWithCovariancePubSubType().
|
static |
This function tells you if the Key has been defined for this type.
Definition at line 215 of file TwistWithCovariance.cpp.
Referenced by geometry_msgs::msg::TwistWithCovariancePubSubType::TwistWithCovariancePubSubType().
bool geometry_msgs::msg::TwistWithCovariance::operator!= | ( | const TwistWithCovariance & | x | ) | const |
Comparison operator.
x | geometry_msgs::msg::TwistWithCovariance object to compare. |
Definition at line 94 of file TwistWithCovariance.cpp.
geometry_msgs::msg::TwistWithCovariance & geometry_msgs::msg::TwistWithCovariance::operator= | ( | const TwistWithCovariance & | x | ) |
Copy assignment.
x | Reference to the object geometry_msgs::msg::TwistWithCovariance that will be copied. |
Definition at line 70 of file TwistWithCovariance.cpp.
References m_covariance, and m_twist.
|
noexcept |
Move assignment.
x | Reference to the object geometry_msgs::msg::TwistWithCovariance that will be copied. |
Definition at line 79 of file TwistWithCovariance.cpp.
bool geometry_msgs::msg::TwistWithCovariance::operator== | ( | const TwistWithCovariance & | x | ) | const |
Comparison operator.
x | geometry_msgs::msg::TwistWithCovariance object to compare. |
Definition at line 88 of file TwistWithCovariance.cpp.
References m_covariance, and m_twist.
void geometry_msgs::msg::TwistWithCovariance::serialize | ( | eprosima::fastcdr::Cdr & | cdr | ) | const |
This function serializes an object using CDR serialization.
cdr | CDR serialization object. |
Definition at line 118 of file TwistWithCovariance.cpp.
Referenced by geometry_msgs::msg::TwistWithCovariancePubSubType::serialize().
void geometry_msgs::msg::TwistWithCovariance::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 220 of file TwistWithCovariance.cpp.
Referenced by geometry_msgs::msg::TwistWithCovariancePubSubType::getKey().
void geometry_msgs::msg::TwistWithCovariance::twist | ( | const geometry_msgs::msg::Twist & | _twist | ) |
This function copies the value in member twist.
_twist | New value to be copied in member twist |
Definition at line 136 of file TwistWithCovariance.cpp.
Referenced by getCdrSerializedSize().
void geometry_msgs::msg::TwistWithCovariance::twist | ( | geometry_msgs::msg::Twist && | _twist | ) |
This function moves the value in member twist.
_twist | New value to be moved in member twist |
Definition at line 146 of file TwistWithCovariance.cpp.
const geometry_msgs::msg::Twist & geometry_msgs::msg::TwistWithCovariance::twist | ( | ) | const |
This function returns a constant reference to member twist.
Definition at line 156 of file TwistWithCovariance.cpp.
geometry_msgs::msg::Twist & geometry_msgs::msg::TwistWithCovariance::twist | ( | ) |
This function returns a reference to member twist.
Definition at line 165 of file TwistWithCovariance.cpp.
|
private |
Definition at line 237 of file TwistWithCovariance.h.
Referenced by operator=(), operator==(), and TwistWithCovariance().
|
private |
Definition at line 236 of file TwistWithCovariance.h.
Referenced by operator=(), operator==(), and TwistWithCovariance().