CARLA
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | Private 属性 | 所有成员列表
carla_msgs::msg::CarlaCollisionEvent类 参考

This class represents the structure CarlaCollisionEvent defined by the user in the IDL file. 更多...

#include <CarlaCollisionEvent.h>

+ carla_msgs::msg::CarlaCollisionEvent 的协作图:

Public 成员函数

eProsima_user_DllExport CarlaCollisionEvent ()
 Default constructor.
 
eProsima_user_DllExport CarlaCollisionEvent (CarlaCollisionEvent &&x) noexcept
 Move constructor.
 
eProsima_user_DllExport CarlaCollisionEvent (const CarlaCollisionEvent &x)
 Copy constructor.
 
eProsima_user_DllExport void deserialize (eprosima::fastcdr::Cdr &cdr)
 This function deserializes an object using CDR serialization.
 
eProsima_user_DllExport std_msgs::msg::Headerheader ()
 This function returns a reference to member header
 
eProsima_user_DllExport const std_msgs::msg::Headerheader () const
 This function returns a constant reference to member header
 
eProsima_user_DllExport void header (const std_msgs::msg::Header &_header)
 This function copies the value in member header
 
eProsima_user_DllExport void header (std_msgs::msg::Header &&_header)
 This function moves the value in member header
 
eProsima_user_DllExport geometry_msgs::msg::Vector3normal_impulse ()
 This function returns a reference to member normal_impulse
 
eProsima_user_DllExport const geometry_msgs::msg::Vector3normal_impulse () const
 This function returns a constant reference to member normal_impulse
 
eProsima_user_DllExport void normal_impulse (const geometry_msgs::msg::Vector3 &_normal_impulse)
 This function copies the value in member normal_impulse
 
eProsima_user_DllExport void normal_impulse (geometry_msgs::msg::Vector3 &&_normal_impulse)
 This function moves the value in member normal_impulse
 
eProsima_user_DllExport bool operator!= (const CarlaCollisionEvent &x) const
 Comparison operator.
 
eProsima_user_DllExport CarlaCollisionEventoperator= (CarlaCollisionEvent &&x) noexcept
 Move assignment.
 
eProsima_user_DllExport CarlaCollisionEventoperator= (const CarlaCollisionEvent &x)
 Copy assignment.
 
eProsima_user_DllExport bool operator== (const CarlaCollisionEvent &x) const
 Comparison operator.
 
eProsima_user_DllExport uint32_t & other_actor_id ()
 This function returns a reference to member other_actor_id
 
eProsima_user_DllExport uint32_t other_actor_id () const
 This function returns the value of member other_actor_id
 
eProsima_user_DllExport void other_actor_id (uint32_t _other_actor_id)
 This function sets a value in member other_actor_id
 
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 ~CarlaCollisionEvent ()
 Default destructor.
 

静态 Public 成员函数

static eProsima_user_DllExport size_t getCdrSerializedSize (const carla_msgs::msg::CarlaCollisionEvent &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 属性

std_msgs::msg::Header m_header
 
geometry_msgs::msg::Vector3 m_normal_impulse
 
uint32_t m_other_actor_id
 

详细描述

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

在文件 CarlaCollisionEvent.h74 行定义.

构造及析构函数说明

◆ CarlaCollisionEvent() [1/3]

carla_msgs::msg::CarlaCollisionEvent::CarlaCollisionEvent ( )

Default constructor.

在文件 CarlaCollisionEvent.cpp46 行定义.

引用了 m_other_actor_id.

◆ ~CarlaCollisionEvent()

carla_msgs::msg::CarlaCollisionEvent::~CarlaCollisionEvent ( )

Default destructor.

在文件 CarlaCollisionEvent.cpp54 行定义.

◆ CarlaCollisionEvent() [2/3]

carla_msgs::msg::CarlaCollisionEvent::CarlaCollisionEvent ( const CarlaCollisionEvent & x)

Copy constructor.

参数
xReference to the object carla_msgs::msg::CarlaCollisionEvent that will be copied.

在文件 CarlaCollisionEvent.cpp58 行定义.

引用了 m_header, m_normal_impulse , 以及 m_other_actor_id.

◆ CarlaCollisionEvent() [3/3]

carla_msgs::msg::CarlaCollisionEvent::CarlaCollisionEvent ( CarlaCollisionEvent && x)
noexcept

Move constructor.

参数
xReference to the object carla_msgs::msg::CarlaCollisionEvent that will be copied.

在文件 CarlaCollisionEvent.cpp66 行定义.

成员函数说明

◆ deserialize()

void carla_msgs::msg::CarlaCollisionEvent::deserialize ( eprosima::fastcdr::Cdr & cdr)

This function deserializes an object using CDR serialization.

参数
cdrCDR serialization object.

在文件 CarlaCollisionEvent.cpp133 行定义.

被这些函数引用 carla_msgs::msg::CarlaCollisionEventPubSubType::deserialize().

+ 这是这个函数的调用关系图:

◆ getCdrSerializedSize()

size_t carla_msgs::msg::CarlaCollisionEvent::getCdrSerializedSize ( const carla_msgs::msg::CarlaCollisionEvent & data,
size_t current_alignment = 0 )
static

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

参数
dataData which is calculated its serialized size.
current_alignmentBuffer alignment.
返回
Serialized size.

在文件 CarlaCollisionEvent.cpp113 行定义.

引用了 geometry_msgs::msg::Vector3::getCdrSerializedSize(), std_msgs::msg::Header::getCdrSerializedSize(), header() , 以及 normal_impulse().

被这些函数引用 carla_msgs::msg::CarlaCollisionEventPubSubType::getSerializedSizeProvider().

+ 函数调用图:
+ 这是这个函数的调用关系图:

◆ getKeyMaxCdrSerializedSize()

size_t carla_msgs::msg::CarlaCollisionEvent::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.

参数
current_alignmentBuffer alignment.
返回
Maximum serialized size.

在文件 CarlaCollisionEvent.cpp245 行定义.

引用了 carla_msgs_msg_CarlaCollisionEvent_max_key_cdr_typesize.

被这些函数引用 carla_msgs::msg::CarlaCollisionEventPubSubType::CarlaCollisionEventPubSubType() , 以及 carla_msgs::msg::CarlaCollisionEventPubSubType::getKey().

+ 这是这个函数的调用关系图:

◆ getMaxCdrSerializedSize()

size_t carla_msgs::msg::CarlaCollisionEvent::getMaxCdrSerializedSize ( size_t current_alignment = 0)
static

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

参数
current_alignmentBuffer alignment.
返回
Maximum serialized size.

在文件 CarlaCollisionEvent.cpp106 行定义.

引用了 carla_msgs_msg_CarlaCollisionEvent_max_cdr_typesize.

被这些函数引用 carla_msgs::msg::CarlaCollisionEventPubSubType::CarlaCollisionEventPubSubType().

+ 这是这个函数的调用关系图:

◆ header() [1/4]

std_msgs::msg::Header & carla_msgs::msg::CarlaCollisionEvent::header ( )

This function returns a reference to member header

返回
Reference to member header

在文件 CarlaCollisionEvent.cpp174 行定义.

◆ header() [2/4]

const std_msgs::msg::Header & carla_msgs::msg::CarlaCollisionEvent::header ( ) const

This function returns a constant reference to member header

返回
Constant reference to member header

在文件 CarlaCollisionEvent.cpp165 行定义.

◆ header() [3/4]

void carla_msgs::msg::CarlaCollisionEvent::header ( const std_msgs::msg::Header & _header)

This function copies the value in member header

参数
_headerNew value to be copied in member header

在文件 CarlaCollisionEvent.cpp145 行定义.

被这些函数引用 getCdrSerializedSize().

+ 这是这个函数的调用关系图:

◆ header() [4/4]

void carla_msgs::msg::CarlaCollisionEvent::header ( std_msgs::msg::Header && _header)

This function moves the value in member header

参数
_headerNew value to be moved in member header

在文件 CarlaCollisionEvent.cpp155 行定义.

◆ isKeyDefined()

bool carla_msgs::msg::CarlaCollisionEvent::isKeyDefined ( )
static

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

在文件 CarlaCollisionEvent.cpp252 行定义.

被这些函数引用 carla_msgs::msg::CarlaCollisionEventPubSubType::CarlaCollisionEventPubSubType().

+ 这是这个函数的调用关系图:

◆ normal_impulse() [1/4]

geometry_msgs::msg::Vector3 & carla_msgs::msg::CarlaCollisionEvent::normal_impulse ( )

This function returns a reference to member normal_impulse

返回
Reference to member normal_impulse

在文件 CarlaCollisionEvent.cpp240 行定义.

◆ normal_impulse() [2/4]

const geometry_msgs::msg::Vector3 & carla_msgs::msg::CarlaCollisionEvent::normal_impulse ( ) const

This function returns a constant reference to member normal_impulse

返回
Constant reference to member normal_impulse

在文件 CarlaCollisionEvent.cpp231 行定义.

◆ normal_impulse() [3/4]

void carla_msgs::msg::CarlaCollisionEvent::normal_impulse ( const geometry_msgs::msg::Vector3 & _normal_impulse)

This function copies the value in member normal_impulse

参数
_normal_impulseNew value to be copied in member normal_impulse

在文件 CarlaCollisionEvent.cpp211 行定义.

被这些函数引用 getCdrSerializedSize().

+ 这是这个函数的调用关系图:

◆ normal_impulse() [4/4]

void carla_msgs::msg::CarlaCollisionEvent::normal_impulse ( geometry_msgs::msg::Vector3 && _normal_impulse)

This function moves the value in member normal_impulse

参数
_normal_impulseNew value to be moved in member normal_impulse

在文件 CarlaCollisionEvent.cpp221 行定义.

◆ operator!=()

bool carla_msgs::msg::CarlaCollisionEvent::operator!= ( const CarlaCollisionEvent & x) const

Comparison operator.

参数
xcarla_msgs::msg::CarlaCollisionEvent object to compare.

在文件 CarlaCollisionEvent.cpp100 行定义.

◆ operator=() [1/2]

carla_msgs::msg::CarlaCollisionEvent & carla_msgs::msg::CarlaCollisionEvent::operator= ( CarlaCollisionEvent && x)
noexcept

Move assignment.

参数
xReference to the object carla_msgs::msg::CarlaCollisionEvent that will be copied.

在文件 CarlaCollisionEvent.cpp84 行定义.

◆ operator=() [2/2]

carla_msgs::msg::CarlaCollisionEvent & carla_msgs::msg::CarlaCollisionEvent::operator= ( const CarlaCollisionEvent & x)

Copy assignment.

参数
xReference to the object carla_msgs::msg::CarlaCollisionEvent that will be copied.

在文件 CarlaCollisionEvent.cpp74 行定义.

引用了 m_header, m_normal_impulse , 以及 m_other_actor_id.

◆ operator==()

bool carla_msgs::msg::CarlaCollisionEvent::operator== ( const CarlaCollisionEvent & x) const

Comparison operator.

参数
xcarla_msgs::msg::CarlaCollisionEvent object to compare.

在文件 CarlaCollisionEvent.cpp94 行定义.

引用了 m_header, m_normal_impulse , 以及 m_other_actor_id.

◆ other_actor_id() [1/3]

uint32_t & carla_msgs::msg::CarlaCollisionEvent::other_actor_id ( )

This function returns a reference to member other_actor_id

返回
Reference to member other_actor_id

在文件 CarlaCollisionEvent.cpp202 行定义.

◆ other_actor_id() [2/3]

uint32_t carla_msgs::msg::CarlaCollisionEvent::other_actor_id ( ) const

This function returns the value of member other_actor_id

返回
Value of member other_actor_id

在文件 CarlaCollisionEvent.cpp193 行定义.

◆ other_actor_id() [3/3]

void carla_msgs::msg::CarlaCollisionEvent::other_actor_id ( uint32_t _other_actor_id)

This function sets a value in member other_actor_id

参数
_other_actor_idNew value for member other_actor_id

在文件 CarlaCollisionEvent.cpp183 行定义.

◆ serialize()

void carla_msgs::msg::CarlaCollisionEvent::serialize ( eprosima::fastcdr::Cdr & cdr) const

This function serializes an object using CDR serialization.

参数
cdrCDR serialization object.

在文件 CarlaCollisionEvent.cpp125 行定义.

被这些函数引用 carla_msgs::msg::CarlaCollisionEventPubSubType::serialize().

+ 这是这个函数的调用关系图:

◆ serializeKey()

void carla_msgs::msg::CarlaCollisionEvent::serializeKey ( eprosima::fastcdr::Cdr & cdr) const

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

参数
cdrCDR serialization object.

在文件 CarlaCollisionEvent.cpp257 行定义.

被这些函数引用 carla_msgs::msg::CarlaCollisionEventPubSubType::getKey().

+ 这是这个函数的调用关系图:

类成员变量说明

◆ m_header

std_msgs::msg::Header carla_msgs::msg::CarlaCollisionEvent::m_header
private

在文件 CarlaCollisionEvent.h255 行定义.

被这些函数引用 CarlaCollisionEvent(), operator=() , 以及 operator==().

◆ m_normal_impulse

geometry_msgs::msg::Vector3 carla_msgs::msg::CarlaCollisionEvent::m_normal_impulse
private

在文件 CarlaCollisionEvent.h257 行定义.

被这些函数引用 CarlaCollisionEvent(), operator=() , 以及 operator==().

◆ m_other_actor_id

uint32_t carla_msgs::msg::CarlaCollisionEvent::m_other_actor_id
private

在文件 CarlaCollisionEvent.h256 行定义.

被这些函数引用 CarlaCollisionEvent(), CarlaCollisionEvent(), operator=() , 以及 operator==().


该类的文档由以下文件生成: