This class represents the structure Twist defined by the user in the IDL file. 更多...
#include <Twist.h>
Public 成员函数 | |
eProsima_user_DllExport geometry_msgs::msg::Vector3 & | angular () |
This function returns a reference to member angular | |
eProsima_user_DllExport const geometry_msgs::msg::Vector3 & | angular () const |
This function returns a constant reference to member angular | |
eProsima_user_DllExport void | angular (const geometry_msgs::msg::Vector3 &_angular) |
This function copies the value in member angular | |
eProsima_user_DllExport void | angular (geometry_msgs::msg::Vector3 &&_angular) |
This function moves the value in member angular | |
eProsima_user_DllExport void | deserialize (eprosima::fastcdr::Cdr &cdr) |
This function deserializes an object using CDR serialization. | |
eProsima_user_DllExport geometry_msgs::msg::Vector3 & | linear () |
This function returns a reference to member linear | |
eProsima_user_DllExport const geometry_msgs::msg::Vector3 & | linear () const |
This function returns a constant reference to member linear | |
eProsima_user_DllExport void | linear (const geometry_msgs::msg::Vector3 &_linear) |
This function copies the value in member linear | |
eProsima_user_DllExport void | linear (geometry_msgs::msg::Vector3 &&_linear) |
This function moves the value in member linear | |
eProsima_user_DllExport bool | operator!= (const Twist &x) const |
Comparison operator. | |
eProsima_user_DllExport Twist & | operator= (const Twist &x) |
Copy assignment. | |
eProsima_user_DllExport Twist & | operator= (Twist &&x) noexcept |
Move assignment. | |
eProsima_user_DllExport bool | operator== (const Twist &x) const |
Comparison operator. | |
eProsima_user_DllExport void | serialize (eprosima::fastcdr::Cdr &cdr) const |
This function serializes an object using CDR serialization. | |
eProsima_user_DllExport void | serializeKey (eprosima::fastcdr::Cdr &cdr) const |
This function serializes the key members of an object using CDR serialization. | |
eProsima_user_DllExport | Twist () |
Default constructor. | |
eProsima_user_DllExport | Twist (const Twist &x) |
Copy constructor. | |
eProsima_user_DllExport | Twist (Twist &&x) noexcept |
Move constructor. | |
eProsima_user_DllExport | ~Twist () |
Default destructor. | |
静态 Public 成员函数 | |
static eProsima_user_DllExport size_t | getCdrSerializedSize (const geometry_msgs::msg::Twist &data, size_t current_alignment=0) |
This function returns the serialized size of a data depending on the buffer alignment. | |
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. | |
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. | |
static eProsima_user_DllExport bool | isKeyDefined () |
This function tells you if the Key has been defined for this type | |
Private 属性 | |
geometry_msgs::msg::Vector3 | m_angular |
geometry_msgs::msg::Vector3 | m_linear |
This class represents the structure Twist defined by the user in the IDL file.
geometry_msgs::msg::Twist::Twist | ( | const Twist & | x | ) |
Copy constructor.
x | Reference to the object geometry_msgs::msg::Twist that will be copied. |
|
noexcept |
Move constructor.
x | Reference to the object geometry_msgs::msg::Twist that will be copied. |
geometry_msgs::msg::Vector3 & geometry_msgs::msg::Twist::angular | ( | ) |
const geometry_msgs::msg::Vector3 & geometry_msgs::msg::Twist::angular | ( | ) | const |
void geometry_msgs::msg::Twist::angular | ( | const geometry_msgs::msg::Vector3 & | _angular | ) |
This function copies the value in member angular
_angular | New value to be copied in member angular |
被这些函数引用 getCdrSerializedSize().
void geometry_msgs::msg::Twist::angular | ( | geometry_msgs::msg::Vector3 && | _angular | ) |
void geometry_msgs::msg::Twist::deserialize | ( | eprosima::fastcdr::Cdr & | cdr | ) |
This function deserializes an object using CDR serialization.
cdr | CDR serialization object. |
被这些函数引用 geometry_msgs::msg::TwistPubSubType::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. |
引用了 angular(), geometry_msgs::msg::Vector3::getCdrSerializedSize() , 以及 linear().
被这些函数引用 geometry_msgs::msg::TwistWithCovariance::getCdrSerializedSize() , 以及 geometry_msgs::msg::TwistPubSubType::getSerializedSizeProvider().
|
static |
This function returns the maximum serialized size of the Key of an object depending on the buffer alignment.
current_alignment | Buffer alignment. |
引用了 geometry_msgs_msg_Twist_max_key_cdr_typesize.
被这些函数引用 geometry_msgs::msg::TwistPubSubType::getKey() , 以及 geometry_msgs::msg::TwistPubSubType::TwistPubSubType().
|
static |
This function returns the maximum serialized size of an object depending on the buffer alignment.
current_alignment | Buffer alignment. |
引用了 geometry_msgs_msg_Twist_max_cdr_typesize.
被这些函数引用 geometry_msgs::msg::TwistPubSubType::TwistPubSubType().
|
static |
This function tells you if the Key has been defined for this type
被这些函数引用 geometry_msgs::msg::TwistPubSubType::TwistPubSubType().
geometry_msgs::msg::Vector3 & geometry_msgs::msg::Twist::linear | ( | ) |
const geometry_msgs::msg::Vector3 & geometry_msgs::msg::Twist::linear | ( | ) | const |
void geometry_msgs::msg::Twist::linear | ( | const geometry_msgs::msg::Vector3 & | _linear | ) |
This function copies the value in member linear
_linear | New value to be copied in member linear |
被这些函数引用 getCdrSerializedSize().
void geometry_msgs::msg::Twist::linear | ( | geometry_msgs::msg::Vector3 && | _linear | ) |
bool geometry_msgs::msg::Twist::operator!= | ( | const Twist & | x | ) | const |
geometry_msgs::msg::Twist & geometry_msgs::msg::Twist::operator= | ( | const Twist & | x | ) |
Copy assignment.
x | Reference to the object geometry_msgs::msg::Twist that will be copied. |
|
noexcept |
Move assignment.
x | Reference to the object geometry_msgs::msg::Twist that will be copied. |
bool geometry_msgs::msg::Twist::operator== | ( | const Twist & | x | ) | const |
Comparison operator.
x | geometry_msgs::msg::Twist object to compare. |
void geometry_msgs::msg::Twist::serialize | ( | eprosima::fastcdr::Cdr & | cdr | ) | const |
This function serializes an object using CDR serialization.
cdr | CDR serialization object. |
被这些函数引用 geometry_msgs::msg::TwistPubSubType::serialize().
void geometry_msgs::msg::Twist::serializeKey | ( | eprosima::fastcdr::Cdr & | cdr | ) | const |
This function serializes the key members of an object using CDR serialization.
cdr | CDR serialization object. |
被这些函数引用 geometry_msgs::msg::TwistPubSubType::getKey().
|
private |
被这些函数引用 operator=(), operator==() , 以及 Twist().
|
private |
被这些函数引用 operator=(), operator==() , 以及 Twist().