This class represents the structure Quaternion defined by the user in the IDL file. More...
#include <Quaternion.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 Quaternion &x) const |
Comparison operator. More... | |
eProsima_user_DllExport Quaternion & | operator= (const Quaternion &x) |
Copy assignment. More... | |
eProsima_user_DllExport Quaternion & | operator= (Quaternion &&x) noexcept |
Move assignment. More... | |
eProsima_user_DllExport bool | operator== (const Quaternion &x) const |
Comparison operator. More... | |
eProsima_user_DllExport | Quaternion () |
Default constructor. More... | |
eProsima_user_DllExport | Quaternion (const Quaternion &x) |
Copy constructor. More... | |
eProsima_user_DllExport | Quaternion (Quaternion &&x) noexcept |
Move constructor. 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 void | w (double _w) |
This function sets a value in member w. More... | |
eProsima_user_DllExport double | w () const |
This function returns the value of member w. More... | |
eProsima_user_DllExport double & | w () |
This function returns a reference to member w. 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 | ~Quaternion () |
Default destructor. More... | |
Static Public Member Functions | |
static eProsima_user_DllExport size_t | getCdrSerializedSize (const geometry_msgs::msg::Quaternion &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_w |
double | m_x |
double | m_y |
double | m_z |
This class represents the structure Quaternion defined by the user in the IDL file.
Definition at line 70 of file Quaternion.h.
geometry_msgs::msg::Quaternion::Quaternion | ( | ) |
Default constructor.
Definition at line 40 of file Quaternion.cpp.
geometry_msgs::msg::Quaternion::~Quaternion | ( | ) |
Default destructor.
Definition at line 52 of file Quaternion.cpp.
geometry_msgs::msg::Quaternion::Quaternion | ( | const Quaternion & | x | ) |
Copy constructor.
x | Reference to the object geometry_msgs::msg::Quaternion that will be copied. |
Definition at line 56 of file Quaternion.cpp.
|
noexcept |
Move constructor.
x | Reference to the object geometry_msgs::msg::Quaternion that will be copied. |
Definition at line 65 of file Quaternion.cpp.
void geometry_msgs::msg::Quaternion::deserialize | ( | eprosima::fastcdr::Cdr & | cdr | ) |
This function deserializes an object using CDR serialization.
cdr | CDR serialization object. |
Definition at line 138 of file Quaternion.cpp.
Referenced by geometry_msgs::msg::QuaternionPubSubType::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 115 of file Quaternion.cpp.
Referenced by geometry_msgs::msg::Pose::getCdrSerializedSize(), geometry_msgs::msg::Transform::getCdrSerializedSize(), sensor_msgs::msg::Imu::getCdrSerializedSize(), and geometry_msgs::msg::QuaternionPubSubType::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 259 of file Quaternion.cpp.
References geometry_msgs_msg_Quaternion_max_key_cdr_typesize.
Referenced by geometry_msgs::msg::QuaternionPubSubType::getKey(), and geometry_msgs::msg::QuaternionPubSubType::QuaternionPubSubType().
|
static |
This function returns the maximum serialized size of an object depending on the buffer alignment.
current_alignment | Buffer alignment. |
Definition at line 108 of file Quaternion.cpp.
References geometry_msgs_msg_Quaternion_max_cdr_typesize.
Referenced by geometry_msgs::msg::QuaternionPubSubType::QuaternionPubSubType().
|
static |
This function tells you if the Key has been defined for this type.
Definition at line 266 of file Quaternion.cpp.
Referenced by geometry_msgs::msg::QuaternionPubSubType::QuaternionPubSubType().
bool geometry_msgs::msg::Quaternion::operator!= | ( | const Quaternion & | x | ) | const |
Comparison operator.
x | geometry_msgs::msg::Quaternion object to compare. |
Definition at line 102 of file Quaternion.cpp.
geometry_msgs::msg::Quaternion & geometry_msgs::msg::Quaternion::operator= | ( | const Quaternion & | x | ) |
Copy assignment.
x | Reference to the object geometry_msgs::msg::Quaternion that will be copied. |
Definition at line 74 of file Quaternion.cpp.
|
noexcept |
Move assignment.
x | Reference to the object geometry_msgs::msg::Quaternion that will be copied. |
Definition at line 85 of file Quaternion.cpp.
References m_x.
bool geometry_msgs::msg::Quaternion::operator== | ( | const Quaternion & | x | ) | const |
Comparison operator.
x | geometry_msgs::msg::Quaternion object to compare. |
Definition at line 96 of file Quaternion.cpp.
void geometry_msgs::msg::Quaternion::serialize | ( | eprosima::fastcdr::Cdr & | cdr | ) | const |
This function serializes an object using CDR serialization.
cdr | CDR serialization object. |
Definition at line 129 of file Quaternion.cpp.
Referenced by geometry_msgs::msg::QuaternionPubSubType::serialize().
void geometry_msgs::msg::Quaternion::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 271 of file Quaternion.cpp.
Referenced by geometry_msgs::msg::QuaternionPubSubType::getKey().
void geometry_msgs::msg::Quaternion::w | ( | double | _w | ) |
This function sets a value in member w.
_w | New value for member w |
Definition at line 235 of file Quaternion.cpp.
Referenced by carla::ros2::CarlaIMUPublisher::SetData().
double geometry_msgs::msg::Quaternion::w | ( | ) | const |
This function returns the value of member w.
Definition at line 245 of file Quaternion.cpp.
double & geometry_msgs::msg::Quaternion::w | ( | ) |
This function returns a reference to member w.
Definition at line 254 of file Quaternion.cpp.
void geometry_msgs::msg::Quaternion::x | ( | double | _x | ) |
This function sets a value in member x.
_x | New value for member x |
Definition at line 151 of file Quaternion.cpp.
Referenced by carla::ros2::CarlaIMUPublisher::SetData().
double geometry_msgs::msg::Quaternion::x | ( | ) | const |
This function returns the value of member x.
Definition at line 161 of file Quaternion.cpp.
double & geometry_msgs::msg::Quaternion::x | ( | ) |
This function returns a reference to member x.
Definition at line 170 of file Quaternion.cpp.
void geometry_msgs::msg::Quaternion::y | ( | double | _y | ) |
This function sets a value in member y.
_y | New value for member y |
Definition at line 179 of file Quaternion.cpp.
Referenced by carla::ros2::CarlaIMUPublisher::SetData().
double geometry_msgs::msg::Quaternion::y | ( | ) | const |
This function returns the value of member y.
Definition at line 189 of file Quaternion.cpp.
double & geometry_msgs::msg::Quaternion::y | ( | ) |
This function returns a reference to member y.
Definition at line 198 of file Quaternion.cpp.
void geometry_msgs::msg::Quaternion::z | ( | double | _z | ) |
This function sets a value in member z.
_z | New value for member z |
Definition at line 207 of file Quaternion.cpp.
Referenced by carla::ros2::CarlaIMUPublisher::SetData().
double geometry_msgs::msg::Quaternion::z | ( | ) | const |
This function returns the value of member z.
Definition at line 217 of file Quaternion.cpp.
double & geometry_msgs::msg::Quaternion::z | ( | ) |
This function returns a reference to member z.
Definition at line 226 of file Quaternion.cpp.
|
private |
Definition at line 260 of file Quaternion.h.
Referenced by operator=(), operator==(), and Quaternion().
|
private |
Definition at line 257 of file Quaternion.h.
Referenced by operator=(), operator==(), and Quaternion().
|
private |
Definition at line 258 of file Quaternion.h.
Referenced by operator=(), operator==(), and Quaternion().
|
private |
Definition at line 259 of file Quaternion.h.
Referenced by operator=(), operator==(), and Quaternion().