| RMVL 2.4.0 Robotic Manipulation and Vision Library

载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | Public 属性 | 静态 Public 属性 | 所有成员列表
rm::msg::Image类 参考
消息模块

Image 消息类型：sensor/Image 更多...

`#include <rmvlmsg/sensor/image.hpp>`

rm::msg::Image 的协作图:

## Public 成员函数
std::string | serialize () const noexcept
| 消息序列化
std::size_t | compact_size () const noexcept
| 获取消息紧凑序列化后的大小（单位：字节）

## 静态 Public 成员函数
static Image | deserialize (const char *const str) noexcept
| 消息反序列化

## Public 属性
Header | header {}
int32_t | height {}
int32_t | width {}
uint8_t | encoding {}
std::vector< uint8_t > | data {}

## 静态 Public 属性
static constexpr uint8_t | encoding_rgb8 = 0
static constexpr uint8_t | encoding_bgr8 = 1
static constexpr uint8_t | encoding_mono8 = 2
static constexpr uint8_t | encoding_mono16 = 3
static constexpr uint8_t | encoding_rgba8 = 4
static constexpr uint8_t | encoding_bgra8 = 5
static constexpr uint8_t | encoding_bayer_rggb8 = 6
static constexpr uint8_t | encoding_bayer_bggr8 = 7
static constexpr uint8_t | encoding_bayer_rggb16 = 8
static constexpr uint8_t | encoding_bayer_bggbr16 = 9
static constexpr uint8_t | encoding_yuv422 = 10
static constexpr uint8_t | encoding_yuv420 = 11
static constexpr const char | msg_type [] = "sensor/Image"
| 消息类型字符串常量

## 详细描述

Image 消息类型：sensor/Image

参见
  - 详细描述请参考 消息模块使用教程 的 自动代码生成 章节；
  - LPSS 使用教程请参考 轻量发布订阅服务 —— LPSS 。

## 成员函数说明

## ◆ compact_size()

std::size_t rm::msg::Image::compact_size | ( |  | ) | const
| noexcept

获取消息紧凑序列化后的大小（单位：字节）

函数调用图:

## ◆ deserialize()

Image rm::msg::Image::deserialize | ( | const char *const | str | ) |
| static noexcept

消息反序列化

参数

  [in] | str | 待反序列化的字符串指针

返回
  反序列化得到的消息对象

函数调用图:

## ◆ serialize()

std::string rm::msg::Image::serialize | ( |  | ) | const
| noexcept

消息序列化

返回
  序列化后的字符串

## 类成员变量说明

## ◆ data

std::vector<uint8_t> rm::msg::Image::data {}

## ◆ encoding

uint8_t rm::msg::Image::encoding {}

## ◆ encoding_bayer_bggbr16

uint8_t rm::msg::Image::encoding_bayer_bggbr16 = 9
| static constexpr

## ◆ encoding_bayer_bggr8

uint8_t rm::msg::Image::encoding_bayer_bggr8 = 7
| static constexpr

## ◆ encoding_bayer_rggb16

uint8_t rm::msg::Image::encoding_bayer_rggb16 = 8
| static constexpr

## ◆ encoding_bayer_rggb8

uint8_t rm::msg::Image::encoding_bayer_rggb8 = 6
| static constexpr

## ◆ encoding_bgr8

uint8_t rm::msg::Image::encoding_bgr8 = 1
| static constexpr

## ◆ encoding_bgra8

uint8_t rm::msg::Image::encoding_bgra8 = 5
| static constexpr

## ◆ encoding_mono16

uint8_t rm::msg::Image::encoding_mono16 = 3
| static constexpr

## ◆ encoding_mono8

uint8_t rm::msg::Image::encoding_mono8 = 2
| static constexpr

## ◆ encoding_rgb8

uint8_t rm::msg::Image::encoding_rgb8 = 0
| static constexpr

## ◆ encoding_rgba8

uint8_t rm::msg::Image::encoding_rgba8 = 4
| static constexpr

## ◆ encoding_yuv420

uint8_t rm::msg::Image::encoding_yuv420 = 11
| static constexpr

## ◆ encoding_yuv422

uint8_t rm::msg::Image::encoding_yuv422 = 10
| static constexpr

## ◆ header

Header rm::msg::Image::header {}

## ◆ height

int32_t rm::msg::Image::height {}

## ◆ msg_type

const char rm::msg::Image::msg_type[] = "sensor/Image"
| static constexpr

消息类型字符串常量

## ◆ width

int32_t rm::msg::Image::width {}