This class represents the structure Imu defined by the user in the IDL file. More...
#include <Imu.h>
Public Member Functions | |
eProsima_user_DllExport void | angular_velocity (const geometry_msgs::msg::Vector3 &_angular_velocity) |
This function copies the value in member angular_velocity. More... | |
eProsima_user_DllExport void | angular_velocity (geometry_msgs::msg::Vector3 &&_angular_velocity) |
This function moves the value in member angular_velocity. More... | |
eProsima_user_DllExport const geometry_msgs::msg::Vector3 & | angular_velocity () const |
This function returns a constant reference to member angular_velocity. More... | |
eProsima_user_DllExport geometry_msgs::msg::Vector3 & | angular_velocity () |
This function returns a reference to member angular_velocity. More... | |
eProsima_user_DllExport void | angular_velocity_covariance (const sensor_msgs::msg::sensor_msgs__Imu__double_array_9 &_angular_velocity_covariance) |
This function copies the value in member angular_velocity_covariance. More... | |
eProsima_user_DllExport void | angular_velocity_covariance (sensor_msgs::msg::sensor_msgs__Imu__double_array_9 &&_angular_velocity_covariance) |
This function moves the value in member angular_velocity_covariance. More... | |
eProsima_user_DllExport const sensor_msgs::msg::sensor_msgs__Imu__double_array_9 & | angular_velocity_covariance () const |
This function returns a constant reference to member angular_velocity_covariance. More... | |
eProsima_user_DllExport sensor_msgs::msg::sensor_msgs__Imu__double_array_9 & | angular_velocity_covariance () |
This function returns a reference to member angular_velocity_covariance. 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 | Imu () |
Default constructor. More... | |
eProsima_user_DllExport | Imu (const Imu &x) |
Copy constructor. More... | |
eProsima_user_DllExport | Imu (Imu &&x) noexcept |
Move constructor. More... | |
eProsima_user_DllExport void | linear_acceleration (const geometry_msgs::msg::Vector3 &_linear_acceleration) |
This function copies the value in member linear_acceleration. More... | |
eProsima_user_DllExport void | linear_acceleration (geometry_msgs::msg::Vector3 &&_linear_acceleration) |
This function moves the value in member linear_acceleration. More... | |
eProsima_user_DllExport const geometry_msgs::msg::Vector3 & | linear_acceleration () const |
This function returns a constant reference to member linear_acceleration. More... | |
eProsima_user_DllExport geometry_msgs::msg::Vector3 & | linear_acceleration () |
This function returns a reference to member linear_acceleration. More... | |
eProsima_user_DllExport void | linear_acceleration_covariance (const sensor_msgs::msg::sensor_msgs__Imu__double_array_9 &_linear_acceleration_covariance) |
This function copies the value in member linear_acceleration_covariance. More... | |
eProsima_user_DllExport void | linear_acceleration_covariance (sensor_msgs::msg::sensor_msgs__Imu__double_array_9 &&_linear_acceleration_covariance) |
This function moves the value in member linear_acceleration_covariance. More... | |
eProsima_user_DllExport const sensor_msgs::msg::sensor_msgs__Imu__double_array_9 & | linear_acceleration_covariance () const |
This function returns a constant reference to member linear_acceleration_covariance. More... | |
eProsima_user_DllExport sensor_msgs::msg::sensor_msgs__Imu__double_array_9 & | linear_acceleration_covariance () |
This function returns a reference to member linear_acceleration_covariance. More... | |
eProsima_user_DllExport bool | operator!= (const Imu &x) const |
Comparison operator. More... | |
eProsima_user_DllExport Imu & | operator= (const Imu &x) |
Copy assignment. More... | |
eProsima_user_DllExport Imu & | operator= (Imu &&x) noexcept |
Move assignment. More... | |
eProsima_user_DllExport bool | operator== (const Imu &x) const |
Comparison operator. More... | |
eProsima_user_DllExport void | orientation (const geometry_msgs::msg::Quaternion &_orientation) |
This function copies the value in member orientation. More... | |
eProsima_user_DllExport void | orientation (geometry_msgs::msg::Quaternion &&_orientation) |
This function moves the value in member orientation. More... | |
eProsima_user_DllExport const geometry_msgs::msg::Quaternion & | orientation () const |
This function returns a constant reference to member orientation. More... | |
eProsima_user_DllExport geometry_msgs::msg::Quaternion & | orientation () |
This function returns a reference to member orientation. More... | |
eProsima_user_DllExport void | orientation_covariance (const sensor_msgs::msg::sensor_msgs__Imu__double_array_9 &_orientation_covariance) |
This function copies the value in member orientation_covariance. More... | |
eProsima_user_DllExport void | orientation_covariance (sensor_msgs::msg::sensor_msgs__Imu__double_array_9 &&_orientation_covariance) |
This function moves the value in member orientation_covariance. More... | |
eProsima_user_DllExport const sensor_msgs::msg::sensor_msgs__Imu__double_array_9 & | orientation_covariance () const |
This function returns a constant reference to member orientation_covariance. More... | |
eProsima_user_DllExport sensor_msgs::msg::sensor_msgs__Imu__double_array_9 & | orientation_covariance () |
This function returns a reference to member orientation_covariance. 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 | ~Imu () |
Default destructor. More... | |
Static Public Member Functions | |
static eProsima_user_DllExport size_t | getCdrSerializedSize (const sensor_msgs::msg::Imu &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... | |
This class represents the structure Imu defined by the user in the IDL file.
sensor_msgs::msg::Imu::Imu | ( | const Imu & | x | ) |
Copy constructor.
x | Reference to the object sensor_msgs::msg::Imu that will be copied. |
Definition at line 72 of file Imu.cpp.
References m_angular_velocity, m_angular_velocity_covariance, m_header, m_linear_acceleration, m_linear_acceleration_covariance, m_orientation, and m_orientation_covariance.
|
noexcept |
Move constructor.
x | Reference to the object sensor_msgs::msg::Imu that will be copied. |
void sensor_msgs::msg::Imu::angular_velocity | ( | const geometry_msgs::msg::Vector3 & | _angular_velocity | ) |
This function copies the value in member angular_velocity.
_angular_velocity | New value to be copied in member angular_velocity |
Definition at line 301 of file Imu.cpp.
Referenced by getCdrSerializedSize().
void sensor_msgs::msg::Imu::angular_velocity | ( | geometry_msgs::msg::Vector3 && | _angular_velocity | ) |
const geometry_msgs::msg::Vector3 & sensor_msgs::msg::Imu::angular_velocity | ( | ) | const |
geometry_msgs::msg::Vector3 & sensor_msgs::msg::Imu::angular_velocity | ( | ) |
void sensor_msgs::msg::Imu::angular_velocity_covariance | ( | const sensor_msgs::msg::sensor_msgs__Imu__double_array_9 & | _angular_velocity_covariance | ) |
void sensor_msgs::msg::Imu::angular_velocity_covariance | ( | sensor_msgs::msg::sensor_msgs__Imu__double_array_9 && | _angular_velocity_covariance | ) |
const sensor_msgs::msg::sensor_msgs__Imu__double_array_9 & sensor_msgs::msg::Imu::angular_velocity_covariance | ( | ) | const |
sensor_msgs::msg::sensor_msgs__Imu__double_array_9 & sensor_msgs::msg::Imu::angular_velocity_covariance | ( | ) |
void sensor_msgs::msg::Imu::deserialize | ( | eprosima::fastcdr::Cdr & | cdr | ) |
This function deserializes an object using CDR serialization.
cdr | CDR serialization object. |
Definition at line 171 of file Imu.cpp.
Referenced by sensor_msgs::msg::ImuPubSubType::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 143 of file Imu.cpp.
References angular_velocity(), std_msgs::msg::Header::getCdrSerializedSize(), geometry_msgs::msg::Vector3::getCdrSerializedSize(), geometry_msgs::msg::Quaternion::getCdrSerializedSize(), header(), linear_acceleration(), and orientation().
Referenced by sensor_msgs::msg::ImuPubSubType::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 449 of file Imu.cpp.
References sensor_msgs_msg_Imu_max_key_cdr_typesize.
Referenced by sensor_msgs::msg::ImuPubSubType::getKey(), and sensor_msgs::msg::ImuPubSubType::ImuPubSubType().
|
static |
This function returns the maximum serialized size of an object depending on the buffer alignment.
current_alignment | Buffer alignment. |
Definition at line 136 of file Imu.cpp.
References sensor_msgs_msg_Imu_max_cdr_typesize.
Referenced by sensor_msgs::msg::ImuPubSubType::ImuPubSubType().
void sensor_msgs::msg::Imu::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 187 of file Imu.cpp.
Referenced by getCdrSerializedSize().
void sensor_msgs::msg::Imu::header | ( | std_msgs::msg::Header && | _header | ) |
const std_msgs::msg::Header & sensor_msgs::msg::Imu::header | ( | ) | const |
std_msgs::msg::Header & sensor_msgs::msg::Imu::header | ( | ) |
|
static |
This function tells you if the Key has been defined for this type.
Definition at line 456 of file Imu.cpp.
Referenced by sensor_msgs::msg::ImuPubSubType::ImuPubSubType().
void sensor_msgs::msg::Imu::linear_acceleration | ( | const geometry_msgs::msg::Vector3 & | _linear_acceleration | ) |
This function copies the value in member linear_acceleration.
_linear_acceleration | New value to be copied in member linear_acceleration |
Definition at line 377 of file Imu.cpp.
Referenced by getCdrSerializedSize().
void sensor_msgs::msg::Imu::linear_acceleration | ( | geometry_msgs::msg::Vector3 && | _linear_acceleration | ) |
const geometry_msgs::msg::Vector3 & sensor_msgs::msg::Imu::linear_acceleration | ( | ) | const |
geometry_msgs::msg::Vector3 & sensor_msgs::msg::Imu::linear_acceleration | ( | ) |
void sensor_msgs::msg::Imu::linear_acceleration_covariance | ( | const sensor_msgs::msg::sensor_msgs__Imu__double_array_9 & | _linear_acceleration_covariance | ) |
void sensor_msgs::msg::Imu::linear_acceleration_covariance | ( | sensor_msgs::msg::sensor_msgs__Imu__double_array_9 && | _linear_acceleration_covariance | ) |
const sensor_msgs::msg::sensor_msgs__Imu__double_array_9 & sensor_msgs::msg::Imu::linear_acceleration_covariance | ( | ) | const |
sensor_msgs::msg::sensor_msgs__Imu__double_array_9 & sensor_msgs::msg::Imu::linear_acceleration_covariance | ( | ) |
bool sensor_msgs::msg::Imu::operator!= | ( | const Imu & | x | ) | const |
Comparison operator.
x | sensor_msgs::msg::Imu object to compare. |
sensor_msgs::msg::Imu & sensor_msgs::msg::Imu::operator= | ( | const Imu & | x | ) |
Copy assignment.
x | Reference to the object sensor_msgs::msg::Imu that will be copied. |
Definition at line 96 of file Imu.cpp.
References m_angular_velocity, m_angular_velocity_covariance, m_header, m_linear_acceleration, m_linear_acceleration_covariance, m_orientation, and m_orientation_covariance.
|
noexcept |
Move assignment.
x | Reference to the object sensor_msgs::msg::Imu that will be copied. |
bool sensor_msgs::msg::Imu::operator== | ( | const Imu & | x | ) | const |
Comparison operator.
x | sensor_msgs::msg::Imu object to compare. |
Definition at line 124 of file Imu.cpp.
References m_angular_velocity, m_angular_velocity_covariance, m_header, m_linear_acceleration, m_linear_acceleration_covariance, m_orientation, and m_orientation_covariance.
void sensor_msgs::msg::Imu::orientation | ( | const geometry_msgs::msg::Quaternion & | _orientation | ) |
This function copies the value in member orientation.
_orientation | New value to be copied in member orientation |
Definition at line 225 of file Imu.cpp.
Referenced by getCdrSerializedSize().
void sensor_msgs::msg::Imu::orientation | ( | geometry_msgs::msg::Quaternion && | _orientation | ) |
const geometry_msgs::msg::Quaternion & sensor_msgs::msg::Imu::orientation | ( | ) | const |
geometry_msgs::msg::Quaternion & sensor_msgs::msg::Imu::orientation | ( | ) |
void sensor_msgs::msg::Imu::orientation_covariance | ( | const sensor_msgs::msg::sensor_msgs__Imu__double_array_9 & | _orientation_covariance | ) |
void sensor_msgs::msg::Imu::orientation_covariance | ( | sensor_msgs::msg::sensor_msgs__Imu__double_array_9 && | _orientation_covariance | ) |
const sensor_msgs::msg::sensor_msgs__Imu__double_array_9 & sensor_msgs::msg::Imu::orientation_covariance | ( | ) | const |
sensor_msgs::msg::sensor_msgs__Imu__double_array_9 & sensor_msgs::msg::Imu::orientation_covariance | ( | ) |
void sensor_msgs::msg::Imu::serialize | ( | eprosima::fastcdr::Cdr & | cdr | ) | const |
This function serializes an object using CDR serialization.
cdr | CDR serialization object. |
Definition at line 159 of file Imu.cpp.
Referenced by sensor_msgs::msg::ImuPubSubType::serialize().
void sensor_msgs::msg::Imu::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 461 of file Imu.cpp.
Referenced by sensor_msgs::msg::ImuPubSubType::getKey().
|
private |
Definition at line 365 of file Imu.h.
Referenced by Imu(), operator=(), and operator==().
|
private |
Definition at line 366 of file Imu.h.
Referenced by Imu(), operator=(), and operator==().
|
private |
Definition at line 362 of file Imu.h.
Referenced by Imu(), operator=(), and operator==().
|
private |
Definition at line 367 of file Imu.h.
Referenced by Imu(), operator=(), and operator==().
|
private |
Definition at line 368 of file Imu.h.
Referenced by Imu(), operator=(), and operator==().
|
private |
Definition at line 363 of file Imu.h.
Referenced by Imu(), operator=(), and operator==().
|
private |
Definition at line 364 of file Imu.h.
Referenced by Imu(), operator=(), and operator==().