RMVL  2.5.0-dev
Robotic Manipulation and Vision Library
载入中...
搜索中...
未找到
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< Pointpoints {}
std::vector< ColorRGBAcolors {}

静态 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

参见

成员函数说明

◆ compact_size()

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

获取消息紧凑序列化后的大小(单位:字节)

函数调用图:

◆ deserialize()

Marker rm::msg::Marker::deserialize ( const char *const str)
staticnoexcept

消息反序列化

参数
[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
staticconstexpr

◆ ACTION_DELETE

uint8_t rm::msg::Marker::ACTION_DELETE = 1
staticconstexpr

◆ ACTION_DELETEALL

uint8_t rm::msg::Marker::ACTION_DELETEALL = 2
staticconstexpr

◆ 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"
staticconstexpr

消息类型字符串常量

◆ 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
staticconstexpr

◆ TYPE_CUBE

uint8_t rm::msg::Marker::TYPE_CUBE = 1
staticconstexpr

◆ TYPE_CUBE_LIST

uint8_t rm::msg::Marker::TYPE_CUBE_LIST = 6
staticconstexpr

◆ TYPE_CYLINDER

uint8_t rm::msg::Marker::TYPE_CYLINDER = 3
staticconstexpr

◆ TYPE_LINE_LIST

uint8_t rm::msg::Marker::TYPE_LINE_LIST = 5
staticconstexpr

◆ TYPE_LINE_STRIP

uint8_t rm::msg::Marker::TYPE_LINE_STRIP = 4
staticconstexpr

◆ TYPE_POINTS

uint8_t rm::msg::Marker::TYPE_POINTS = 8
staticconstexpr

◆ TYPE_SPHERE

uint8_t rm::msg::Marker::TYPE_SPHERE = 2
staticconstexpr

◆ TYPE_SPHERE_LIST

uint8_t rm::msg::Marker::TYPE_SPHERE_LIST = 7
staticconstexpr