This class represents the structure CarlaCollisionEvent defined by the user in the IDL file. 更多...
#include <CarlaCollisionEvent.h>
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::Header & | header () |
This function returns a reference to member header | |
eProsima_user_DllExport const std_msgs::msg::Header & | header () 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::Vector3 & | normal_impulse () |
This function returns a reference to member normal_impulse | |
eProsima_user_DllExport const geometry_msgs::msg::Vector3 & | normal_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 CarlaCollisionEvent & | operator= (CarlaCollisionEvent &&x) noexcept |
Move assignment. | |
eProsima_user_DllExport CarlaCollisionEvent & | operator= (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.h 第 74 行定义.
carla_msgs::msg::CarlaCollisionEvent::CarlaCollisionEvent | ( | ) |
carla_msgs::msg::CarlaCollisionEvent::~CarlaCollisionEvent | ( | ) |
Default destructor.
在文件 CarlaCollisionEvent.cpp 第 54 行定义.
carla_msgs::msg::CarlaCollisionEvent::CarlaCollisionEvent | ( | const CarlaCollisionEvent & | x | ) |
Copy constructor.
x | Reference to the object carla_msgs::msg::CarlaCollisionEvent that will be copied. |
在文件 CarlaCollisionEvent.cpp 第 58 行定义.
引用了 m_header, m_normal_impulse , 以及 m_other_actor_id.
|
noexcept |
Move constructor.
x | Reference to the object carla_msgs::msg::CarlaCollisionEvent that will be copied. |
在文件 CarlaCollisionEvent.cpp 第 66 行定义.
void carla_msgs::msg::CarlaCollisionEvent::deserialize | ( | eprosima::fastcdr::Cdr & | cdr | ) |
This function deserializes an object using CDR serialization.
cdr | CDR serialization object. |
在文件 CarlaCollisionEvent.cpp 第 133 行定义.
被这些函数引用 carla_msgs::msg::CarlaCollisionEventPubSubType::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. |
在文件 CarlaCollisionEvent.cpp 第 113 行定义.
引用了 geometry_msgs::msg::Vector3::getCdrSerializedSize(), std_msgs::msg::Header::getCdrSerializedSize(), header() , 以及 normal_impulse().
被这些函数引用 carla_msgs::msg::CarlaCollisionEventPubSubType::getSerializedSizeProvider().
|
static |
This function returns the maximum serialized size of the Key of an object depending on the buffer alignment.
current_alignment | Buffer alignment. |
在文件 CarlaCollisionEvent.cpp 第 245 行定义.
引用了 carla_msgs_msg_CarlaCollisionEvent_max_key_cdr_typesize.
被这些函数引用 carla_msgs::msg::CarlaCollisionEventPubSubType::CarlaCollisionEventPubSubType() , 以及 carla_msgs::msg::CarlaCollisionEventPubSubType::getKey().
|
static |
This function returns the maximum serialized size of an object depending on the buffer alignment.
current_alignment | Buffer alignment. |
在文件 CarlaCollisionEvent.cpp 第 106 行定义.
引用了 carla_msgs_msg_CarlaCollisionEvent_max_cdr_typesize.
被这些函数引用 carla_msgs::msg::CarlaCollisionEventPubSubType::CarlaCollisionEventPubSubType().
std_msgs::msg::Header & carla_msgs::msg::CarlaCollisionEvent::header | ( | ) |
This function returns a reference to member header
在文件 CarlaCollisionEvent.cpp 第 174 行定义.
const std_msgs::msg::Header & carla_msgs::msg::CarlaCollisionEvent::header | ( | ) | const |
This function returns a constant reference to member header
在文件 CarlaCollisionEvent.cpp 第 165 行定义.
void carla_msgs::msg::CarlaCollisionEvent::header | ( | const std_msgs::msg::Header & | _header | ) |
This function copies the value in member header
_header | New value to be copied in member header |
在文件 CarlaCollisionEvent.cpp 第 145 行定义.
被这些函数引用 getCdrSerializedSize().
void carla_msgs::msg::CarlaCollisionEvent::header | ( | std_msgs::msg::Header && | _header | ) |
This function moves the value in member header
_header | New value to be moved in member header |
在文件 CarlaCollisionEvent.cpp 第 155 行定义.
|
static |
This function tells you if the Key has been defined for this type
在文件 CarlaCollisionEvent.cpp 第 252 行定义.
被这些函数引用 carla_msgs::msg::CarlaCollisionEventPubSubType::CarlaCollisionEventPubSubType().
geometry_msgs::msg::Vector3 & carla_msgs::msg::CarlaCollisionEvent::normal_impulse | ( | ) |
This function returns a reference to member normal_impulse
在文件 CarlaCollisionEvent.cpp 第 240 行定义.
const geometry_msgs::msg::Vector3 & carla_msgs::msg::CarlaCollisionEvent::normal_impulse | ( | ) | const |
This function returns a constant reference to member normal_impulse
在文件 CarlaCollisionEvent.cpp 第 231 行定义.
void carla_msgs::msg::CarlaCollisionEvent::normal_impulse | ( | const geometry_msgs::msg::Vector3 & | _normal_impulse | ) |
This function copies the value in member normal_impulse
_normal_impulse | New value to be copied in member normal_impulse |
在文件 CarlaCollisionEvent.cpp 第 211 行定义.
被这些函数引用 getCdrSerializedSize().
void carla_msgs::msg::CarlaCollisionEvent::normal_impulse | ( | geometry_msgs::msg::Vector3 && | _normal_impulse | ) |
This function moves the value in member normal_impulse
_normal_impulse | New value to be moved in member normal_impulse |
在文件 CarlaCollisionEvent.cpp 第 221 行定义.
bool carla_msgs::msg::CarlaCollisionEvent::operator!= | ( | const CarlaCollisionEvent & | x | ) | const |
Comparison operator.
x | carla_msgs::msg::CarlaCollisionEvent object to compare. |
在文件 CarlaCollisionEvent.cpp 第 100 行定义.
|
noexcept |
Move assignment.
x | Reference to the object carla_msgs::msg::CarlaCollisionEvent that will be copied. |
在文件 CarlaCollisionEvent.cpp 第 84 行定义.
carla_msgs::msg::CarlaCollisionEvent & carla_msgs::msg::CarlaCollisionEvent::operator= | ( | const CarlaCollisionEvent & | x | ) |
Copy assignment.
x | Reference to the object carla_msgs::msg::CarlaCollisionEvent that will be copied. |
在文件 CarlaCollisionEvent.cpp 第 74 行定义.
引用了 m_header, m_normal_impulse , 以及 m_other_actor_id.
bool carla_msgs::msg::CarlaCollisionEvent::operator== | ( | const CarlaCollisionEvent & | x | ) | const |
Comparison operator.
x | carla_msgs::msg::CarlaCollisionEvent object to compare. |
在文件 CarlaCollisionEvent.cpp 第 94 行定义.
引用了 m_header, m_normal_impulse , 以及 m_other_actor_id.
uint32_t & carla_msgs::msg::CarlaCollisionEvent::other_actor_id | ( | ) |
This function returns a reference to member other_actor_id
在文件 CarlaCollisionEvent.cpp 第 202 行定义.
uint32_t carla_msgs::msg::CarlaCollisionEvent::other_actor_id | ( | ) | const |
This function returns the value of member other_actor_id
在文件 CarlaCollisionEvent.cpp 第 193 行定义.
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_id | New value for member other_actor_id |
在文件 CarlaCollisionEvent.cpp 第 183 行定义.
void carla_msgs::msg::CarlaCollisionEvent::serialize | ( | eprosima::fastcdr::Cdr & | cdr | ) | const |
This function serializes an object using CDR serialization.
cdr | CDR serialization object. |
在文件 CarlaCollisionEvent.cpp 第 125 行定义.
被这些函数引用 carla_msgs::msg::CarlaCollisionEventPubSubType::serialize().
void carla_msgs::msg::CarlaCollisionEvent::serializeKey | ( | eprosima::fastcdr::Cdr & | cdr | ) | const |
This function serializes the key members of an object using CDR serialization.
cdr | CDR serialization object. |
在文件 CarlaCollisionEvent.cpp 第 257 行定义.
被这些函数引用 carla_msgs::msg::CarlaCollisionEventPubSubType::getKey().
|
private |
在文件 CarlaCollisionEvent.h 第 255 行定义.
被这些函数引用 CarlaCollisionEvent(), operator=() , 以及 operator==().
|
private |
在文件 CarlaCollisionEvent.h 第 257 行定义.
被这些函数引用 CarlaCollisionEvent(), operator=() , 以及 operator==().
|
private |
在文件 CarlaCollisionEvent.h 第 256 行定义.
被这些函数引用 CarlaCollisionEvent(), CarlaCollisionEvent(), operator=() , 以及 operator==().