This class represents the structure CarlaCollisionEvent defined by the user in the IDL file. More...
#include <CarlaCollisionEvent.h>
Public Member Functions | |
eProsima_user_DllExport | CarlaCollisionEvent () |
Default constructor. More... | |
eProsima_user_DllExport | CarlaCollisionEvent (const CarlaCollisionEvent &x) |
Copy constructor. More... | |
eProsima_user_DllExport | CarlaCollisionEvent (CarlaCollisionEvent &&x) noexcept |
Move constructor. 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 void | normal_impulse (const geometry_msgs::msg::Vector3 &_normal_impulse) |
This function copies the value in member normal_impulse. More... | |
eProsima_user_DllExport void | normal_impulse (geometry_msgs::msg::Vector3 &&_normal_impulse) |
This function moves the value in member normal_impulse. More... | |
eProsima_user_DllExport const geometry_msgs::msg::Vector3 & | normal_impulse () const |
This function returns a constant reference to member normal_impulse. More... | |
eProsima_user_DllExport geometry_msgs::msg::Vector3 & | normal_impulse () |
This function returns a reference to member normal_impulse. More... | |
eProsima_user_DllExport bool | operator!= (const CarlaCollisionEvent &x) const |
Comparison operator. More... | |
eProsima_user_DllExport CarlaCollisionEvent & | operator= (const CarlaCollisionEvent &x) |
Copy assignment. More... | |
eProsima_user_DllExport CarlaCollisionEvent & | operator= (CarlaCollisionEvent &&x) noexcept |
Move assignment. More... | |
eProsima_user_DllExport bool | operator== (const CarlaCollisionEvent &x) const |
Comparison operator. More... | |
eProsima_user_DllExport void | other_actor_id (uint32_t _other_actor_id) |
This function sets a value in member other_actor_id. More... | |
eProsima_user_DllExport uint32_t | other_actor_id () const |
This function returns the value of member other_actor_id. More... | |
eProsima_user_DllExport uint32_t & | other_actor_id () |
This function returns a reference to member other_actor_id. 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 | ~CarlaCollisionEvent () |
Default destructor. More... | |
Static Public Member Functions | |
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. 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_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.
Definition at line 74 of file CarlaCollisionEvent.h.
carla_msgs::msg::CarlaCollisionEvent::CarlaCollisionEvent | ( | ) |
Default constructor.
Definition at line 46 of file CarlaCollisionEvent.cpp.
carla_msgs::msg::CarlaCollisionEvent::~CarlaCollisionEvent | ( | ) |
Default destructor.
Definition at line 54 of file CarlaCollisionEvent.cpp.
carla_msgs::msg::CarlaCollisionEvent::CarlaCollisionEvent | ( | const CarlaCollisionEvent & | x | ) |
Copy constructor.
x | Reference to the object carla_msgs::msg::CarlaCollisionEvent that will be copied. |
Definition at line 58 of file CarlaCollisionEvent.cpp.
References m_header, m_normal_impulse, and m_other_actor_id.
|
noexcept |
Move constructor.
x | Reference to the object carla_msgs::msg::CarlaCollisionEvent that will be copied. |
Definition at line 66 of file CarlaCollisionEvent.cpp.
void carla_msgs::msg::CarlaCollisionEvent::deserialize | ( | eprosima::fastcdr::Cdr & | cdr | ) |
This function deserializes an object using CDR serialization.
cdr | CDR serialization object. |
Definition at line 133 of file CarlaCollisionEvent.cpp.
Referenced by 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. |
Definition at line 113 of file CarlaCollisionEvent.cpp.
References std_msgs::msg::Header::getCdrSerializedSize(), geometry_msgs::msg::Vector3::getCdrSerializedSize(), header(), and normal_impulse().
Referenced by 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. |
Definition at line 245 of file CarlaCollisionEvent.cpp.
References carla_msgs_msg_CarlaCollisionEvent_max_key_cdr_typesize.
Referenced by carla_msgs::msg::CarlaCollisionEventPubSubType::CarlaCollisionEventPubSubType(), and 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. |
Definition at line 106 of file CarlaCollisionEvent.cpp.
References carla_msgs_msg_CarlaCollisionEvent_max_cdr_typesize.
Referenced by carla_msgs::msg::CarlaCollisionEventPubSubType::CarlaCollisionEventPubSubType().
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 |
Definition at line 145 of file CarlaCollisionEvent.cpp.
Referenced by 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 |
Definition at line 155 of file CarlaCollisionEvent.cpp.
const std_msgs::msg::Header & carla_msgs::msg::CarlaCollisionEvent::header | ( | ) | const |
This function returns a constant reference to member header.
Definition at line 165 of file CarlaCollisionEvent.cpp.
std_msgs::msg::Header & carla_msgs::msg::CarlaCollisionEvent::header | ( | ) |
This function returns a reference to member header.
Definition at line 174 of file CarlaCollisionEvent.cpp.
|
static |
This function tells you if the Key has been defined for this type.
Definition at line 252 of file CarlaCollisionEvent.cpp.
Referenced by carla_msgs::msg::CarlaCollisionEventPubSubType::CarlaCollisionEventPubSubType().
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 |
Definition at line 211 of file CarlaCollisionEvent.cpp.
Referenced by 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 |
Definition at line 221 of file CarlaCollisionEvent.cpp.
const geometry_msgs::msg::Vector3 & carla_msgs::msg::CarlaCollisionEvent::normal_impulse | ( | ) | const |
This function returns a constant reference to member normal_impulse.
Definition at line 231 of file CarlaCollisionEvent.cpp.
geometry_msgs::msg::Vector3 & carla_msgs::msg::CarlaCollisionEvent::normal_impulse | ( | ) |
This function returns a reference to member normal_impulse.
Definition at line 240 of file CarlaCollisionEvent.cpp.
bool carla_msgs::msg::CarlaCollisionEvent::operator!= | ( | const CarlaCollisionEvent & | x | ) | const |
Comparison operator.
x | carla_msgs::msg::CarlaCollisionEvent object to compare. |
Definition at line 100 of file CarlaCollisionEvent.cpp.
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. |
Definition at line 74 of file CarlaCollisionEvent.cpp.
References m_header, m_normal_impulse, and m_other_actor_id.
|
noexcept |
Move assignment.
x | Reference to the object carla_msgs::msg::CarlaCollisionEvent that will be copied. |
Definition at line 84 of file CarlaCollisionEvent.cpp.
bool carla_msgs::msg::CarlaCollisionEvent::operator== | ( | const CarlaCollisionEvent & | x | ) | const |
Comparison operator.
x | carla_msgs::msg::CarlaCollisionEvent object to compare. |
Definition at line 94 of file CarlaCollisionEvent.cpp.
References m_header, m_normal_impulse, and m_other_actor_id.
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 |
Definition at line 183 of file CarlaCollisionEvent.cpp.
uint32_t carla_msgs::msg::CarlaCollisionEvent::other_actor_id | ( | ) | const |
This function returns the value of member other_actor_id.
Definition at line 193 of file CarlaCollisionEvent.cpp.
uint32_t & carla_msgs::msg::CarlaCollisionEvent::other_actor_id | ( | ) |
This function returns a reference to member other_actor_id.
Definition at line 202 of file CarlaCollisionEvent.cpp.
void carla_msgs::msg::CarlaCollisionEvent::serialize | ( | eprosima::fastcdr::Cdr & | cdr | ) | const |
This function serializes an object using CDR serialization.
cdr | CDR serialization object. |
Definition at line 125 of file CarlaCollisionEvent.cpp.
Referenced by 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. |
Definition at line 257 of file CarlaCollisionEvent.cpp.
Referenced by carla_msgs::msg::CarlaCollisionEventPubSubType::getKey().
|
private |
Definition at line 255 of file CarlaCollisionEvent.h.
Referenced by CarlaCollisionEvent(), operator=(), and operator==().
|
private |
Definition at line 257 of file CarlaCollisionEvent.h.
Referenced by CarlaCollisionEvent(), operator=(), and operator==().
|
private |
Definition at line 256 of file CarlaCollisionEvent.h.
Referenced by CarlaCollisionEvent(), operator=(), and operator==().