| RMVL 2.4.0 Robotic Manipulation and Vision Library

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

Marker 消息类型：viz/Marker 更多...

`#include <rmvlmsg/viz/marker.hpp>`

rm::msg::Marker 的协作图:

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

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

## Public 属性
Header | header {}
std::string | ns {}
int32_t | id {}
uint8_t | type {}
uint8_t | action {}
Pose | pose {}
Vector3 | scale {}
ColorRGBA | color {}
std::vector< Point > | points {}
std::vector< ColorRGBA > | colors {}

## 静态 Public 属性
static constexpr uint8_t | TYPE_ARROW = 0
static constexpr uint8_t | TYPE_CUBE = 1
static constexpr uint8_t | TYPE_SPHERE = 2
static constexpr uint8_t | TYPE_CYLINDER = 3
static constexpr uint8_t | TYPE_LINE_STRIP = 4
static constexpr uint8_t | TYPE_LINE_LIST = 5
static constexpr uint8_t | TYPE_CUBE_LIST = 6
static constexpr uint8_t | TYPE_SPHERE_LIST = 7
static constexpr uint8_t | TYPE_POINTS = 8
static constexpr uint8_t | ACTION_ADD = 0
static constexpr uint8_t | ACTION_DELETE = 1
static constexpr uint8_t | ACTION_DELETEALL = 2
static constexpr const char | msg_type [] = "viz/Marker"
| 消息类型字符串常量

## 详细描述

Marker 消息类型：viz/Marker

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

## 成员函数说明

## ◆ compact_size()

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

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

函数调用图:

## ◆ deserialize()

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

消息反序列化

参数

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

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

函数调用图:

## ◆ serialize()

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

消息序列化

返回
  序列化后的字符串

## 类成员变量说明

## ◆ action

uint8_t rm::msg::Marker::action {}

## ◆ ACTION_ADD

uint8_t rm::msg::Marker::ACTION_ADD = 0
| static constexpr

## ◆ ACTION_DELETE

uint8_t rm::msg::Marker::ACTION_DELETE = 1
| static constexpr

## ◆ ACTION_DELETEALL

uint8_t rm::msg::Marker::ACTION_DELETEALL = 2
| static constexpr

## ◆ color

ColorRGBA rm::msg::Marker::color {}

## ◆ colors

std::vector<ColorRGBA> rm::msg::Marker::colors {}

## ◆ header

Header rm::msg::Marker::header {}

## ◆ id

int32_t rm::msg::Marker::id {}

## ◆ msg_type

const char rm::msg::Marker::msg_type[] = "viz/Marker"
| static constexpr

消息类型字符串常量

## ◆ ns

std::string rm::msg::Marker::ns {}

## ◆ points

std::vector<Point> rm::msg::Marker::points {}

## ◆ pose

Pose rm::msg::Marker::pose {}

## ◆ scale

Vector3 rm::msg::Marker::scale {}

## ◆ type

uint8_t rm::msg::Marker::type {}

## ◆ TYPE_ARROW

uint8_t rm::msg::Marker::TYPE_ARROW = 0
| static constexpr

## ◆ TYPE_CUBE

uint8_t rm::msg::Marker::TYPE_CUBE = 1
| static constexpr

## ◆ TYPE_CUBE_LIST

uint8_t rm::msg::Marker::TYPE_CUBE_LIST = 6
| static constexpr

## ◆ TYPE_CYLINDER

uint8_t rm::msg::Marker::TYPE_CYLINDER = 3
| static constexpr

## ◆ TYPE_LINE_LIST

uint8_t rm::msg::Marker::TYPE_LINE_LIST = 5
| static constexpr

## ◆ TYPE_LINE_STRIP

uint8_t rm::msg::Marker::TYPE_LINE_STRIP = 4
| static constexpr

## ◆ TYPE_POINTS

uint8_t rm::msg::Marker::TYPE_POINTS = 8
| static constexpr

## ◆ TYPE_SPHERE

uint8_t rm::msg::Marker::TYPE_SPHERE = 2
| static constexpr

## ◆ TYPE_SPHERE_LIST

uint8_t rm::msg::Marker::TYPE_SPHERE_LIST = 7
| static constexpr