CARLA
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
sensor_msgs::msg::Imu Class Reference

This class represents the structure Imu defined by the user in the IDL file. More...

#include <Imu.h>

+ Collaboration diagram for sensor_msgs::msg::Imu:

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::Vector3angular_velocity () const
 This function returns a constant reference to member angular_velocity. More...
 
eProsima_user_DllExport geometry_msgs::msg::Vector3angular_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_9angular_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_9angular_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::Headerheader () const
 This function returns a constant reference to member header. More...
 
eProsima_user_DllExport std_msgs::msg::Headerheader ()
 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::Vector3linear_acceleration () const
 This function returns a constant reference to member linear_acceleration. More...
 
eProsima_user_DllExport geometry_msgs::msg::Vector3linear_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_9linear_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_9linear_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 Imuoperator= (const Imu &x)
 Copy assignment. More...
 
eProsima_user_DllExport Imuoperator= (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::Quaternionorientation () const
 This function returns a constant reference to member orientation. More...
 
eProsima_user_DllExport geometry_msgs::msg::Quaternionorientation ()
 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_9orientation_covariance () const
 This function returns a constant reference to member orientation_covariance. More...
 
eProsima_user_DllExport sensor_msgs::msg::sensor_msgs__Imu__double_array_9orientation_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...
 

Private Attributes

geometry_msgs::msg::Vector3 m_angular_velocity
 
sensor_msgs::msg::sensor_msgs__Imu__double_array_9 m_angular_velocity_covariance
 
std_msgs::msg::Header m_header
 
geometry_msgs::msg::Vector3 m_linear_acceleration
 
sensor_msgs::msg::sensor_msgs__Imu__double_array_9 m_linear_acceleration_covariance
 
geometry_msgs::msg::Quaternion m_orientation
 
sensor_msgs::msg::sensor_msgs__Imu__double_array_9 m_orientation_covariance
 

Detailed Description

This class represents the structure Imu defined by the user in the IDL file.

Definition at line 75 of file Imu.h.

Constructor & Destructor Documentation

◆ Imu() [1/3]

sensor_msgs::msg::Imu::Imu ( )

Default constructor.

Definition at line 50 of file Imu.cpp.

◆ ~Imu()

sensor_msgs::msg::Imu::~Imu ( )

Default destructor.

Definition at line 68 of file Imu.cpp.

◆ Imu() [2/3]

sensor_msgs::msg::Imu::Imu ( const Imu x)

Copy constructor.

Parameters
xReference 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.

◆ Imu() [3/3]

sensor_msgs::msg::Imu::Imu ( Imu &&  x)
noexcept

Move constructor.

Parameters
xReference to the object sensor_msgs::msg::Imu that will be copied.

Definition at line 84 of file Imu.cpp.

Member Function Documentation

◆ angular_velocity() [1/4]

void sensor_msgs::msg::Imu::angular_velocity ( const geometry_msgs::msg::Vector3 _angular_velocity)

This function copies the value in member angular_velocity.

Parameters
_angular_velocityNew value to be copied in member angular_velocity

Definition at line 301 of file Imu.cpp.

Referenced by getCdrSerializedSize().

+ Here is the caller graph for this function:

◆ angular_velocity() [2/4]

void sensor_msgs::msg::Imu::angular_velocity ( geometry_msgs::msg::Vector3 &&  _angular_velocity)

This function moves the value in member angular_velocity.

Parameters
_angular_velocityNew value to be moved in member angular_velocity

Definition at line 311 of file Imu.cpp.

◆ angular_velocity() [3/4]

const geometry_msgs::msg::Vector3 & sensor_msgs::msg::Imu::angular_velocity ( ) const

This function returns a constant reference to member angular_velocity.

Returns
Constant reference to member angular_velocity

Definition at line 321 of file Imu.cpp.

◆ angular_velocity() [4/4]

geometry_msgs::msg::Vector3 & sensor_msgs::msg::Imu::angular_velocity ( )

This function returns a reference to member angular_velocity.

Returns
Reference to member angular_velocity

Definition at line 330 of file Imu.cpp.

◆ angular_velocity_covariance() [1/4]

void sensor_msgs::msg::Imu::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.

Parameters
_angular_velocity_covarianceNew value to be copied in member angular_velocity_covariance

Definition at line 339 of file Imu.cpp.

◆ angular_velocity_covariance() [2/4]

void sensor_msgs::msg::Imu::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.

Parameters
_angular_velocity_covarianceNew value to be moved in member angular_velocity_covariance

Definition at line 349 of file Imu.cpp.

◆ angular_velocity_covariance() [3/4]

const sensor_msgs::msg::sensor_msgs__Imu__double_array_9 & sensor_msgs::msg::Imu::angular_velocity_covariance ( ) const

This function returns a constant reference to member angular_velocity_covariance.

Returns
Constant reference to member angular_velocity_covariance

Definition at line 359 of file Imu.cpp.

◆ angular_velocity_covariance() [4/4]

sensor_msgs::msg::sensor_msgs__Imu__double_array_9 & sensor_msgs::msg::Imu::angular_velocity_covariance ( )

This function returns a reference to member angular_velocity_covariance.

Returns
Reference to member angular_velocity_covariance

Definition at line 368 of file Imu.cpp.

◆ deserialize()

void sensor_msgs::msg::Imu::deserialize ( eprosima::fastcdr::Cdr &  cdr)

This function deserializes an object using CDR serialization.

Parameters
cdrCDR serialization object.

Definition at line 171 of file Imu.cpp.

Referenced by sensor_msgs::msg::ImuPubSubType::deserialize().

+ Here is the caller graph for this function:

◆ getCdrSerializedSize()

size_t sensor_msgs::msg::Imu::getCdrSerializedSize ( const sensor_msgs::msg::Imu data,
size_t  current_alignment = 0 
)
static

This function returns the serialized size of a data depending on the buffer alignment.

Parameters
dataData which is calculated its serialized size.
current_alignmentBuffer alignment.
Returns
Serialized size.

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getKeyMaxCdrSerializedSize()

size_t sensor_msgs::msg::Imu::getKeyMaxCdrSerializedSize ( size_t  current_alignment = 0)
static

This function returns the maximum serialized size of the Key of an object depending on the buffer alignment.

Parameters
current_alignmentBuffer alignment.
Returns
Maximum serialized size.

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().

+ Here is the caller graph for this function:

◆ getMaxCdrSerializedSize()

size_t sensor_msgs::msg::Imu::getMaxCdrSerializedSize ( size_t  current_alignment = 0)
static

This function returns the maximum serialized size of an object depending on the buffer alignment.

Parameters
current_alignmentBuffer alignment.
Returns
Maximum serialized size.

Definition at line 136 of file Imu.cpp.

References sensor_msgs_msg_Imu_max_cdr_typesize.

Referenced by sensor_msgs::msg::ImuPubSubType::ImuPubSubType().

+ Here is the caller graph for this function:

◆ header() [1/4]

void sensor_msgs::msg::Imu::header ( const std_msgs::msg::Header _header)

This function copies the value in member header.

Parameters
_headerNew value to be copied in member header

Definition at line 187 of file Imu.cpp.

Referenced by getCdrSerializedSize().

+ Here is the caller graph for this function:

◆ header() [2/4]

void sensor_msgs::msg::Imu::header ( std_msgs::msg::Header &&  _header)

This function moves the value in member header.

Parameters
_headerNew value to be moved in member header

Definition at line 197 of file Imu.cpp.

◆ header() [3/4]

const std_msgs::msg::Header & sensor_msgs::msg::Imu::header ( ) const

This function returns a constant reference to member header.

Returns
Constant reference to member header

Definition at line 207 of file Imu.cpp.

◆ header() [4/4]

std_msgs::msg::Header & sensor_msgs::msg::Imu::header ( )

This function returns a reference to member header.

Returns
Reference to member header

Definition at line 216 of file Imu.cpp.

◆ isKeyDefined()

bool sensor_msgs::msg::Imu::isKeyDefined ( )
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().

+ Here is the caller graph for this function:

◆ linear_acceleration() [1/4]

void sensor_msgs::msg::Imu::linear_acceleration ( const geometry_msgs::msg::Vector3 _linear_acceleration)

This function copies the value in member linear_acceleration.

Parameters
_linear_accelerationNew value to be copied in member linear_acceleration

Definition at line 377 of file Imu.cpp.

Referenced by getCdrSerializedSize().

+ Here is the caller graph for this function:

◆ linear_acceleration() [2/4]

void sensor_msgs::msg::Imu::linear_acceleration ( geometry_msgs::msg::Vector3 &&  _linear_acceleration)

This function moves the value in member linear_acceleration.

Parameters
_linear_accelerationNew value to be moved in member linear_acceleration

Definition at line 387 of file Imu.cpp.

◆ linear_acceleration() [3/4]

const geometry_msgs::msg::Vector3 & sensor_msgs::msg::Imu::linear_acceleration ( ) const

This function returns a constant reference to member linear_acceleration.

Returns
Constant reference to member linear_acceleration

Definition at line 397 of file Imu.cpp.

◆ linear_acceleration() [4/4]

geometry_msgs::msg::Vector3 & sensor_msgs::msg::Imu::linear_acceleration ( )

This function returns a reference to member linear_acceleration.

Returns
Reference to member linear_acceleration

Definition at line 406 of file Imu.cpp.

◆ linear_acceleration_covariance() [1/4]

void sensor_msgs::msg::Imu::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.

Parameters
_linear_acceleration_covarianceNew value to be copied in member linear_acceleration_covariance

Definition at line 415 of file Imu.cpp.

◆ linear_acceleration_covariance() [2/4]

void sensor_msgs::msg::Imu::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.

Parameters
_linear_acceleration_covarianceNew value to be moved in member linear_acceleration_covariance

Definition at line 425 of file Imu.cpp.

◆ linear_acceleration_covariance() [3/4]

const sensor_msgs::msg::sensor_msgs__Imu__double_array_9 & sensor_msgs::msg::Imu::linear_acceleration_covariance ( ) const

This function returns a constant reference to member linear_acceleration_covariance.

Returns
Constant reference to member linear_acceleration_covariance

Definition at line 435 of file Imu.cpp.

◆ linear_acceleration_covariance() [4/4]

sensor_msgs::msg::sensor_msgs__Imu__double_array_9 & sensor_msgs::msg::Imu::linear_acceleration_covariance ( )

This function returns a reference to member linear_acceleration_covariance.

Returns
Reference to member linear_acceleration_covariance

Definition at line 444 of file Imu.cpp.

◆ operator!=()

bool sensor_msgs::msg::Imu::operator!= ( const Imu x) const

Comparison operator.

Parameters
xsensor_msgs::msg::Imu object to compare.

Definition at line 130 of file Imu.cpp.

◆ operator=() [1/2]

sensor_msgs::msg::Imu & sensor_msgs::msg::Imu::operator= ( const Imu x)

Copy assignment.

Parameters
xReference 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.

◆ operator=() [2/2]

sensor_msgs::msg::Imu & sensor_msgs::msg::Imu::operator= ( Imu &&  x)
noexcept

Move assignment.

Parameters
xReference to the object sensor_msgs::msg::Imu that will be copied.

Definition at line 110 of file Imu.cpp.

◆ operator==()

bool sensor_msgs::msg::Imu::operator== ( const Imu x) const

◆ orientation() [1/4]

void sensor_msgs::msg::Imu::orientation ( const geometry_msgs::msg::Quaternion _orientation)

This function copies the value in member orientation.

Parameters
_orientationNew value to be copied in member orientation

Definition at line 225 of file Imu.cpp.

Referenced by getCdrSerializedSize().

+ Here is the caller graph for this function:

◆ orientation() [2/4]

void sensor_msgs::msg::Imu::orientation ( geometry_msgs::msg::Quaternion &&  _orientation)

This function moves the value in member orientation.

Parameters
_orientationNew value to be moved in member orientation

Definition at line 235 of file Imu.cpp.

◆ orientation() [3/4]

const geometry_msgs::msg::Quaternion & sensor_msgs::msg::Imu::orientation ( ) const

This function returns a constant reference to member orientation.

Returns
Constant reference to member orientation

Definition at line 245 of file Imu.cpp.

◆ orientation() [4/4]

geometry_msgs::msg::Quaternion & sensor_msgs::msg::Imu::orientation ( )

This function returns a reference to member orientation.

Returns
Reference to member orientation

Definition at line 254 of file Imu.cpp.

◆ orientation_covariance() [1/4]

void sensor_msgs::msg::Imu::orientation_covariance ( const sensor_msgs::msg::sensor_msgs__Imu__double_array_9 _orientation_covariance)

This function copies the value in member orientation_covariance.

Parameters
_orientation_covarianceNew value to be copied in member orientation_covariance

Definition at line 263 of file Imu.cpp.

◆ orientation_covariance() [2/4]

void sensor_msgs::msg::Imu::orientation_covariance ( sensor_msgs::msg::sensor_msgs__Imu__double_array_9 &&  _orientation_covariance)

This function moves the value in member orientation_covariance.

Parameters
_orientation_covarianceNew value to be moved in member orientation_covariance

Definition at line 273 of file Imu.cpp.

◆ orientation_covariance() [3/4]

const sensor_msgs::msg::sensor_msgs__Imu__double_array_9 & sensor_msgs::msg::Imu::orientation_covariance ( ) const

This function returns a constant reference to member orientation_covariance.

Returns
Constant reference to member orientation_covariance

Definition at line 283 of file Imu.cpp.

◆ orientation_covariance() [4/4]

sensor_msgs::msg::sensor_msgs__Imu__double_array_9 & sensor_msgs::msg::Imu::orientation_covariance ( )

This function returns a reference to member orientation_covariance.

Returns
Reference to member orientation_covariance

Definition at line 292 of file Imu.cpp.

◆ serialize()

void sensor_msgs::msg::Imu::serialize ( eprosima::fastcdr::Cdr &  cdr) const

This function serializes an object using CDR serialization.

Parameters
cdrCDR serialization object.

Definition at line 159 of file Imu.cpp.

Referenced by sensor_msgs::msg::ImuPubSubType::serialize().

+ Here is the caller graph for this function:

◆ serializeKey()

void sensor_msgs::msg::Imu::serializeKey ( eprosima::fastcdr::Cdr &  cdr) const

This function serializes the key members of an object using CDR serialization.

Parameters
cdrCDR serialization object.

Definition at line 461 of file Imu.cpp.

Referenced by sensor_msgs::msg::ImuPubSubType::getKey().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_angular_velocity

geometry_msgs::msg::Vector3 sensor_msgs::msg::Imu::m_angular_velocity
private

Definition at line 365 of file Imu.h.

Referenced by Imu(), operator=(), and operator==().

◆ m_angular_velocity_covariance

sensor_msgs::msg::sensor_msgs__Imu__double_array_9 sensor_msgs::msg::Imu::m_angular_velocity_covariance
private

Definition at line 366 of file Imu.h.

Referenced by Imu(), operator=(), and operator==().

◆ m_header

std_msgs::msg::Header sensor_msgs::msg::Imu::m_header
private

Definition at line 362 of file Imu.h.

Referenced by Imu(), operator=(), and operator==().

◆ m_linear_acceleration

geometry_msgs::msg::Vector3 sensor_msgs::msg::Imu::m_linear_acceleration
private

Definition at line 367 of file Imu.h.

Referenced by Imu(), operator=(), and operator==().

◆ m_linear_acceleration_covariance

sensor_msgs::msg::sensor_msgs__Imu__double_array_9 sensor_msgs::msg::Imu::m_linear_acceleration_covariance
private

Definition at line 368 of file Imu.h.

Referenced by Imu(), operator=(), and operator==().

◆ m_orientation

geometry_msgs::msg::Quaternion sensor_msgs::msg::Imu::m_orientation
private

Definition at line 363 of file Imu.h.

Referenced by Imu(), operator=(), and operator==().

◆ m_orientation_covariance

sensor_msgs::msg::sensor_msgs__Imu__double_array_9 sensor_msgs::msg::Imu::m_orientation_covariance
private

Definition at line 364 of file Imu.h.

Referenced by Imu(), operator=(), and operator==().


The documentation for this class was generated from the following files: