RMVL  2.1.0-dev
Robotic Manipulation and Vision Library
载入中...
搜索中...
未找到
rm::Method类 参考final

OPC UA 方法 更多...

#include <rmvl/opcua/method.hpp>

rm::Method 的协作图:

Public 成员函数

 Method ()=default
 
template<typename Callable , typename = std::enable_if_t<std::is_convertible_v<Callable, MethodCallback>>>
 Method (Callable cb)
 

Public 属性

uint16_t ns {1U}
 命名空间索引,默认为 1
 
std::string browse_name {}
 浏览名称 BrowseName
 
std::string display_name {}
 展示名称 DisplayName
 
std::string description {}
 方法的描述
 
std::vector< Argumentiargs {}
 传入参数列表
 
std::vector< Argumentoargs {}
 传出参数列表
 
MethodCallback func {}
 方法回调函数
 

详细描述

OPC UA 方法

示例
samples/opcua/opcua_server.cpp.

构造及析构函数说明

◆ Method() [1/2]

rm::Method::Method ( )
default

◆ Method() [2/2]

template<typename Callable , typename = std::enable_if_t<std::is_convertible_v<Callable, MethodCallback>>>
rm::Method::Method ( Callable cb)
inline

类成员变量说明

◆ browse_name

std::string rm::Method::browse_name {}

浏览名称 BrowseName

  • 属于非服务器层面的 ID 号,可用于完成路径搜索
  • 同一个命名空间 ns 下该名称不能重复
示例
samples/opcua/opcua_server.cpp.

◆ description

std::string rm::Method::description {}

方法的描述

◆ display_name

std::string rm::Method::display_name {}

展示名称 DisplayName

  • 在服务器上对外展示的名字 - en-US
  • 同一个命名空间 ns 下该名称可以相同
示例
samples/opcua/opcua_server.cpp.

◆ func

MethodCallback rm::Method::func {}

方法回调函数

◆ iargs

std::vector<Argument> rm::Method::iargs {}

传入参数列表

示例
samples/opcua/opcua_server.cpp.

◆ ns

uint16_t rm::Method::ns {1U}

命名空间索引,默认为 1

◆ oargs

std::vector<Argument> rm::Method::oargs {}

传出参数列表

示例
samples/opcua/opcua_server.cpp.

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