This class represents the structure TransformStamped defined by the user in the IDL file. More...
#include <TransformStamped.h>
Public Member Functions | |
eProsima_user_DllExport void | child_frame_id (const std::string &_child_frame_id) |
This function copies the value in member child_frame_id. More... | |
eProsima_user_DllExport void | child_frame_id (std::string &&_child_frame_id) |
This function moves the value in member child_frame_id. More... | |
eProsima_user_DllExport const std::string & | child_frame_id () const |
This function returns a constant reference to member child_frame_id. More... | |
eProsima_user_DllExport std::string & | child_frame_id () |
This function returns a reference to member child_frame_id. More... | |
eProsima_user_DllExport void | deserialize (eprosima::fastcdr::Cdr &cdr) |
This function deserializes an object using CDR serialization. More... | |
eProsima_user_DllExport void | header (const std_msgs::msg::Header &_header) |
This function copies the value in member header. More... | |
eProsima_user_DllExport void | header (std_msgs::msg::Header &&_header) |
This function moves the value in member header. More... | |
eProsima_user_DllExport const std_msgs::msg::Header & | header () const |
This function returns a constant reference to member header. More... | |
eProsima_user_DllExport std_msgs::msg::Header & | header () |
This function returns a reference to member header. More... | |
eProsima_user_DllExport bool | operator!= (const TransformStamped &x) const |
Comparison operator. More... | |
eProsima_user_DllExport TransformStamped & | operator= (const TransformStamped &x) |
Copy assignment. More... | |
eProsima_user_DllExport TransformStamped & | operator= (TransformStamped &&x) noexcept |
Move assignment. More... | |
eProsima_user_DllExport bool | operator== (const TransformStamped &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 void | transform (const geometry_msgs::msg::Transform &_transform) |
This function copies the value in member transform. More... | |
eProsima_user_DllExport void | transform (geometry_msgs::msg::Transform &&_transform) |
This function moves the value in member transform. More... | |
eProsima_user_DllExport const geometry_msgs::msg::Transform & | transform () const |
This function returns a constant reference to member transform. More... | |
eProsima_user_DllExport geometry_msgs::msg::Transform & | transform () |
This function returns a reference to member transform. More... | |
eProsima_user_DllExport | TransformStamped () |
Default constructor. More... | |
eProsima_user_DllExport | TransformStamped (const TransformStamped &x) |
Copy constructor. More... | |
eProsima_user_DllExport | TransformStamped (TransformStamped &&x) noexcept |
Move constructor. More... | |
eProsima_user_DllExport | ~TransformStamped () |
Default destructor. More... | |
Static Public Member Functions | |
static eProsima_user_DllExport size_t | getCdrSerializedSize (const geometry_msgs::msg::TransformStamped &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 | |
std::string | m_child_frame_id |
std_msgs::msg::Header | m_header |
geometry_msgs::msg::Transform | m_transform |
This class represents the structure TransformStamped defined by the user in the IDL file.
Definition at line 73 of file TransformStamped.h.
geometry_msgs::msg::TransformStamped::TransformStamped | ( | ) |
Default constructor.
Definition at line 50 of file TransformStamped.cpp.
geometry_msgs::msg::TransformStamped::~TransformStamped | ( | ) |
Default destructor.
Definition at line 59 of file TransformStamped.cpp.
geometry_msgs::msg::TransformStamped::TransformStamped | ( | const TransformStamped & | x | ) |
Copy constructor.
x | Reference to the object geometry_msgs::msg::TransformStamped that will be copied. |
Definition at line 63 of file TransformStamped.cpp.
References m_child_frame_id, m_header, and m_transform.
|
noexcept |
Move constructor.
x | Reference to the object geometry_msgs::msg::TransformStamped that will be copied. |
Definition at line 71 of file TransformStamped.cpp.
void geometry_msgs::msg::TransformStamped::child_frame_id | ( | const std::string & | _child_frame_id | ) |
This function copies the value in member child_frame_id.
_child_frame_id | New value to be copied in member child_frame_id |
Definition at line 188 of file TransformStamped.cpp.
Referenced by getCdrSerializedSize(), and carla::ros2::CarlaTransformPublisher::SetData().
void geometry_msgs::msg::TransformStamped::child_frame_id | ( | std::string && | _child_frame_id | ) |
This function moves the value in member child_frame_id.
_child_frame_id | New value to be moved in member child_frame_id |
Definition at line 198 of file TransformStamped.cpp.
const std::string & geometry_msgs::msg::TransformStamped::child_frame_id | ( | ) | const |
This function returns a constant reference to member child_frame_id.
Definition at line 208 of file TransformStamped.cpp.
std::string & geometry_msgs::msg::TransformStamped::child_frame_id | ( | ) |
This function returns a reference to member child_frame_id.
Definition at line 217 of file TransformStamped.cpp.
void geometry_msgs::msg::TransformStamped::deserialize | ( | eprosima::fastcdr::Cdr & | cdr | ) |
This function deserializes an object using CDR serialization.
cdr | CDR serialization object. |
Definition at line 138 of file TransformStamped.cpp.
Referenced by geometry_msgs::msg::TransformStampedPubSubType::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 118 of file TransformStamped.cpp.
References child_frame_id(), std_msgs::msg::Header::getCdrSerializedSize(), geometry_msgs::msg::Transform::getCdrSerializedSize(), header(), and transform().
Referenced by tf2_msgs::msg::TFMessage::getCdrSerializedSize(), and geometry_msgs::msg::TransformStampedPubSubType::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 260 of file TransformStamped.cpp.
References geometry_msgs_msg_TransformStamped_max_key_cdr_typesize.
Referenced by geometry_msgs::msg::TransformStampedPubSubType::getKey(), and geometry_msgs::msg::TransformStampedPubSubType::TransformStampedPubSubType().
|
static |
This function returns the maximum serialized size of an object depending on the buffer alignment.
current_alignment | Buffer alignment. |
Definition at line 111 of file TransformStamped.cpp.
References geometry_msgs_msg_TransformStamped_max_cdr_typesize.
Referenced by geometry_msgs::msg::TransformStampedPubSubType::TransformStampedPubSubType().
void geometry_msgs::msg::TransformStamped::header | ( | const std_msgs::msg::Header & | _header | ) |
This function copies the value in member header.
_header | New value to be copied in member header |
Definition at line 150 of file TransformStamped.cpp.
Referenced by getCdrSerializedSize(), and carla::ros2::CarlaTransformPublisher::SetData().
void geometry_msgs::msg::TransformStamped::header | ( | std_msgs::msg::Header && | _header | ) |
This function moves the value in member header.
_header | New value to be moved in member header |
Definition at line 160 of file TransformStamped.cpp.
const std_msgs::msg::Header & geometry_msgs::msg::TransformStamped::header | ( | ) | const |
This function returns a constant reference to member header.
Definition at line 170 of file TransformStamped.cpp.
std_msgs::msg::Header & geometry_msgs::msg::TransformStamped::header | ( | ) |
This function returns a reference to member header.
Definition at line 179 of file TransformStamped.cpp.
|
static |
This function tells you if the Key has been defined for this type.
Definition at line 267 of file TransformStamped.cpp.
Referenced by geometry_msgs::msg::TransformStampedPubSubType::TransformStampedPubSubType().
bool geometry_msgs::msg::TransformStamped::operator!= | ( | const TransformStamped & | x | ) | const |
Comparison operator.
x | geometry_msgs::msg::TransformStamped object to compare. |
Definition at line 105 of file TransformStamped.cpp.
geometry_msgs::msg::TransformStamped & geometry_msgs::msg::TransformStamped::operator= | ( | const TransformStamped & | x | ) |
Copy assignment.
x | Reference to the object geometry_msgs::msg::TransformStamped that will be copied. |
Definition at line 79 of file TransformStamped.cpp.
References m_child_frame_id, m_header, and m_transform.
|
noexcept |
Move assignment.
x | Reference to the object geometry_msgs::msg::TransformStamped that will be copied. |
Definition at line 89 of file TransformStamped.cpp.
bool geometry_msgs::msg::TransformStamped::operator== | ( | const TransformStamped & | x | ) | const |
Comparison operator.
x | geometry_msgs::msg::TransformStamped object to compare. |
Definition at line 99 of file TransformStamped.cpp.
References m_child_frame_id, m_header, and m_transform.
void geometry_msgs::msg::TransformStamped::serialize | ( | eprosima::fastcdr::Cdr & | cdr | ) | const |
This function serializes an object using CDR serialization.
cdr | CDR serialization object. |
Definition at line 130 of file TransformStamped.cpp.
Referenced by geometry_msgs::msg::TransformStampedPubSubType::serialize().
void geometry_msgs::msg::TransformStamped::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 272 of file TransformStamped.cpp.
Referenced by geometry_msgs::msg::TransformStampedPubSubType::getKey().
void geometry_msgs::msg::TransformStamped::transform | ( | const geometry_msgs::msg::Transform & | _transform | ) |
This function copies the value in member transform.
_transform | New value to be copied in member transform |
Definition at line 226 of file TransformStamped.cpp.
Referenced by getCdrSerializedSize(), and carla::ros2::CarlaTransformPublisher::SetData().
void geometry_msgs::msg::TransformStamped::transform | ( | geometry_msgs::msg::Transform && | _transform | ) |
This function moves the value in member transform.
_transform | New value to be moved in member transform |
Definition at line 236 of file TransformStamped.cpp.
const geometry_msgs::msg::Transform & geometry_msgs::msg::TransformStamped::transform | ( | ) | const |
This function returns a constant reference to member transform.
Definition at line 246 of file TransformStamped.cpp.
geometry_msgs::msg::Transform & geometry_msgs::msg::TransformStamped::transform | ( | ) |
This function returns a reference to member transform.
Definition at line 255 of file TransformStamped.cpp.
|
private |
Definition at line 261 of file TransformStamped.h.
Referenced by operator=(), operator==(), and TransformStamped().
|
private |
Definition at line 260 of file TransformStamped.h.
Referenced by operator=(), operator==(), and TransformStamped().
|
private |
Definition at line 262 of file TransformStamped.h.
Referenced by operator=(), operator==(), and TransformStamped().