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

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

#include <Image.h>

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

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::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 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 Imageoperator= (const Image &x)
 Copy assignment.
 
eProsima_user_DllExport Imageoperator= (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.h72 行定义.

构造及析构函数说明

◆ Image() [1/3]

sensor_msgs::msg::Image::Image ( )

Default constructor.

在文件 Image.cpp44 行定义.

引用了 m_encoding, m_height, m_is_bigendian, m_step , 以及 m_width.

◆ ~Image()

sensor_msgs::msg::Image::~Image ( )

Default destructor.

在文件 Image.cpp61 行定义.

◆ Image() [2/3]

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

Copy constructor.

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

在文件 Image.cpp65 行定义.

引用了 m_data, m_encoding, m_header, m_height, m_is_bigendian, m_step , 以及 m_width.

◆ Image() [3/3]

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

Move constructor.

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

在文件 Image.cpp77 行定义.

成员函数说明

◆ data() [1/4]

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

This function returns a reference to member data

返回
Reference to member data

在文件 Image.cpp402 行定义.

◆ data() [2/4]

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

This function returns a constant reference to member data

返回
Constant reference to member data

在文件 Image.cpp393 行定义.

◆ data() [3/4]

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

This function copies the value in member data

参数
_dataNew value to be copied in member data

在文件 Image.cpp373 行定义.

被这些函数引用 getCdrSerializedSize().

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

◆ data() [4/4]

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

This function moves the value in member data

参数
_dataNew value to be moved in member data

在文件 Image.cpp383 行定义.

◆ deserialize()

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

This function deserializes an object using CDR serialization.

参数
cdrCDR serialization object.

在文件 Image.cpp169 行定义.

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

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

◆ encoding() [1/4]

std::string & sensor_msgs::msg::Image::encoding ( )

This function returns a reference to member encoding

返回
Reference to member encoding

在文件 Image.cpp308 行定义.

◆ encoding() [2/4]

const std::string & sensor_msgs::msg::Image::encoding ( ) const

This function returns a constant reference to member encoding

返回
Constant reference to member encoding

在文件 Image.cpp299 行定义.

◆ encoding() [3/4]

void sensor_msgs::msg::Image::encoding ( const std::string & _encoding)

This function copies the value in member encoding

参数
_encodingNew value to be copied in member encoding

在文件 Image.cpp279 行定义.

被这些函数引用 getCdrSerializedSize().

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

◆ encoding() [4/4]

void sensor_msgs::msg::Image::encoding ( std::string && _encoding)

This function moves the value in member encoding

参数
_encodingNew value to be moved in member encoding

在文件 Image.cpp289 行定义.

◆ getCdrSerializedSize()

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

在文件 Image.cpp136 行定义.

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

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

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

◆ getKeyMaxCdrSerializedSize()

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

在文件 Image.cpp407 行定义.

引用了 sensor_msgs_msg_Image_max_key_cdr_typesize.

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

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

◆ getMaxCdrSerializedSize()

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

在文件 Image.cpp129 行定义.

引用了 sensor_msgs_msg_Image_max_cdr_typesize.

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

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

◆ header() [1/4]

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

This function returns a reference to member header

返回
Reference to member header

在文件 Image.cpp214 行定义.

◆ header() [2/4]

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

This function returns a constant reference to member header

返回
Constant reference to member header

在文件 Image.cpp205 行定义.

◆ header() [3/4]

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

This function copies the value in member header

参数
_headerNew value to be copied in member header

在文件 Image.cpp185 行定义.

被这些函数引用 getCdrSerializedSize().

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

◆ header() [4/4]

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

This function moves the value in member header

参数
_headerNew value to be moved in member header

在文件 Image.cpp195 行定义.

◆ height() [1/3]

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

This function returns a reference to member height

返回
Reference to member height

在文件 Image.cpp242 行定义.

◆ height() [2/3]

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

This function returns the value of member height

返回
Value of member height

在文件 Image.cpp233 行定义.

◆ height() [3/3]

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

This function sets a value in member height

参数
_heightNew value for member height

在文件 Image.cpp223 行定义.

◆ is_bigendian() [1/3]

uint8_t & sensor_msgs::msg::Image::is_bigendian ( )

This function returns a reference to member is_bigendian

返回
Reference to member is_bigendian

在文件 Image.cpp336 行定义.

◆ is_bigendian() [2/3]

uint8_t sensor_msgs::msg::Image::is_bigendian ( ) const

This function returns the value of member is_bigendian

返回
Value of member is_bigendian

在文件 Image.cpp327 行定义.

◆ is_bigendian() [3/3]

void sensor_msgs::msg::Image::is_bigendian ( uint8_t _is_bigendian)

This function sets a value in member is_bigendian

参数
_is_bigendianNew value for member is_bigendian

在文件 Image.cpp317 行定义.

◆ isKeyDefined()

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

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

在文件 Image.cpp414 行定义.

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

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

◆ operator!=()

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

Comparison operator.

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

在文件 Image.cpp123 行定义.

◆ operator=() [1/2]

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

Copy assignment.

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

在文件 Image.cpp89 行定义.

引用了 m_data, m_encoding, m_header, m_height, m_is_bigendian, m_step , 以及 m_width.

◆ operator=() [2/2]

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

Move assignment.

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

在文件 Image.cpp103 行定义.

◆ operator==()

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

Comparison operator.

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

在文件 Image.cpp117 行定义.

引用了 m_data, m_encoding, m_header, m_height, m_is_bigendian, m_step , 以及 m_width.

◆ serialize()

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

This function serializes an object using CDR serialization.

参数
cdrCDR serialization object.

在文件 Image.cpp157 行定义.

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

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

◆ serializeKey()

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

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

参数
cdrCDR serialization object.

在文件 Image.cpp419 行定义.

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

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

◆ step() [1/3]

uint32_t & sensor_msgs::msg::Image::step ( )

This function returns a reference to member step

返回
Reference to member step

在文件 Image.cpp364 行定义.

◆ step() [2/3]

uint32_t sensor_msgs::msg::Image::step ( ) const

This function returns the value of member step

返回
Value of member step

在文件 Image.cpp355 行定义.

◆ step() [3/3]

void sensor_msgs::msg::Image::step ( uint32_t _step)

This function sets a value in member step

参数
_stepNew value for member step

在文件 Image.cpp345 行定义.

◆ width() [1/3]

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

This function returns a reference to member width

返回
Reference to member width

在文件 Image.cpp270 行定义.

◆ width() [2/3]

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

This function returns the value of member width

返回
Value of member width

在文件 Image.cpp261 行定义.

◆ width() [3/3]

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

This function sets a value in member width

参数
_widthNew value for member width

在文件 Image.cpp251 行定义.

类成员变量说明

◆ m_data

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

在文件 ros2/types/Image.h342 行定义.

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

◆ m_encoding

std::string sensor_msgs::msg::Image::m_encoding
private

在文件 ros2/types/Image.h339 行定义.

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

◆ m_header

std_msgs::msg::Header sensor_msgs::msg::Image::m_header
private

在文件 ros2/types/Image.h336 行定义.

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

◆ m_height

uint32_t sensor_msgs::msg::Image::m_height
private

在文件 ros2/types/Image.h337 行定义.

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

◆ m_is_bigendian

uint8_t sensor_msgs::msg::Image::m_is_bigendian
private

在文件 ros2/types/Image.h340 行定义.

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

◆ m_step

uint32_t sensor_msgs::msg::Image::m_step
private

在文件 ros2/types/Image.h341 行定义.

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

◆ m_width

uint32_t sensor_msgs::msg::Image::m_width
private

在文件 ros2/types/Image.h338 行定义.

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


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