This class represents the structure Transform defined by the user in the IDL file. More...
#include <Transform.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 Transform &x) const |
Comparison operator. More... | |
eProsima_user_DllExport Transform & | operator= (const Transform &x) |
Copy assignment. More... | |
eProsima_user_DllExport Transform & | operator= (Transform &&x) noexcept |
Move assignment. More... | |
eProsima_user_DllExport bool | operator== (const Transform &x) const |
Comparison operator. More... | |
eProsima_user_DllExport void | rotation (const geometry_msgs::msg::Quaternion &_rotation) |
This function copies the value in member rotation. More... | |
eProsima_user_DllExport void | rotation (geometry_msgs::msg::Quaternion &&_rotation) |
This function moves the value in member rotation. More... | |
eProsima_user_DllExport const geometry_msgs::msg::Quaternion & | rotation () const |
This function returns a constant reference to member rotation. More... | |
eProsima_user_DllExport geometry_msgs::msg::Quaternion & | rotation () |
This function returns a reference to member rotation. 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 | Transform () |
Default constructor. More... | |
eProsima_user_DllExport | Transform (const Transform &x) |
Copy constructor. More... | |
eProsima_user_DllExport | Transform (Transform &&x) noexcept |
Move constructor. More... | |
eProsima_user_DllExport void | translation (const geometry_msgs::msg::Vector3 &_translation) |
This function copies the value in member translation. More... | |
eProsima_user_DllExport void | translation (geometry_msgs::msg::Vector3 &&_translation) |
This function moves the value in member translation. More... | |
eProsima_user_DllExport const geometry_msgs::msg::Vector3 & | translation () const |
This function returns a constant reference to member translation. More... | |
eProsima_user_DllExport geometry_msgs::msg::Vector3 & | translation () |
This function returns a reference to member translation. More... | |
eProsima_user_DllExport | ~Transform () |
Default destructor. More... | |
Static Public Member Functions | |
static eProsima_user_DllExport size_t | getCdrSerializedSize (const geometry_msgs::msg::Transform &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_rotation |
geometry_msgs::msg::Vector3 | m_translation |
This class represents the structure Transform defined by the user in the IDL file.
Definition at line 73 of file ros2/types/Transform.h.
geometry_msgs::msg::Transform::Transform | ( | ) |
Default constructor.
Definition at line 44 of file Transform.cpp.
geometry_msgs::msg::Transform::~Transform | ( | ) |
Default destructor.
Definition at line 48 of file Transform.cpp.
geometry_msgs::msg::Transform::Transform | ( | const Transform & | x | ) |
Copy constructor.
x | Reference to the object geometry_msgs::msg::Transform that will be copied. |
Definition at line 52 of file Transform.cpp.
References m_rotation, and m_translation.
|
noexcept |
Move constructor.
x | Reference to the object geometry_msgs::msg::Transform that will be copied. |
Definition at line 59 of file Transform.cpp.
void geometry_msgs::msg::Transform::deserialize | ( | eprosima::fastcdr::Cdr & | cdr | ) |
This function deserializes an object using CDR serialization.
cdr | CDR serialization object. |
Definition at line 121 of file Transform.cpp.
Referenced by geometry_msgs::msg::TransformPubSubType::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 Transform.cpp.
References geometry_msgs::msg::Vector3::getCdrSerializedSize(), geometry_msgs::msg::Quaternion::getCdrSerializedSize(), rotation(), and translation().
Referenced by geometry_msgs::msg::TransformStamped::getCdrSerializedSize(), and geometry_msgs::msg::TransformPubSubType::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 Transform.cpp.
References geometry_msgs_msg_Transform_max_key_cdr_typesize.
Referenced by geometry_msgs::msg::TransformPubSubType::getKey(), and geometry_msgs::msg::TransformPubSubType::TransformPubSubType().
|
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 Transform.cpp.
References geometry_msgs_msg_Transform_max_cdr_typesize.
Referenced by geometry_msgs::msg::TransformPubSubType::TransformPubSubType().
|
static |
This function tells you if the Key has been defined for this type.
Definition at line 210 of file Transform.cpp.
Referenced by geometry_msgs::msg::TransformPubSubType::TransformPubSubType().
bool geometry_msgs::msg::Transform::operator!= | ( | const Transform & | x | ) | const |
Comparison operator.
x | geometry_msgs::msg::Transform object to compare. |
Definition at line 90 of file Transform.cpp.
geometry_msgs::msg::Transform & geometry_msgs::msg::Transform::operator= | ( | const Transform & | x | ) |
Copy assignment.
x | Reference to the object geometry_msgs::msg::Transform that will be copied. |
Definition at line 66 of file Transform.cpp.
References m_rotation, and m_translation.
|
noexcept |
Move assignment.
x | Reference to the object geometry_msgs::msg::Transform that will be copied. |
Definition at line 75 of file Transform.cpp.
bool geometry_msgs::msg::Transform::operator== | ( | const Transform & | x | ) | const |
Comparison operator.
x | geometry_msgs::msg::Transform object to compare. |
Definition at line 84 of file Transform.cpp.
References m_rotation, and m_translation.
void geometry_msgs::msg::Transform::rotation | ( | const geometry_msgs::msg::Quaternion & | _rotation | ) |
This function copies the value in member rotation.
_rotation | New value to be copied in member rotation |
Definition at line 169 of file Transform.cpp.
Referenced by getCdrSerializedSize(), and carla::ros2::CarlaTransformPublisher::SetData().
void geometry_msgs::msg::Transform::rotation | ( | geometry_msgs::msg::Quaternion && | _rotation | ) |
This function moves the value in member rotation.
_rotation | New value to be moved in member rotation |
Definition at line 179 of file Transform.cpp.
const geometry_msgs::msg::Quaternion & geometry_msgs::msg::Transform::rotation | ( | ) | const |
This function returns a constant reference to member rotation.
Definition at line 189 of file Transform.cpp.
geometry_msgs::msg::Quaternion & geometry_msgs::msg::Transform::rotation | ( | ) |
This function returns a reference to member rotation.
Definition at line 198 of file Transform.cpp.
void geometry_msgs::msg::Transform::serialize | ( | eprosima::fastcdr::Cdr & | cdr | ) | const |
This function serializes an object using CDR serialization.
cdr | CDR serialization object. |
Definition at line 114 of file Transform.cpp.
Referenced by geometry_msgs::msg::TransformPubSubType::serialize().
void geometry_msgs::msg::Transform::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 Transform.cpp.
Referenced by geometry_msgs::msg::TransformPubSubType::getKey().
void geometry_msgs::msg::Transform::translation | ( | const geometry_msgs::msg::Vector3 & | _translation | ) |
This function copies the value in member translation.
_translation | New value to be copied in member translation |
Definition at line 132 of file Transform.cpp.
Referenced by getCdrSerializedSize(), and carla::ros2::CarlaTransformPublisher::SetData().
void geometry_msgs::msg::Transform::translation | ( | geometry_msgs::msg::Vector3 && | _translation | ) |
This function moves the value in member translation.
_translation | New value to be moved in member translation |
Definition at line 142 of file Transform.cpp.
const geometry_msgs::msg::Vector3 & geometry_msgs::msg::Transform::translation | ( | ) | const |
This function returns a constant reference to member translation.
Definition at line 152 of file Transform.cpp.
geometry_msgs::msg::Vector3 & geometry_msgs::msg::Transform::translation | ( | ) |
This function returns a reference to member translation.
Definition at line 161 of file Transform.cpp.
|
private |
Definition at line 236 of file ros2/types/Transform.h.
Referenced by operator=(), operator==(), and Transform().
|
private |
Definition at line 235 of file ros2/types/Transform.h.
Referenced by operator=(), operator==(), and Transform().