This class represents the structure Vector3 defined by the user in the IDL file. More...
#include <Vector3.h>
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 Vector3 &x) const |
Comparison operator. More... | |
eProsima_user_DllExport Vector3 & | operator= (const Vector3 &x) |
Copy assignment. More... | |
eProsima_user_DllExport Vector3 & | operator= (Vector3 &&x) noexcept |
Move assignment. More... | |
eProsima_user_DllExport bool | operator== (const Vector3 &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 | Vector3 () |
Default constructor. More... | |
eProsima_user_DllExport | Vector3 (const Vector3 &x) |
Copy constructor. More... | |
eProsima_user_DllExport | Vector3 (Vector3 &&x) noexcept |
Move constructor. More... | |
eProsima_user_DllExport void | x (double _x) |
This function sets a value in member x. More... | |
eProsima_user_DllExport double | x () const |
This function returns the value of member x. More... | |
eProsima_user_DllExport double & | x () |
This function returns a reference to member x. More... | |
eProsima_user_DllExport void | y (double _y) |
This function sets a value in member y. More... | |
eProsima_user_DllExport double | y () const |
This function returns the value of member y. More... | |
eProsima_user_DllExport double & | y () |
This function returns a reference to member y. More... | |
eProsima_user_DllExport void | z (double _z) |
This function sets a value in member z. More... | |
eProsima_user_DllExport double | z () const |
This function returns the value of member z. More... | |
eProsima_user_DllExport double & | z () |
This function returns a reference to member z. More... | |
eProsima_user_DllExport | ~Vector3 () |
Default destructor. More... | |
Static Public Member Functions | |
static eProsima_user_DllExport size_t | getCdrSerializedSize (const geometry_msgs::msg::Vector3 &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 | |
double | m_x |
double | m_y |
double | m_z |
This class represents the structure Vector3 defined by the user in the IDL file.
geometry_msgs::msg::Vector3::Vector3 | ( | ) |
Default constructor.
Definition at line 40 of file Vector3.cpp.
geometry_msgs::msg::Vector3::~Vector3 | ( | ) |
Default destructor.
Definition at line 50 of file Vector3.cpp.
geometry_msgs::msg::Vector3::Vector3 | ( | const Vector3 & | x | ) |
Copy constructor.
x | Reference to the object geometry_msgs::msg::Vector3 that will be copied. |
Definition at line 54 of file Vector3.cpp.
|
noexcept |
Move constructor.
x | Reference to the object geometry_msgs::msg::Vector3 that will be copied. |
Definition at line 62 of file Vector3.cpp.
void geometry_msgs::msg::Vector3::deserialize | ( | eprosima::fastcdr::Cdr & | cdr | ) |
This function deserializes an object using CDR serialization.
cdr | CDR serialization object. |
Definition at line 131 of file Vector3.cpp.
Referenced by geometry_msgs::msg::Vector3PubSubType::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 110 of file Vector3.cpp.
Referenced by geometry_msgs::msg::Twist::getCdrSerializedSize(), geometry_msgs::msg::Transform::getCdrSerializedSize(), carla_msgs::msg::CarlaCollisionEvent::getCdrSerializedSize(), sensor_msgs::msg::Imu::getCdrSerializedSize(), and geometry_msgs::msg::Vector3PubSubType::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 223 of file Vector3.cpp.
References geometry_msgs_msg_Vector3_max_key_cdr_typesize.
Referenced by geometry_msgs::msg::Vector3PubSubType::getKey(), and geometry_msgs::msg::Vector3PubSubType::Vector3PubSubType().
|
static |
This function returns the maximum serialized size of an object depending on the buffer alignment.
current_alignment | Buffer alignment. |
Definition at line 103 of file Vector3.cpp.
References geometry_msgs_msg_Vector3_max_cdr_typesize.
Referenced by geometry_msgs::msg::Vector3PubSubType::Vector3PubSubType().
|
static |
This function tells you if the Key has been defined for this type.
Definition at line 230 of file Vector3.cpp.
Referenced by geometry_msgs::msg::Vector3PubSubType::Vector3PubSubType().
bool geometry_msgs::msg::Vector3::operator!= | ( | const Vector3 & | x | ) | const |
Comparison operator.
x | geometry_msgs::msg::Vector3 object to compare. |
Definition at line 97 of file Vector3.cpp.
geometry_msgs::msg::Vector3 & geometry_msgs::msg::Vector3::operator= | ( | const Vector3 & | x | ) |
Copy assignment.
x | Reference to the object geometry_msgs::msg::Vector3 that will be copied. |
Definition at line 70 of file Vector3.cpp.
|
noexcept |
Move assignment.
x | Reference to the object geometry_msgs::msg::Vector3 that will be copied. |
Definition at line 81 of file Vector3.cpp.
References m_x.
bool geometry_msgs::msg::Vector3::operator== | ( | const Vector3 & | x | ) | const |
Comparison operator.
x | geometry_msgs::msg::Vector3 object to compare. |
Definition at line 91 of file Vector3.cpp.
void geometry_msgs::msg::Vector3::serialize | ( | eprosima::fastcdr::Cdr & | cdr | ) | const |
This function serializes an object using CDR serialization.
cdr | CDR serialization object. |
Definition at line 123 of file Vector3.cpp.
Referenced by geometry_msgs::msg::Vector3PubSubType::serialize().
void geometry_msgs::msg::Vector3::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 235 of file Vector3.cpp.
Referenced by geometry_msgs::msg::Vector3PubSubType::getKey().
void geometry_msgs::msg::Vector3::x | ( | double | _x | ) |
This function sets a value in member x.
_x | New value for member x |
Definition at line 143 of file Vector3.cpp.
Referenced by carla::ros2::CarlaIMUPublisher::SetData(), and carla::ros2::CarlaCollisionPublisher::SetData().
double geometry_msgs::msg::Vector3::x | ( | ) | const |
This function returns the value of member x.
Definition at line 153 of file Vector3.cpp.
double & geometry_msgs::msg::Vector3::x | ( | ) |
This function returns a reference to member x.
Definition at line 162 of file Vector3.cpp.
void geometry_msgs::msg::Vector3::y | ( | double | _y | ) |
This function sets a value in member y.
_y | New value for member y |
Definition at line 171 of file Vector3.cpp.
Referenced by carla::ros2::CarlaIMUPublisher::SetData(), and carla::ros2::CarlaCollisionPublisher::SetData().
double geometry_msgs::msg::Vector3::y | ( | ) | const |
This function returns the value of member y.
Definition at line 181 of file Vector3.cpp.
double & geometry_msgs::msg::Vector3::y | ( | ) |
This function returns a reference to member y.
Definition at line 190 of file Vector3.cpp.
void geometry_msgs::msg::Vector3::z | ( | double | _z | ) |
This function sets a value in member z.
_z | New value for member z |
Definition at line 199 of file Vector3.cpp.
Referenced by carla::ros2::CarlaIMUPublisher::SetData(), and carla::ros2::CarlaCollisionPublisher::SetData().
double geometry_msgs::msg::Vector3::z | ( | ) | const |
This function returns the value of member z.
Definition at line 209 of file Vector3.cpp.
double & geometry_msgs::msg::Vector3::z | ( | ) |
This function returns a reference to member z.
Definition at line 218 of file Vector3.cpp.
|
private |
Definition at line 239 of file Vector3.h.
Referenced by operator=(), operator==(), and Vector3().
|
private |
Definition at line 240 of file Vector3.h.
Referenced by operator=(), operator==(), and Vector3().
|
private |
Definition at line 241 of file Vector3.h.
Referenced by operator=(), operator==(), and Vector3().