This class represents the structure Twist defined by the user in the IDL file. More...
#include <Twist.h>
Public Member Functions | |
eProsima_user_DllExport void | angular (const geometry_msgs::msg::Vector3 &_angular) |
This function copies the value in member angular. More... | |
eProsima_user_DllExport void | angular (geometry_msgs::msg::Vector3 &&_angular) |
This function moves the value in member angular. More... | |
eProsima_user_DllExport const geometry_msgs::msg::Vector3 & | angular () const |
This function returns a constant reference to member angular. More... | |
eProsima_user_DllExport geometry_msgs::msg::Vector3 & | angular () |
This function returns a reference to member angular. More... | |
eProsima_user_DllExport void | deserialize (eprosima::fastcdr::Cdr &cdr) |
This function deserializes an object using CDR serialization. More... | |
eProsima_user_DllExport void | linear (const geometry_msgs::msg::Vector3 &_linear) |
This function copies the value in member linear. More... | |
eProsima_user_DllExport void | linear (geometry_msgs::msg::Vector3 &&_linear) |
This function moves the value in member linear. More... | |
eProsima_user_DllExport const geometry_msgs::msg::Vector3 & | linear () const |
This function returns a constant reference to member linear. More... | |
eProsima_user_DllExport geometry_msgs::msg::Vector3 & | linear () |
This function returns a reference to member linear. More... | |
eProsima_user_DllExport bool | operator!= (const Twist &x) const |
Comparison operator. More... | |
eProsima_user_DllExport Twist & | operator= (const Twist &x) |
Copy assignment. More... | |
eProsima_user_DllExport Twist & | operator= (Twist &&x) noexcept |
Move assignment. More... | |
eProsima_user_DllExport bool | operator== (const Twist &x) const |
Comparison operator. 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 | Twist () |
Default constructor. More... | |
eProsima_user_DllExport | Twist (const Twist &x) |
Copy constructor. More... | |
eProsima_user_DllExport | Twist (Twist &&x) noexcept |
Move constructor. More... | |
eProsima_user_DllExport | ~Twist () |
Default destructor. More... | |
Static Public Member Functions | |
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. 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::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. |
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 |
Definition at line 168 of file Twist.cpp.
Referenced by getCdrSerializedSize().
void geometry_msgs::msg::Twist::angular | ( | geometry_msgs::msg::Vector3 && | _angular | ) |
const geometry_msgs::msg::Vector3 & geometry_msgs::msg::Twist::angular | ( | ) | const |
geometry_msgs::msg::Vector3 & geometry_msgs::msg::Twist::angular | ( | ) |
void geometry_msgs::msg::Twist::deserialize | ( | eprosima::fastcdr::Cdr & | cdr | ) |
This function deserializes an object using CDR serialization.
cdr | CDR serialization object. |
Definition at line 119 of file Twist.cpp.
Referenced by 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. |
Definition at line 101 of file Twist.cpp.
References angular(), geometry_msgs::msg::Vector3::getCdrSerializedSize(), and linear().
Referenced by geometry_msgs::msg::TwistWithCovariance::getCdrSerializedSize(), and 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. |
Definition at line 203 of file Twist.cpp.
References geometry_msgs_msg_Twist_max_key_cdr_typesize.
Referenced by geometry_msgs::msg::TwistPubSubType::getKey(), and 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. |
Definition at line 94 of file Twist.cpp.
References geometry_msgs_msg_Twist_max_cdr_typesize.
Referenced by geometry_msgs::msg::TwistPubSubType::TwistPubSubType().
|
static |
This function tells you if the Key has been defined for this type.
Definition at line 210 of file Twist.cpp.
Referenced by geometry_msgs::msg::TwistPubSubType::TwistPubSubType().
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 |
Definition at line 130 of file Twist.cpp.
Referenced by getCdrSerializedSize().
void geometry_msgs::msg::Twist::linear | ( | geometry_msgs::msg::Vector3 && | _linear | ) |
const geometry_msgs::msg::Vector3 & geometry_msgs::msg::Twist::linear | ( | ) | const |
geometry_msgs::msg::Vector3 & geometry_msgs::msg::Twist::linear | ( | ) |
bool geometry_msgs::msg::Twist::operator!= | ( | const Twist & | x | ) | const |
Comparison operator.
x | geometry_msgs::msg::Twist object to compare. |
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. |
Definition at line 112 of file Twist.cpp.
Referenced by 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. |
Definition at line 215 of file Twist.cpp.
Referenced by geometry_msgs::msg::TwistPubSubType::getKey().
|
private |
Definition at line 235 of file Twist.h.
Referenced by operator=(), operator==(), and Twist().
|
private |
Definition at line 234 of file Twist.h.
Referenced by operator=(), operator==(), and Twist().