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

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

#include <PointCloud2.h>

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

Public 成员函数

eProsima_user_DllExport std::vector< uint8_t > & data ()
 This function returns a reference to member data
 
eProsima_user_DllExport const std::vector< uint8_t > & data () const
 This function returns a constant reference to member data
 
eProsima_user_DllExport void data (const std::vector< uint8_t > &_data)
 This function copies the value in member data
 
eProsima_user_DllExport void data (std::vector< uint8_t > &&_data)
 This function moves the value in member data
 
eProsima_user_DllExport void deserialize (eprosima::fastcdr::Cdr &cdr)
 This function deserializes an object using CDR serialization.
 
eProsima_user_DllExport std::vector< sensor_msgs::msg::PointField > & fields ()
 This function returns a reference to member fields
 
eProsima_user_DllExport const std::vector< sensor_msgs::msg::PointField > & fields () const
 This function returns a constant reference to member fields
 
eProsima_user_DllExport void fields (const std::vector< sensor_msgs::msg::PointField > &_fields)
 This function copies the value in member fields
 
eProsima_user_DllExport void fields (std::vector< sensor_msgs::msg::PointField > &&_fields)
 This function moves the value in member fields
 
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 uint32_t & height ()
 This function returns a reference to member height
 
eProsima_user_DllExport uint32_t height () const
 This function returns the value of member height
 
eProsima_user_DllExport void height (uint32_t _height)
 This function sets a value in member height
 
eProsima_user_DllExport bool & is_bigendian ()
 This function returns a reference to member is_bigendian
 
eProsima_user_DllExport bool is_bigendian () const
 This function returns the value of member is_bigendian
 
eProsima_user_DllExport void is_bigendian (bool _is_bigendian)
 This function sets a value in member is_bigendian
 
eProsima_user_DllExport bool & is_dense ()
 This function returns a reference to member is_dense
 
eProsima_user_DllExport bool is_dense () const
 This function returns the value of member is_dense
 
eProsima_user_DllExport void is_dense (bool _is_dense)
 This function sets a value in member is_dense
 
eProsima_user_DllExport bool operator!= (const PointCloud2 &x) const
 Comparison operator.
 
eProsima_user_DllExport PointCloud2operator= (const PointCloud2 &x)
 Copy assignment.
 
eProsima_user_DllExport PointCloud2operator= (PointCloud2 &&x) noexcept
 Move assignment.
 
eProsima_user_DllExport bool operator== (const PointCloud2 &x) const
 Comparison operator.
 
eProsima_user_DllExport uint32_t & point_step ()
 This function returns a reference to member point_step
 
eProsima_user_DllExport uint32_t point_step () const
 This function returns the value of member point_step
 
eProsima_user_DllExport void point_step (uint32_t _point_step)
 This function sets a value in member point_step
 
eProsima_user_DllExport PointCloud2 ()
 Default constructor.
 
eProsima_user_DllExport PointCloud2 (const PointCloud2 &x)
 Copy constructor.
 
eProsima_user_DllExport PointCloud2 (PointCloud2 &&x) noexcept
 Move constructor.
 
eProsima_user_DllExport uint32_t & row_step ()
 This function returns a reference to member row_step
 
eProsima_user_DllExport uint32_t row_step () const
 This function returns the value of member row_step
 
eProsima_user_DllExport void row_step (uint32_t _row_step)
 This function sets a value in member row_step
 
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 uint32_t & width ()
 This function returns a reference to member width
 
eProsima_user_DllExport uint32_t width () const
 This function returns the value of member width
 
eProsima_user_DllExport void width (uint32_t _width)
 This function sets a value in member width
 
eProsima_user_DllExport ~PointCloud2 ()
 Default destructor.
 

静态 Public 成员函数

static eProsima_user_DllExport size_t getCdrSerializedSize (const sensor_msgs::msg::PointCloud2 &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 属性

std::vector< uint8_t > m_data
 
std::vector< sensor_msgs::msg::PointFieldm_fields
 
std_msgs::msg::Header m_header
 
uint32_t m_height
 
bool m_is_bigendian
 
bool m_is_dense
 
uint32_t m_point_step
 
uint32_t m_row_step
 
uint32_t m_width
 

详细描述

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

在文件 PointCloud2.h73 行定义.

构造及析构函数说明

◆ PointCloud2() [1/3]

sensor_msgs::msg::PointCloud2::PointCloud2 ( )

Default constructor.

在文件 PointCloud2.cpp46 行定义.

引用了 m_height, m_is_bigendian, m_is_dense, m_point_step, m_row_step , 以及 m_width.

◆ ~PointCloud2()

sensor_msgs::msg::PointCloud2::~PointCloud2 ( )

Default destructor.

在文件 PointCloud2.cpp68 行定义.

◆ PointCloud2() [2/3]

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

Copy constructor.

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

在文件 PointCloud2.cpp72 行定义.

引用了 m_data, m_fields, m_header, m_height, m_is_bigendian, m_is_dense, m_point_step, m_row_step , 以及 m_width.

◆ PointCloud2() [3/3]

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

Move constructor.

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

在文件 PointCloud2.cpp86 行定义.

成员函数说明

◆ data() [1/4]

std::vector< uint8_t > & sensor_msgs::msg::PointCloud2::data ( )

This function returns a reference to member data

返回
Reference to member data

在文件 PointCloud2.cpp458 行定义.

◆ data() [2/4]

const std::vector< uint8_t > & sensor_msgs::msg::PointCloud2::data ( ) const

This function returns a constant reference to member data

返回
Constant reference to member data

在文件 PointCloud2.cpp449 行定义.

◆ data() [3/4]

void sensor_msgs::msg::PointCloud2::data ( const std::vector< uint8_t > & _data)

This function copies the value in member data

参数
_dataNew value to be copied in member data

在文件 PointCloud2.cpp429 行定义.

被这些函数引用 getCdrSerializedSize().

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

◆ data() [4/4]

void sensor_msgs::msg::PointCloud2::data ( std::vector< uint8_t > && _data)

This function moves the value in member data

参数
_dataNew value to be moved in member data

在文件 PointCloud2.cpp439 行定义.

◆ deserialize()

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

This function deserializes an object using CDR serialization.

参数
cdrCDR serialization object.

在文件 PointCloud2.cpp195 行定义.

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

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

◆ fields() [1/4]

std::vector< sensor_msgs::msg::PointField > & sensor_msgs::msg::PointCloud2::fields ( )

This function returns a reference to member fields

返回
Reference to member fields

在文件 PointCloud2.cpp336 行定义.

◆ fields() [2/4]

const std::vector< sensor_msgs::msg::PointField > & sensor_msgs::msg::PointCloud2::fields ( ) const

This function returns a constant reference to member fields

返回
Constant reference to member fields

在文件 PointCloud2.cpp327 行定义.

◆ fields() [3/4]

void sensor_msgs::msg::PointCloud2::fields ( const std::vector< sensor_msgs::msg::PointField > & _fields)

This function copies the value in member fields

参数
_fieldsNew value to be copied in member fields

在文件 PointCloud2.cpp307 行定义.

被这些函数引用 getCdrSerializedSize().

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

◆ fields() [4/4]

void sensor_msgs::msg::PointCloud2::fields ( std::vector< sensor_msgs::msg::PointField > && _fields)

This function moves the value in member fields

参数
_fieldsNew value to be moved in member fields

在文件 PointCloud2.cpp317 行定义.

◆ getCdrSerializedSize()

size_t sensor_msgs::msg::PointCloud2::getCdrSerializedSize ( const sensor_msgs::msg::PointCloud2 & 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.

在文件 PointCloud2.cpp151 行定义.

引用了 data(), fields(), sensor_msgs::msg::PointField::getCdrSerializedSize(), std_msgs::msg::Header::getCdrSerializedSize() , 以及 header().

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

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

◆ getKeyMaxCdrSerializedSize()

size_t sensor_msgs::msg::PointCloud2::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.

在文件 PointCloud2.cpp491 行定义.

引用了 sensor_msgs_msg_PointCloud2_max_key_cdr_typesize.

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

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

◆ getMaxCdrSerializedSize()

size_t sensor_msgs::msg::PointCloud2::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.

在文件 PointCloud2.cpp144 行定义.

引用了 sensor_msgs_msg_PointCloud2_max_cdr_typesize.

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

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

◆ header() [1/4]

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

This function returns a reference to member header

返回
Reference to member header

在文件 PointCloud2.cpp242 行定义.

◆ header() [2/4]

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

This function returns a constant reference to member header

返回
Constant reference to member header

在文件 PointCloud2.cpp233 行定义.

◆ header() [3/4]

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

This function copies the value in member header

参数
_headerNew value to be copied in member header

在文件 PointCloud2.cpp213 行定义.

被这些函数引用 getCdrSerializedSize().

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

◆ header() [4/4]

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

This function moves the value in member header

参数
_headerNew value to be moved in member header

在文件 PointCloud2.cpp223 行定义.

◆ height() [1/3]

uint32_t & sensor_msgs::msg::PointCloud2::height ( )

This function returns a reference to member height

返回
Reference to member height

在文件 PointCloud2.cpp270 行定义.

◆ height() [2/3]

uint32_t sensor_msgs::msg::PointCloud2::height ( ) const

This function returns the value of member height

返回
Value of member height

在文件 PointCloud2.cpp261 行定义.

◆ height() [3/3]

void sensor_msgs::msg::PointCloud2::height ( uint32_t _height)

This function sets a value in member height

参数
_heightNew value for member height

在文件 PointCloud2.cpp251 行定义.

◆ is_bigendian() [1/3]

bool & sensor_msgs::msg::PointCloud2::is_bigendian ( )

This function returns a reference to member is_bigendian

返回
Reference to member is_bigendian

在文件 PointCloud2.cpp364 行定义.

◆ is_bigendian() [2/3]

bool sensor_msgs::msg::PointCloud2::is_bigendian ( ) const

This function returns the value of member is_bigendian

返回
Value of member is_bigendian

在文件 PointCloud2.cpp355 行定义.

◆ is_bigendian() [3/3]

void sensor_msgs::msg::PointCloud2::is_bigendian ( bool _is_bigendian)

This function sets a value in member is_bigendian

参数
_is_bigendianNew value for member is_bigendian

在文件 PointCloud2.cpp345 行定义.

◆ is_dense() [1/3]

bool & sensor_msgs::msg::PointCloud2::is_dense ( )

This function returns a reference to member is_dense

返回
Reference to member is_dense

在文件 PointCloud2.cpp486 行定义.

◆ is_dense() [2/3]

bool sensor_msgs::msg::PointCloud2::is_dense ( ) const

This function returns the value of member is_dense

返回
Value of member is_dense

在文件 PointCloud2.cpp477 行定义.

◆ is_dense() [3/3]

void sensor_msgs::msg::PointCloud2::is_dense ( bool _is_dense)

This function sets a value in member is_dense

参数
_is_denseNew value for member is_dense

在文件 PointCloud2.cpp467 行定义.

◆ isKeyDefined()

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

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

在文件 PointCloud2.cpp498 行定义.

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

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

◆ operator!=()

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

Comparison operator.

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

在文件 PointCloud2.cpp138 行定义.

◆ operator=() [1/2]

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

Copy assignment.

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

在文件 PointCloud2.cpp100 行定义.

引用了 m_data, m_fields, m_header, m_height, m_is_bigendian, m_is_dense, m_point_step, m_row_step , 以及 m_width.

◆ operator=() [2/2]

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

Move assignment.

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

在文件 PointCloud2.cpp116 行定义.

◆ operator==()

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

Comparison operator.

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

在文件 PointCloud2.cpp132 行定义.

引用了 m_data, m_fields, m_header, m_height, m_is_bigendian, m_is_dense, m_point_step, m_row_step , 以及 m_width.

◆ point_step() [1/3]

uint32_t & sensor_msgs::msg::PointCloud2::point_step ( )

This function returns a reference to member point_step

返回
Reference to member point_step

在文件 PointCloud2.cpp392 行定义.

◆ point_step() [2/3]

uint32_t sensor_msgs::msg::PointCloud2::point_step ( ) const

This function returns the value of member point_step

返回
Value of member point_step

在文件 PointCloud2.cpp383 行定义.

◆ point_step() [3/3]

void sensor_msgs::msg::PointCloud2::point_step ( uint32_t _point_step)

This function sets a value in member point_step

参数
_point_stepNew value for member point_step

在文件 PointCloud2.cpp373 行定义.

◆ row_step() [1/3]

uint32_t & sensor_msgs::msg::PointCloud2::row_step ( )

This function returns a reference to member row_step

返回
Reference to member row_step

在文件 PointCloud2.cpp420 行定义.

◆ row_step() [2/3]

uint32_t sensor_msgs::msg::PointCloud2::row_step ( ) const

This function returns the value of member row_step

返回
Value of member row_step

在文件 PointCloud2.cpp411 行定义.

◆ row_step() [3/3]

void sensor_msgs::msg::PointCloud2::row_step ( uint32_t _row_step)

This function sets a value in member row_step

参数
_row_stepNew value for member row_step

在文件 PointCloud2.cpp401 行定义.

◆ serialize()

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

This function serializes an object using CDR serialization.

参数
cdrCDR serialization object.

在文件 PointCloud2.cpp181 行定义.

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

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

◆ serializeKey()

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

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

参数
cdrCDR serialization object.

在文件 PointCloud2.cpp503 行定义.

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

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

◆ width() [1/3]

uint32_t & sensor_msgs::msg::PointCloud2::width ( )

This function returns a reference to member width

返回
Reference to member width

在文件 PointCloud2.cpp298 行定义.

◆ width() [2/3]

uint32_t sensor_msgs::msg::PointCloud2::width ( ) const

This function returns the value of member width

返回
Value of member width

在文件 PointCloud2.cpp289 行定义.

◆ width() [3/3]

void sensor_msgs::msg::PointCloud2::width ( uint32_t _width)

This function sets a value in member width

参数
_widthNew value for member width

在文件 PointCloud2.cpp279 行定义.

类成员变量说明

◆ m_data

std::vector<uint8_t> sensor_msgs::msg::PointCloud2::m_data
private

在文件 PointCloud2.h380 行定义.

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

◆ m_fields

std::vector<sensor_msgs::msg::PointField> sensor_msgs::msg::PointCloud2::m_fields
private

在文件 PointCloud2.h376 行定义.

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

◆ m_header

std_msgs::msg::Header sensor_msgs::msg::PointCloud2::m_header
private

在文件 PointCloud2.h373 行定义.

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

◆ m_height

uint32_t sensor_msgs::msg::PointCloud2::m_height
private

在文件 PointCloud2.h374 行定义.

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

◆ m_is_bigendian

bool sensor_msgs::msg::PointCloud2::m_is_bigendian
private

在文件 PointCloud2.h377 行定义.

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

◆ m_is_dense

bool sensor_msgs::msg::PointCloud2::m_is_dense
private

在文件 PointCloud2.h381 行定义.

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

◆ m_point_step

uint32_t sensor_msgs::msg::PointCloud2::m_point_step
private

在文件 PointCloud2.h378 行定义.

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

◆ m_row_step

uint32_t sensor_msgs::msg::PointCloud2::m_row_step
private

在文件 PointCloud2.h379 行定义.

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

◆ m_width

uint32_t sensor_msgs::msg::PointCloud2::m_width
private

在文件 PointCloud2.h375 行定义.

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


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