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::Header & header ()
 This function returns a reference to member header
 
eProsima_user_DllExport const std_msgs::msg::Header & header () 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.cpp41 行定义.

引用了 m_angular_velocity_covariance, m_linear_acceleration_covariance , 以及 m_orientation_covariance.

◆ ~Imu()

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

Default destructor.

在文件 Imu.cpp55 行定义.

◆ 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.cpp59 行定义.

引用了 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.cpp72 行定义.

成员函数说明

◆ 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.cpp316 行定义.

◆ 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.cpp307 行定义.

◆ 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.cpp287 行定义.

被这些函数引用 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.cpp297 行定义.

◆ 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.cpp354 行定义.

◆ 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.cpp345 行定义.

◆ 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.cpp325 行定义.

◆ 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.cpp335 行定义.

◆ deserialize()

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

This function deserializes an object using CDR serialization.

参数
cdrCDR serialization object.

在文件 Imu.cpp156 行定义.

被这些函数引用 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.cpp128 行定义.

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

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

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

◆ getKeyMaxCdrSerializedSize()

static eProsima_user_DllExport 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.

被这些函数引用 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.cpp121 行定义.

引用了 current_alignment , 以及 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

返回成员变量 header 的引用

返回
Reference to member header
引用,指向成员变量 header

在文件 Imu.cpp202 行定义.

◆ header() [2/4]

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

This function returns a constant reference to member header

返回成员变量 header 的常量引用

返回
Constant reference to member header
常量引用,指向成员变量 header

在文件 Imu.cpp193 行定义.

◆ header() [3/4]

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

This function copies the value in member header

复制成员变量 header 的值

参数
_headerNew value to be copied in member header
_header新值,将被复制到成员变量 header

在文件 Imu.cpp173 行定义.

被这些函数引用 getCdrSerializedSize().

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

◆ header() [4/4]

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

This function moves the value in member header

移动成员变量 header 的值

参数
_headerNew value to be moved in member header
_header新值,将被移动到成员变量 header

在文件 Imu.cpp183 行定义.

◆ isKeyDefined()

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

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

被这些函数引用 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.cpp392 行定义.

◆ 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.cpp383 行定义.

◆ 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.cpp363 行定义.

被这些函数引用 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.cpp373 行定义.

◆ linear_acceleration_covariance() [1/4]

eProsima_user_DllExport 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

◆ 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.cpp421 行定义.

◆ 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.cpp401 行定义.

◆ 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.cpp411 行定义.

◆ operator!=()

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

Comparison operator.

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

在文件 Imu.cpp115 行定义.

◆ 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.cpp83 行定义.

引用了 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.cpp96 行定义.

◆ 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

返回成员变量 orientation 的引用

返回
Reference to member orientation
引用,指向成员变量 orientation

在文件 Imu.cpp240 行定义.

◆ orientation() [2/4]

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

This function returns a constant reference to member orientation

返回成员变量 orientation 的常量引用

返回
Constant reference to member orientation
常量引用,指向成员变量 orientation

在文件 Imu.cpp231 行定义.

◆ orientation() [3/4]

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

This function copies the value in member orientation

复制成员变量 orientation 的值

参数
_orientationNew value to be copied in member orientation
_orientation新值,将被复制到成员变量 orientation

在文件 Imu.cpp211 行定义.

被这些函数引用 getCdrSerializedSize().

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

◆ orientation() [4/4]

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

This function moves the value in member orientation

移动成员变量 orientation 的值

参数
_orientationNew value to be moved in member orientation
_orientation新值,将被移动到成员变量 orientation

在文件 Imu.cpp221 行定义.

◆ 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.cpp278 行定义.

◆ 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.cpp269 行定义.

◆ 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_covariance 的值

参数
_orientation_covarianceNew value to be copied in member orientation_covariance
_orientation_covariance新值,将被复制到成员变量 orientation_covariance

在文件 Imu.cpp249 行定义.

◆ 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.cpp259 行定义.

◆ serialize()

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

This function serializes an object using CDR serialization.

参数
cdrCDR serialization object.

在文件 Imu.cpp144 行定义.

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

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

◆ serializeKey()

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

被这些函数引用 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==().


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