![]() |
RMVL
2.6.0-dev
Robotic Manipulation and Vision Library
|
#include <rmvlmsg/sensor/image.hpp>
Public 成员函数 | |
| std::string | serialize () const noexcept |
| 消息序列化 | |
| std::string | json () const noexcept |
| 将消息序列化为 JSON 字符串 | |
| std::size_t | compact_size () const noexcept |
| 获取消息紧凑序列化后的大小(单位:字节) | |
静态 Public 成员函数 | |
| static Image | deserialize (const char *const str) noexcept |
| 消息反序列化 | |
Public 属性 | |
| rm::msg::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 uint8_t | encoding_16uc1 = 12 |
| static constexpr uint8_t | encoding_32fc1 = 13 |
| static constexpr const char | msg_type [] = "sensor/Image" |
| 消息类型字符串常量 | |
Image 消息类型:sensor/Image
|
noexcept |
获取消息紧凑序列化后的大小(单位:字节)
|
staticnoexcept |
消息反序列化
| [in] | str | 待反序列化的字符串指针 |
|
noexcept |
将消息序列化为 JSON 字符串
|
noexcept |
消息序列化
| std::vector<uint8_t> rm::msg::Image::data {} |
| uint8_t rm::msg::Image::encoding {} |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
| rm::msg::Header rm::msg::Image::header {} |
| int32_t rm::msg::Image::height {} |
|
staticconstexpr |
消息类型字符串常量
| int32_t rm::msg::Image::width {} |