CARLA
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | Private 属性 | 所有成员列表
sensor_msgs::msg::Imu类 参考

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

#include <Imu.h>

+ sensor_msgs::msg::Imu 的协作图:

Public 成员函数

eProsima_user_DllExport geometry_msgs::msg::Vector3angular_velocity ()
 This function returns a reference to member angular_velocity
 
eProsima_user_DllExport const geometry_msgs::msg::Vector3angular_velocity () const
 This function returns a constant reference to member angular_velocity
 
eProsima_user_DllExport void angular_velocity (const geometry_msgs::msg::Vector3 &_angular_velocity)
 This function copies the value in member angular_velocity
 
eProsima_user_DllExport void angular_velocity (geometry_msgs::msg::Vector3 &&_angular_velocity)
 This function moves the value in member angular_velocity
 
eProsima_user_DllExport sensor_msgs::msg::sensor_msgs__Imu__double_array_9angular_velocity_covariance ()
 This function returns a reference to member angular_velocity_covariance
 
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
 
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
 
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
 
eProsima_user_DllExport void deserialize (eprosima::fastcdr::Cdr &cdr)
 This function deserializes an object using CDR serialization.
 
eProsima_user_DllExport std_msgs::msg::Headerheader ()
 This function returns a reference to member header
 
eProsima_user_DllExport const std_msgs::msg::Headerheader () const
 This function returns a constant reference to member header
 
eProsima_user_DllExport void header (const std_msgs::msg::Header &_header)
 This function copies the value in member header
 
eProsima_user_DllExport void header (std_msgs::msg::Header &&_header)
 This function moves the value in member header
 
eProsima_user_DllExport Imu ()
 Default constructor.
 
eProsima_user_DllExport Imu (const Imu &x)
 Copy constructor.
 
eProsima_user_DllExport Imu (Imu &&x) noexcept
 Move constructor.
 
eProsima_user_DllExport geometry_msgs::msg::Vector3linear_acceleration ()
 This function returns a reference to member linear_acceleration
 
eProsima_user_DllExport const geometry_msgs::msg::Vector3linear_acceleration () const
 This function returns a constant reference to member linear_acceleration
 
eProsima_user_DllExport void linear_acceleration (const geometry_msgs::msg::Vector3 &_linear_acceleration)
 This function copies the value in member linear_acceleration
 
eProsima_user_DllExport void linear_acceleration (geometry_msgs::msg::Vector3 &&_linear_acceleration)
 This function moves the value in member linear_acceleration
 
eProsima_user_DllExport sensor_msgs::msg::sensor_msgs__Imu__double_array_9linear_acceleration_covariance ()
 This function returns a reference to member linear_acceleration_covariance
 
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
 
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
 
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
 
eProsima_user_DllExport bool operator!= (const Imu &x) const
 Comparison operator.
 
eProsima_user_DllExport Imuoperator= (const Imu &x)
 Copy assignment.
 
eProsima_user_DllExport Imuoperator= (Imu &&x) noexcept
 Move assignment.
 
eProsima_user_DllExport bool operator== (const Imu &x) const
 Comparison operator.
 
eProsima_user_DllExport geometry_msgs::msg::Quaternionorientation ()
 This function returns a reference to member orientation
 
eProsima_user_DllExport const geometry_msgs::msg::Quaternionorientation () const
 This function returns a constant reference to member orientation
 
eProsima_user_DllExport void orientation (const geometry_msgs::msg::Quaternion &_orientation)
 This function copies the value in member orientation
 
eProsima_user_DllExport void orientation (geometry_msgs::msg::Quaternion &&_orientation)
 This function moves the value in member orientation
 
eProsima_user_DllExport sensor_msgs::msg::sensor_msgs__Imu__double_array_9orientation_covariance ()
 This function returns a reference to member orientation_covariance
 
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
 
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
 
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
 
eProsima_user_DllExport void serialize (eprosima::fastcdr::Cdr &cdr) const
 This function serializes an object using CDR serialization.
 
eProsima_user_DllExport void serializeKey (eprosima::fastcdr::Cdr &cdr) const
 This function serializes the key members of an object using CDR serialization.
 
eProsima_user_DllExport ~Imu ()
 Default destructor.
 

静态 Public 成员函数

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.
 
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.
 
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.
 
static eProsima_user_DllExport bool isKeyDefined ()
 This function tells you if the Key has been defined for this type
 

Private 属性

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
 

详细描述

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

在文件 Imu.h75 行定义.

构造及析构函数说明

◆ Imu() [1/3]

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

Default constructor.

在文件 Imu.cpp50 行定义.

引用了 m_angular_velocity_covariance, m_linear_acceleration_covariance , 以及 m_orientation_covariance.

◆ ~Imu()

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

Default destructor.

在文件 Imu.cpp68 行定义.

◆ Imu() [2/3]

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

Copy constructor.

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

在文件 Imu.cpp72 行定义.

引用了 m_angular_velocity, m_angular_velocity_covariance, m_header, m_linear_acceleration, m_linear_acceleration_covariance, m_orientation , 以及 m_orientation_covariance.

◆ Imu() [3/3]

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

Move constructor.

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

在文件 Imu.cpp84 行定义.

成员函数说明

◆ angular_velocity() [1/4]

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

This function returns a reference to member angular_velocity

返回
Reference to member angular_velocity

在文件 Imu.cpp330 行定义.

◆ angular_velocity() [2/4]

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

This function returns a constant reference to member angular_velocity

返回
Constant reference to member angular_velocity

在文件 Imu.cpp321 行定义.

◆ angular_velocity() [3/4]

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

This function copies the value in member angular_velocity

参数
_angular_velocityNew value to be copied in member angular_velocity

在文件 Imu.cpp301 行定义.

被这些函数引用 getCdrSerializedSize().

+ 这是这个函数的调用关系图:

◆ angular_velocity() [4/4]

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

This function moves the value in member angular_velocity

参数
_angular_velocityNew value to be moved in member angular_velocity

在文件 Imu.cpp311 行定义.

◆ angular_velocity_covariance() [1/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

返回
Reference to member angular_velocity_covariance

在文件 Imu.cpp368 行定义.

◆ angular_velocity_covariance() [2/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

返回
Constant reference to member angular_velocity_covariance

在文件 Imu.cpp359 行定义.

◆ angular_velocity_covariance() [3/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

参数
_angular_velocity_covarianceNew value to be copied in member angular_velocity_covariance

在文件 Imu.cpp339 行定义.

◆ angular_velocity_covariance() [4/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

参数
_angular_velocity_covarianceNew value to be moved in member angular_velocity_covariance

在文件 Imu.cpp349 行定义.

◆ deserialize()

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

This function deserializes an object using CDR serialization.

参数
cdrCDR serialization object.

在文件 Imu.cpp171 行定义.

被这些函数引用 sensor_msgs::msg::ImuPubSubType::deserialize().

+ 这是这个函数的调用关系图:

◆ 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.

参数
dataData which is calculated its serialized size.
current_alignmentBuffer alignment.
返回
Serialized size.

在文件 Imu.cpp143 行定义.

引用了 angular_velocity(), geometry_msgs::msg::Quaternion::getCdrSerializedSize(), geometry_msgs::msg::Vector3::getCdrSerializedSize(), std_msgs::msg::Header::getCdrSerializedSize(), header(), linear_acceleration() , 以及 orientation().

被这些函数引用 sensor_msgs::msg::ImuPubSubType::getSerializedSizeProvider().

+ 函数调用图:
+ 这是这个函数的调用关系图:

◆ 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.

参数
current_alignmentBuffer alignment.
返回
Maximum serialized size.

在文件 Imu.cpp449 行定义.

引用了 sensor_msgs_msg_Imu_max_key_cdr_typesize.

被这些函数引用 sensor_msgs::msg::ImuPubSubType::getKey() , 以及 sensor_msgs::msg::ImuPubSubType::ImuPubSubType().

+ 这是这个函数的调用关系图:

◆ 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.

参数
current_alignmentBuffer alignment.
返回
Maximum serialized size.

在文件 Imu.cpp136 行定义.

引用了 sensor_msgs_msg_Imu_max_cdr_typesize.

被这些函数引用 sensor_msgs::msg::ImuPubSubType::ImuPubSubType().

+ 这是这个函数的调用关系图:

◆ header() [1/4]

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

This function returns a reference to member header

返回
Reference to member header

在文件 Imu.cpp216 行定义.

◆ header() [2/4]

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

This function returns a constant reference to member header

返回
Constant reference to member header

在文件 Imu.cpp207 行定义.

◆ header() [3/4]

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

This function copies the value in member header

参数
_headerNew value to be copied in member header

在文件 Imu.cpp187 行定义.

被这些函数引用 getCdrSerializedSize().

+ 这是这个函数的调用关系图:

◆ header() [4/4]

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

This function moves the value in member header

参数
_headerNew value to be moved in member header

在文件 Imu.cpp197 行定义.

◆ isKeyDefined()

bool sensor_msgs::msg::Imu::isKeyDefined ( )
static

This function tells you if the Key has been defined for this type

在文件 Imu.cpp456 行定义.

被这些函数引用 sensor_msgs::msg::ImuPubSubType::ImuPubSubType().

+ 这是这个函数的调用关系图:

◆ linear_acceleration() [1/4]

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

This function returns a reference to member linear_acceleration

返回
Reference to member linear_acceleration

在文件 Imu.cpp406 行定义.

◆ linear_acceleration() [2/4]

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

This function returns a constant reference to member linear_acceleration

返回
Constant reference to member linear_acceleration

在文件 Imu.cpp397 行定义.

◆ linear_acceleration() [3/4]

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

This function copies the value in member linear_acceleration

参数
_linear_accelerationNew value to be copied in member linear_acceleration

在文件 Imu.cpp377 行定义.

被这些函数引用 getCdrSerializedSize().

+ 这是这个函数的调用关系图:

◆ linear_acceleration() [4/4]

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

This function moves the value in member linear_acceleration

参数
_linear_accelerationNew value to be moved in member linear_acceleration

在文件 Imu.cpp387 行定义.

◆ linear_acceleration_covariance() [1/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

返回
Reference to member linear_acceleration_covariance

在文件 Imu.cpp444 行定义.

◆ linear_acceleration_covariance() [2/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

返回
Constant reference to member linear_acceleration_covariance

在文件 Imu.cpp435 行定义.

◆ linear_acceleration_covariance() [3/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

参数
_linear_acceleration_covarianceNew value to be copied in member linear_acceleration_covariance

在文件 Imu.cpp415 行定义.

◆ linear_acceleration_covariance() [4/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

参数
_linear_acceleration_covarianceNew value to be moved in member linear_acceleration_covariance

在文件 Imu.cpp425 行定义.

◆ operator!=()

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

Comparison operator.

参数
xsensor_msgs::msg::Imu object to compare.

在文件 Imu.cpp130 行定义.

◆ operator=() [1/2]

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

Copy assignment.

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

在文件 Imu.cpp96 行定义.

引用了 m_angular_velocity, m_angular_velocity_covariance, m_header, m_linear_acceleration, m_linear_acceleration_covariance, m_orientation , 以及 m_orientation_covariance.

◆ operator=() [2/2]

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

Move assignment.

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

在文件 Imu.cpp110 行定义.

◆ operator==()

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

◆ orientation() [1/4]

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

This function returns a reference to member orientation

返回
Reference to member orientation

在文件 Imu.cpp254 行定义.

◆ orientation() [2/4]

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

This function returns a constant reference to member orientation

返回
Constant reference to member orientation

在文件 Imu.cpp245 行定义.

◆ orientation() [3/4]

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

This function copies the value in member orientation

参数
_orientationNew value to be copied in member orientation

在文件 Imu.cpp225 行定义.

被这些函数引用 getCdrSerializedSize().

+ 这是这个函数的调用关系图:

◆ orientation() [4/4]

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

This function moves the value in member orientation

参数
_orientationNew value to be moved in member orientation

在文件 Imu.cpp235 行定义.

◆ orientation_covariance() [1/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

返回
Reference to member orientation_covariance

在文件 Imu.cpp292 行定义.

◆ orientation_covariance() [2/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

返回
Constant reference to member orientation_covariance

在文件 Imu.cpp283 行定义.

◆ orientation_covariance() [3/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

参数
_orientation_covarianceNew value to be copied in member orientation_covariance

在文件 Imu.cpp263 行定义.

◆ orientation_covariance() [4/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

参数
_orientation_covarianceNew value to be moved in member orientation_covariance

在文件 Imu.cpp273 行定义.

◆ serialize()

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

This function serializes an object using CDR serialization.

参数
cdrCDR serialization object.

在文件 Imu.cpp159 行定义.

被这些函数引用 sensor_msgs::msg::ImuPubSubType::serialize().

+ 这是这个函数的调用关系图:

◆ serializeKey()

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

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

参数
cdrCDR serialization object.

在文件 Imu.cpp461 行定义.

被这些函数引用 sensor_msgs::msg::ImuPubSubType::getKey().

+ 这是这个函数的调用关系图:

类成员变量说明

◆ m_angular_velocity

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

在文件 Imu.h365 行定义.

被这些函数引用 Imu(), operator=() , 以及 operator==().

◆ m_angular_velocity_covariance

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

在文件 Imu.h366 行定义.

被这些函数引用 Imu(), Imu(), operator=() , 以及 operator==().

◆ m_header

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

在文件 Imu.h362 行定义.

被这些函数引用 Imu(), operator=() , 以及 operator==().

◆ m_linear_acceleration

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

在文件 Imu.h367 行定义.

被这些函数引用 Imu(), operator=() , 以及 operator==().

◆ m_linear_acceleration_covariance

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

在文件 Imu.h368 行定义.

被这些函数引用 Imu(), Imu(), operator=() , 以及 operator==().

◆ m_orientation

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

在文件 Imu.h363 行定义.

被这些函数引用 Imu(), operator=() , 以及 operator==().

◆ m_orientation_covariance

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

在文件 Imu.h364 行定义.

被这些函数引用 Imu(), Imu(), operator=() , 以及 operator==().


该类的文档由以下文件生成: