This class represents the structure Image defined by the user in the IDL file. 更多...
#include <Image.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::string & | encoding () |
This function returns a reference to member encoding | |
eProsima_user_DllExport const std::string & | encoding () const |
This function returns a constant reference to member encoding | |
eProsima_user_DllExport void | encoding (const std::string &_encoding) |
This function copies the value in member encoding | |
eProsima_user_DllExport void | encoding (std::string &&_encoding) |
This function moves the value in member encoding | |
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 | Image () |
Default constructor. | |
eProsima_user_DllExport | Image (const Image &x) |
Copy constructor. | |
eProsima_user_DllExport | Image (Image &&x) noexcept |
Move constructor. | |
eProsima_user_DllExport uint8_t & | is_bigendian () |
This function returns a reference to member is_bigendian | |
eProsima_user_DllExport uint8_t | is_bigendian () const |
This function returns the value of member is_bigendian | |
eProsima_user_DllExport void | is_bigendian (uint8_t _is_bigendian) |
This function sets a value in member is_bigendian | |
eProsima_user_DllExport bool | operator!= (const Image &x) const |
Comparison operator. | |
eProsima_user_DllExport Image & | operator= (const Image &x) |
Copy assignment. | |
eProsima_user_DllExport Image & | operator= (Image &&x) noexcept |
Move assignment. | |
eProsima_user_DllExport bool | operator== (const Image &x) const |
Comparison operator. | |
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 & | step () |
This function returns a reference to member step | |
eProsima_user_DllExport uint32_t | step () const |
This function returns the value of member step | |
eProsima_user_DllExport void | step (uint32_t _step) |
This function sets a value in member step | |
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 | ~Image () |
Default destructor. | |
静态 Public 成员函数 | |
static eProsima_user_DllExport size_t | getCdrSerializedSize (const sensor_msgs::msg::Image &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::string | m_encoding |
std_msgs::msg::Header | m_header |
uint32_t | m_height |
uint8_t | m_is_bigendian |
uint32_t | m_step |
uint32_t | m_width |
This class represents the structure Image defined by the user in the IDL file.
在文件 ros2/types/Image.h 第 72 行定义.
sensor_msgs::msg::Image::Image | ( | ) |
Default constructor.
引用了 m_encoding, m_height, m_is_bigendian, m_step , 以及 m_width.
sensor_msgs::msg::Image::Image | ( | const Image & | x | ) |
Copy constructor.
x | Reference to the object sensor_msgs::msg::Image that will be copied. |
引用了 m_data, m_encoding, m_header, m_height, m_is_bigendian, m_step , 以及 m_width.
|
noexcept |
Move constructor.
x | Reference to the object sensor_msgs::msg::Image that will be copied. |
std::vector< uint8_t > & sensor_msgs::msg::Image::data | ( | ) |
const std::vector< uint8_t > & sensor_msgs::msg::Image::data | ( | ) | const |
void sensor_msgs::msg::Image::data | ( | const std::vector< uint8_t > & | _data | ) |
This function copies the value in member data
_data | New value to be copied in member data |
被这些函数引用 getCdrSerializedSize().
void sensor_msgs::msg::Image::data | ( | std::vector< uint8_t > && | _data | ) |
void sensor_msgs::msg::Image::deserialize | ( | eprosima::fastcdr::Cdr & | cdr | ) |
This function deserializes an object using CDR serialization.
cdr | CDR serialization object. |
被这些函数引用 sensor_msgs::msg::ImagePubSubType::deserialize().
std::string & sensor_msgs::msg::Image::encoding | ( | ) |
const std::string & sensor_msgs::msg::Image::encoding | ( | ) | const |
void sensor_msgs::msg::Image::encoding | ( | const std::string & | _encoding | ) |
This function copies the value in member encoding
_encoding | New value to be copied in member encoding |
被这些函数引用 getCdrSerializedSize().
void sensor_msgs::msg::Image::encoding | ( | std::string && | _encoding | ) |
|
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. |
引用了 data(), encoding(), std_msgs::msg::Header::getCdrSerializedSize() , 以及 header().
被这些函数引用 sensor_msgs::msg::ImagePubSubType::getSerializedSizeProvider().
|
static |
This function returns the maximum serialized size of the Key of an object depending on the buffer alignment.
current_alignment | Buffer alignment. |
引用了 sensor_msgs_msg_Image_max_key_cdr_typesize.
被这些函数引用 sensor_msgs::msg::ImagePubSubType::getKey() , 以及 sensor_msgs::msg::ImagePubSubType::ImagePubSubType().
|
static |
This function returns the maximum serialized size of an object depending on the buffer alignment.
current_alignment | Buffer alignment. |
引用了 sensor_msgs_msg_Image_max_cdr_typesize.
被这些函数引用 sensor_msgs::msg::ImagePubSubType::ImagePubSubType().
std_msgs::msg::Header & sensor_msgs::msg::Image::header | ( | ) |
const std_msgs::msg::Header & sensor_msgs::msg::Image::header | ( | ) | const |
void sensor_msgs::msg::Image::header | ( | const std_msgs::msg::Header & | _header | ) |
This function copies the value in member header
_header | New value to be copied in member header |
被这些函数引用 getCdrSerializedSize().
void sensor_msgs::msg::Image::header | ( | std_msgs::msg::Header && | _header | ) |
uint32_t & sensor_msgs::msg::Image::height | ( | ) |
uint32_t sensor_msgs::msg::Image::height | ( | ) | const |
void sensor_msgs::msg::Image::height | ( | uint32_t | _height | ) |
uint8_t & sensor_msgs::msg::Image::is_bigendian | ( | ) |
uint8_t sensor_msgs::msg::Image::is_bigendian | ( | ) | const |
void sensor_msgs::msg::Image::is_bigendian | ( | uint8_t | _is_bigendian | ) |
|
static |
This function tells you if the Key has been defined for this type
被这些函数引用 sensor_msgs::msg::ImagePubSubType::ImagePubSubType().
bool sensor_msgs::msg::Image::operator!= | ( | const Image & | x | ) | const |
sensor_msgs::msg::Image & sensor_msgs::msg::Image::operator= | ( | const Image & | x | ) |
Copy assignment.
x | Reference to the object sensor_msgs::msg::Image that will be copied. |
引用了 m_data, m_encoding, m_header, m_height, m_is_bigendian, m_step , 以及 m_width.
|
noexcept |
Move assignment.
x | Reference to the object sensor_msgs::msg::Image that will be copied. |
bool sensor_msgs::msg::Image::operator== | ( | const Image & | x | ) | const |
Comparison operator.
x | sensor_msgs::msg::Image object to compare. |
引用了 m_data, m_encoding, m_header, m_height, m_is_bigendian, m_step , 以及 m_width.
void sensor_msgs::msg::Image::serialize | ( | eprosima::fastcdr::Cdr & | cdr | ) | const |
This function serializes an object using CDR serialization.
cdr | CDR serialization object. |
被这些函数引用 sensor_msgs::msg::ImagePubSubType::serialize().
void sensor_msgs::msg::Image::serializeKey | ( | eprosima::fastcdr::Cdr & | cdr | ) | const |
This function serializes the key members of an object using CDR serialization.
cdr | CDR serialization object. |
被这些函数引用 sensor_msgs::msg::ImagePubSubType::getKey().
uint32_t & sensor_msgs::msg::Image::step | ( | ) |
uint32_t sensor_msgs::msg::Image::step | ( | ) | const |
void sensor_msgs::msg::Image::step | ( | uint32_t | _step | ) |
uint32_t & sensor_msgs::msg::Image::width | ( | ) |
uint32_t sensor_msgs::msg::Image::width | ( | ) | const |
void sensor_msgs::msg::Image::width | ( | uint32_t | _width | ) |
|
private |
在文件 ros2/types/Image.h 第 342 行定义.
被这些函数引用 Image(), operator=() , 以及 operator==().
|
private |
在文件 ros2/types/Image.h 第 339 行定义.
被这些函数引用 Image(), Image(), operator=() , 以及 operator==().
|
private |
在文件 ros2/types/Image.h 第 336 行定义.
被这些函数引用 Image(), operator=() , 以及 operator==().
|
private |
在文件 ros2/types/Image.h 第 337 行定义.
被这些函数引用 Image(), Image(), operator=() , 以及 operator==().
|
private |
在文件 ros2/types/Image.h 第 340 行定义.
被这些函数引用 Image(), Image(), operator=() , 以及 operator==().
|
private |
在文件 ros2/types/Image.h 第 341 行定义.
被这些函数引用 Image(), Image(), operator=() , 以及 operator==().
|
private |
在文件 ros2/types/Image.h 第 338 行定义.
被这些函数引用 Image(), Image(), operator=() , 以及 operator==().