CARLA
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
tf2_msgs::msg::TFMessage Class Reference

This class represents the structure TFMessage defined by the user in the IDL file. More...

#include <TFMessage.h>

+ Collaboration diagram for tf2_msgs::msg::TFMessage:

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 TFMessage &x) const
 Comparison operator. More...
 
eProsima_user_DllExport TFMessageoperator= (const TFMessage &x)
 Copy assignment. More...
 
eProsima_user_DllExport TFMessageoperator= (TFMessage &&x) noexcept
 Move assignment. More...
 
eProsima_user_DllExport bool operator== (const TFMessage &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 TFMessage ()
 Default constructor. More...
 
eProsima_user_DllExport TFMessage (const TFMessage &x)
 Copy constructor. More...
 
eProsima_user_DllExport TFMessage (TFMessage &&x) noexcept
 Move constructor. More...
 
eProsima_user_DllExport void transforms (const std::vector< geometry_msgs::msg::TransformStamped > &_transforms)
 This function copies the value in member transforms. More...
 
eProsima_user_DllExport void transforms (std::vector< geometry_msgs::msg::TransformStamped > &&_transforms)
 This function moves the value in member transforms. More...
 
eProsima_user_DllExport const std::vector< geometry_msgs::msg::TransformStamped > & transforms () const
 This function returns a constant reference to member transforms. More...
 
eProsima_user_DllExport std::vector< geometry_msgs::msg::TransformStamped > & transforms ()
 This function returns a reference to member transforms. More...
 
eProsima_user_DllExport ~TFMessage ()
 Default destructor. More...
 

Static Public Member Functions

static eProsima_user_DllExport size_t getCdrSerializedSize (const tf2_msgs::msg::TFMessage &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::vector< geometry_msgs::msg::TransformStampedm_transforms
 

Detailed Description

This class represents the structure TFMessage defined by the user in the IDL file.

Definition at line 73 of file TFMessage.h.

Constructor & Destructor Documentation

◆ TFMessage() [1/3]

tf2_msgs::msg::TFMessage::TFMessage ( )

Default constructor.

Definition at line 52 of file TFMessage.cpp.

◆ ~TFMessage()

tf2_msgs::msg::TFMessage::~TFMessage ( )

Default destructor.

Definition at line 56 of file TFMessage.cpp.

◆ TFMessage() [2/3]

tf2_msgs::msg::TFMessage::TFMessage ( const TFMessage x)

Copy constructor.

Parameters
xReference to the object tf2_msgs::msg::TFMessage that will be copied.

Definition at line 60 of file TFMessage.cpp.

References m_transforms.

◆ TFMessage() [3/3]

tf2_msgs::msg::TFMessage::TFMessage ( TFMessage &&  x)
noexcept

Move constructor.

Parameters
xReference to the object tf2_msgs::msg::TFMessage that will be copied.

Definition at line 66 of file TFMessage.cpp.

Member Function Documentation

◆ deserialize()

void tf2_msgs::msg::TFMessage::deserialize ( eprosima::fastcdr::Cdr &  cdr)

This function deserializes an object using CDR serialization.

Parameters
cdrCDR serialization object.

Definition at line 128 of file TFMessage.cpp.

Referenced by tf2_msgs::msg::TFMessagePubSubType::deserialize().

+ Here is the caller graph for this function:

◆ getCdrSerializedSize()

size_t tf2_msgs::msg::TFMessage::getCdrSerializedSize ( const tf2_msgs::msg::TFMessage data,
size_t  current_alignment = 0 
)
static

This function returns the serialized size of a data depending on the buffer alignment.

Parameters
dataData which is calculated its serialized size.
current_alignmentBuffer alignment.
Returns
Serialized size.

Definition at line 107 of file TFMessage.cpp.

References geometry_msgs::msg::TransformStamped::getCdrSerializedSize(), and transforms().

Referenced by tf2_msgs::msg::TFMessagePubSubType::getSerializedSizeProvider().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getKeyMaxCdrSerializedSize()

size_t tf2_msgs::msg::TFMessage::getKeyMaxCdrSerializedSize ( size_t  current_alignment = 0)
static

This function returns the maximum serialized size of the Key of an object depending on the buffer alignment.

Parameters
current_alignmentBuffer alignment.
Returns
Maximum serialized size.

Definition at line 172 of file TFMessage.cpp.

References tf2_msgs_msg_TFMessage_max_key_cdr_typesize.

Referenced by tf2_msgs::msg::TFMessagePubSubType::getKey(), and tf2_msgs::msg::TFMessagePubSubType::TFMessagePubSubType().

+ Here is the caller graph for this function:

◆ getMaxCdrSerializedSize()

size_t tf2_msgs::msg::TFMessage::getMaxCdrSerializedSize ( size_t  current_alignment = 0)
static

This function returns the maximum serialized size of an object depending on the buffer alignment.

Parameters
current_alignmentBuffer alignment.
Returns
Maximum serialized size.

Definition at line 100 of file TFMessage.cpp.

References tf2_msgs_msg_TFMessage_max_cdr_typesize.

Referenced by tf2_msgs::msg::TFMessagePubSubType::TFMessagePubSubType().

+ Here is the caller graph for this function:

◆ isKeyDefined()

bool tf2_msgs::msg::TFMessage::isKeyDefined ( )
static

This function tells you if the Key has been defined for this type.

Definition at line 179 of file TFMessage.cpp.

Referenced by tf2_msgs::msg::TFMessagePubSubType::TFMessagePubSubType().

+ Here is the caller graph for this function:

◆ operator!=()

bool tf2_msgs::msg::TFMessage::operator!= ( const TFMessage x) const

Comparison operator.

Parameters
xtf2_msgs::msg::TFMessage object to compare.

Definition at line 94 of file TFMessage.cpp.

◆ operator=() [1/2]

tf2_msgs::msg::TFMessage & tf2_msgs::msg::TFMessage::operator= ( const TFMessage x)

Copy assignment.

Parameters
xReference to the object tf2_msgs::msg::TFMessage that will be copied.

Definition at line 72 of file TFMessage.cpp.

References m_transforms.

◆ operator=() [2/2]

tf2_msgs::msg::TFMessage & tf2_msgs::msg::TFMessage::operator= ( TFMessage &&  x)
noexcept

Move assignment.

Parameters
xReference to the object tf2_msgs::msg::TFMessage that will be copied.

Definition at line 80 of file TFMessage.cpp.

◆ operator==()

bool tf2_msgs::msg::TFMessage::operator== ( const TFMessage x) const

Comparison operator.

Parameters
xtf2_msgs::msg::TFMessage object to compare.

Definition at line 88 of file TFMessage.cpp.

References m_transforms.

◆ serialize()

void tf2_msgs::msg::TFMessage::serialize ( eprosima::fastcdr::Cdr &  cdr) const

This function serializes an object using CDR serialization.

Parameters
cdrCDR serialization object.

Definition at line 122 of file TFMessage.cpp.

Referenced by tf2_msgs::msg::TFMessagePubSubType::serialize().

+ Here is the caller graph for this function:

◆ serializeKey()

void tf2_msgs::msg::TFMessage::serializeKey ( eprosima::fastcdr::Cdr &  cdr) const

This function serializes the key members of an object using CDR serialization.

Parameters
cdrCDR serialization object.

Definition at line 184 of file TFMessage.cpp.

Referenced by tf2_msgs::msg::TFMessagePubSubType::getKey().

+ Here is the caller graph for this function:

◆ transforms() [1/4]

void tf2_msgs::msg::TFMessage::transforms ( const std::vector< geometry_msgs::msg::TransformStamped > &  _transforms)

This function copies the value in member transforms.

Parameters
_transformsNew value to be copied in member transforms

Definition at line 138 of file TFMessage.cpp.

Referenced by getCdrSerializedSize().

+ Here is the caller graph for this function:

◆ transforms() [2/4]

void tf2_msgs::msg::TFMessage::transforms ( std::vector< geometry_msgs::msg::TransformStamped > &&  _transforms)

This function moves the value in member transforms.

Parameters
_transformsNew value to be moved in member transforms

Definition at line 148 of file TFMessage.cpp.

◆ transforms() [3/4]

const std::vector< geometry_msgs::msg::TransformStamped > & tf2_msgs::msg::TFMessage::transforms ( ) const

This function returns a constant reference to member transforms.

Returns
Constant reference to member transforms

Definition at line 158 of file TFMessage.cpp.

◆ transforms() [4/4]

std::vector< geometry_msgs::msg::TransformStamped > & tf2_msgs::msg::TFMessage::transforms ( )

This function returns a reference to member transforms.

Returns
Reference to member transforms

Definition at line 167 of file TFMessage.cpp.

Member Data Documentation

◆ m_transforms

std::vector<geometry_msgs::msg::TransformStamped> tf2_msgs::msg::TFMessage::m_transforms
private

Definition at line 210 of file TFMessage.h.

Referenced by operator=(), operator==(), and TFMessage().


The documentation for this class was generated from the following files: