This class represents the structure PointCloud2 defined by the user in the IDL file. 更多...
#include <PointCloud2.h>
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::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 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 PointCloud2 & | operator= (const PointCloud2 &x) |
Copy assignment. | |
eProsima_user_DllExport PointCloud2 & | operator= (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::PointField > | m_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.h 第 73 行定义.
sensor_msgs::msg::PointCloud2::PointCloud2 | ( | ) |
Default constructor.
在文件 PointCloud2.cpp 第 46 行定义.
引用了 m_height, m_is_bigendian, m_is_dense, m_point_step, m_row_step , 以及 m_width.
sensor_msgs::msg::PointCloud2::~PointCloud2 | ( | ) |
Default destructor.
在文件 PointCloud2.cpp 第 68 行定义.
sensor_msgs::msg::PointCloud2::PointCloud2 | ( | const PointCloud2 & | x | ) |
Copy constructor.
x | Reference to the object sensor_msgs::msg::PointCloud2 that will be copied. |
在文件 PointCloud2.cpp 第 72 行定义.
引用了 m_data, m_fields, m_header, m_height, m_is_bigendian, m_is_dense, m_point_step, m_row_step , 以及 m_width.
|
noexcept |
Move constructor.
x | Reference to the object sensor_msgs::msg::PointCloud2 that will be copied. |
在文件 PointCloud2.cpp 第 86 行定义.
std::vector< uint8_t > & sensor_msgs::msg::PointCloud2::data | ( | ) |
This function returns a reference to member data
在文件 PointCloud2.cpp 第 458 行定义.
const std::vector< uint8_t > & sensor_msgs::msg::PointCloud2::data | ( | ) | const |
This function returns a constant reference to member data
在文件 PointCloud2.cpp 第 449 行定义.
void sensor_msgs::msg::PointCloud2::data | ( | const std::vector< uint8_t > & | _data | ) |
This function copies the value in member data
_data | New value to be copied in member data |
在文件 PointCloud2.cpp 第 429 行定义.
被这些函数引用 getCdrSerializedSize().
void sensor_msgs::msg::PointCloud2::data | ( | std::vector< uint8_t > && | _data | ) |
This function moves the value in member data
_data | New value to be moved in member data |
在文件 PointCloud2.cpp 第 439 行定义.
void sensor_msgs::msg::PointCloud2::deserialize | ( | eprosima::fastcdr::Cdr & | cdr | ) |
This function deserializes an object using CDR serialization.
cdr | CDR serialization object. |
在文件 PointCloud2.cpp 第 195 行定义.
被这些函数引用 sensor_msgs::msg::PointCloud2PubSubType::deserialize().
std::vector< sensor_msgs::msg::PointField > & sensor_msgs::msg::PointCloud2::fields | ( | ) |
This function returns a reference to member fields
在文件 PointCloud2.cpp 第 336 行定义.
const std::vector< sensor_msgs::msg::PointField > & sensor_msgs::msg::PointCloud2::fields | ( | ) | const |
This function returns a constant reference to member fields
在文件 PointCloud2.cpp 第 327 行定义.
void sensor_msgs::msg::PointCloud2::fields | ( | const std::vector< sensor_msgs::msg::PointField > & | _fields | ) |
This function copies the value in member fields
_fields | New value to be copied in member fields |
在文件 PointCloud2.cpp 第 307 行定义.
被这些函数引用 getCdrSerializedSize().
void sensor_msgs::msg::PointCloud2::fields | ( | std::vector< sensor_msgs::msg::PointField > && | _fields | ) |
This function moves the value in member fields
_fields | New value to be moved in member fields |
在文件 PointCloud2.cpp 第 317 行定义.
|
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. |
在文件 PointCloud2.cpp 第 151 行定义.
引用了 data(), fields(), sensor_msgs::msg::PointField::getCdrSerializedSize(), std_msgs::msg::Header::getCdrSerializedSize() , 以及 header().
被这些函数引用 sensor_msgs::msg::PointCloud2PubSubType::getSerializedSizeProvider().
|
static |
This function returns the maximum serialized size of the Key of an object depending on the buffer alignment.
current_alignment | Buffer alignment. |
在文件 PointCloud2.cpp 第 491 行定义.
引用了 sensor_msgs_msg_PointCloud2_max_key_cdr_typesize.
被这些函数引用 sensor_msgs::msg::PointCloud2PubSubType::getKey() , 以及 sensor_msgs::msg::PointCloud2PubSubType::PointCloud2PubSubType().
|
static |
This function returns the maximum serialized size of an object depending on the buffer alignment.
current_alignment | Buffer alignment. |
在文件 PointCloud2.cpp 第 144 行定义.
引用了 sensor_msgs_msg_PointCloud2_max_cdr_typesize.
被这些函数引用 sensor_msgs::msg::PointCloud2PubSubType::PointCloud2PubSubType().
std_msgs::msg::Header & sensor_msgs::msg::PointCloud2::header | ( | ) |
This function returns a reference to member header
在文件 PointCloud2.cpp 第 242 行定义.
const std_msgs::msg::Header & sensor_msgs::msg::PointCloud2::header | ( | ) | const |
This function returns a constant reference to member header
在文件 PointCloud2.cpp 第 233 行定义.
void sensor_msgs::msg::PointCloud2::header | ( | const std_msgs::msg::Header & | _header | ) |
This function copies the value in member header
_header | New value to be copied in member header |
在文件 PointCloud2.cpp 第 213 行定义.
被这些函数引用 getCdrSerializedSize().
void sensor_msgs::msg::PointCloud2::header | ( | std_msgs::msg::Header && | _header | ) |
This function moves the value in member header
_header | New value to be moved in member header |
在文件 PointCloud2.cpp 第 223 行定义.
uint32_t & sensor_msgs::msg::PointCloud2::height | ( | ) |
This function returns a reference to member height
在文件 PointCloud2.cpp 第 270 行定义.
uint32_t sensor_msgs::msg::PointCloud2::height | ( | ) | const |
This function returns the value of member height
在文件 PointCloud2.cpp 第 261 行定义.
void sensor_msgs::msg::PointCloud2::height | ( | uint32_t | _height | ) |
This function sets a value in member height
_height | New value for member height |
在文件 PointCloud2.cpp 第 251 行定义.
bool & sensor_msgs::msg::PointCloud2::is_bigendian | ( | ) |
This function returns a reference to member is_bigendian
在文件 PointCloud2.cpp 第 364 行定义.
bool sensor_msgs::msg::PointCloud2::is_bigendian | ( | ) | const |
This function returns the value of member is_bigendian
在文件 PointCloud2.cpp 第 355 行定义.
void sensor_msgs::msg::PointCloud2::is_bigendian | ( | bool | _is_bigendian | ) |
This function sets a value in member is_bigendian
_is_bigendian | New value for member is_bigendian |
在文件 PointCloud2.cpp 第 345 行定义.
bool & sensor_msgs::msg::PointCloud2::is_dense | ( | ) |
This function returns a reference to member is_dense
在文件 PointCloud2.cpp 第 486 行定义.
bool sensor_msgs::msg::PointCloud2::is_dense | ( | ) | const |
This function returns the value of member is_dense
在文件 PointCloud2.cpp 第 477 行定义.
void sensor_msgs::msg::PointCloud2::is_dense | ( | bool | _is_dense | ) |
This function sets a value in member is_dense
_is_dense | New value for member is_dense |
在文件 PointCloud2.cpp 第 467 行定义.
|
static |
This function tells you if the Key has been defined for this type
在文件 PointCloud2.cpp 第 498 行定义.
被这些函数引用 sensor_msgs::msg::PointCloud2PubSubType::PointCloud2PubSubType().
bool sensor_msgs::msg::PointCloud2::operator!= | ( | const PointCloud2 & | x | ) | const |
Comparison operator.
x | sensor_msgs::msg::PointCloud2 object to compare. |
在文件 PointCloud2.cpp 第 138 行定义.
sensor_msgs::msg::PointCloud2 & sensor_msgs::msg::PointCloud2::operator= | ( | const PointCloud2 & | x | ) |
Copy assignment.
x | Reference to the object sensor_msgs::msg::PointCloud2 that will be copied. |
在文件 PointCloud2.cpp 第 100 行定义.
引用了 m_data, m_fields, m_header, m_height, m_is_bigendian, m_is_dense, m_point_step, m_row_step , 以及 m_width.
|
noexcept |
Move assignment.
x | Reference to the object sensor_msgs::msg::PointCloud2 that will be copied. |
在文件 PointCloud2.cpp 第 116 行定义.
bool sensor_msgs::msg::PointCloud2::operator== | ( | const PointCloud2 & | x | ) | const |
Comparison operator.
x | sensor_msgs::msg::PointCloud2 object to compare. |
在文件 PointCloud2.cpp 第 132 行定义.
引用了 m_data, m_fields, m_header, m_height, m_is_bigendian, m_is_dense, m_point_step, m_row_step , 以及 m_width.
uint32_t & sensor_msgs::msg::PointCloud2::point_step | ( | ) |
This function returns a reference to member point_step
在文件 PointCloud2.cpp 第 392 行定义.
uint32_t sensor_msgs::msg::PointCloud2::point_step | ( | ) | const |
This function returns the value of member point_step
在文件 PointCloud2.cpp 第 383 行定义.
void sensor_msgs::msg::PointCloud2::point_step | ( | uint32_t | _point_step | ) |
This function sets a value in member point_step
_point_step | New value for member point_step |
在文件 PointCloud2.cpp 第 373 行定义.
uint32_t & sensor_msgs::msg::PointCloud2::row_step | ( | ) |
This function returns a reference to member row_step
在文件 PointCloud2.cpp 第 420 行定义.
uint32_t sensor_msgs::msg::PointCloud2::row_step | ( | ) | const |
This function returns the value of member row_step
在文件 PointCloud2.cpp 第 411 行定义.
void sensor_msgs::msg::PointCloud2::row_step | ( | uint32_t | _row_step | ) |
This function sets a value in member row_step
_row_step | New value for member row_step |
在文件 PointCloud2.cpp 第 401 行定义.
void sensor_msgs::msg::PointCloud2::serialize | ( | eprosima::fastcdr::Cdr & | cdr | ) | const |
This function serializes an object using CDR serialization.
cdr | CDR serialization object. |
在文件 PointCloud2.cpp 第 181 行定义.
被这些函数引用 sensor_msgs::msg::PointCloud2PubSubType::serialize().
void sensor_msgs::msg::PointCloud2::serializeKey | ( | eprosima::fastcdr::Cdr & | cdr | ) | const |
This function serializes the key members of an object using CDR serialization.
cdr | CDR serialization object. |
在文件 PointCloud2.cpp 第 503 行定义.
被这些函数引用 sensor_msgs::msg::PointCloud2PubSubType::getKey().
uint32_t & sensor_msgs::msg::PointCloud2::width | ( | ) |
This function returns a reference to member width
在文件 PointCloud2.cpp 第 298 行定义.
uint32_t sensor_msgs::msg::PointCloud2::width | ( | ) | const |
This function returns the value of member width
在文件 PointCloud2.cpp 第 289 行定义.
void sensor_msgs::msg::PointCloud2::width | ( | uint32_t | _width | ) |
This function sets a value in member width
_width | New value for member width |
在文件 PointCloud2.cpp 第 279 行定义.
|
private |
在文件 PointCloud2.h 第 380 行定义.
被这些函数引用 operator=(), operator==() , 以及 PointCloud2().
|
private |
在文件 PointCloud2.h 第 376 行定义.
被这些函数引用 operator=(), operator==() , 以及 PointCloud2().
|
private |
在文件 PointCloud2.h 第 373 行定义.
被这些函数引用 operator=(), operator==() , 以及 PointCloud2().
|
private |
在文件 PointCloud2.h 第 374 行定义.
被这些函数引用 operator=(), operator==(), PointCloud2() , 以及 PointCloud2().
|
private |
在文件 PointCloud2.h 第 377 行定义.
被这些函数引用 operator=(), operator==(), PointCloud2() , 以及 PointCloud2().
|
private |
在文件 PointCloud2.h 第 381 行定义.
被这些函数引用 operator=(), operator==(), PointCloud2() , 以及 PointCloud2().
|
private |
在文件 PointCloud2.h 第 378 行定义.
被这些函数引用 operator=(), operator==(), PointCloud2() , 以及 PointCloud2().
|
private |
在文件 PointCloud2.h 第 379 行定义.
被这些函数引用 operator=(), operator==(), PointCloud2() , 以及 PointCloud2().
|
private |
在文件 PointCloud2.h 第 375 行定义.
被这些函数引用 operator=(), operator==(), PointCloud2() , 以及 PointCloud2().