AuboStudio SDK  0.6.3
arcs::aubo_scope::VariableFactory类 参考

#include <variable_factory.h>

Public 成员函数

 VariableFactory (VariableFactory &f)
 VariableFactory (VariableFactory &&f)
 ~VariableFactory ()
GlobalVariablePtr createGlobalVariable (const std::string &suggested_name)
 \chinese
GlobalVariablePtr createGlobalVariable (const std::string &suggested_name, ExpressionPtr initialValue)
 \chinese
FeatureVariablePtr createFeatureVariable (const std::string &suggested_name, const std::vector< double > &pose)
 \chinese

Private 成员函数

 VariableFactory ()

Private 属性

void * d_ { nullptr }

友元

class DataSwitch

详细描述

This interface supplies methods to create variable objects.

NOTE: Only use this functionality in a AuboCap program node (not relevant for an installation node).

在文件 variable_factory.h21 行定义.

构造及析构函数说明

◆ VariableFactory() [1/3]

arcs::aubo_scope::VariableFactory::VariableFactory ( VariableFactory & f)

引用了 VariableFactory().

被这些函数引用 VariableFactory() , 以及 VariableFactory().

函数调用图:
这是这个函数的调用关系图:

◆ VariableFactory() [2/3]

arcs::aubo_scope::VariableFactory::VariableFactory ( VariableFactory && f)

引用了 VariableFactory().

函数调用图:

◆ ~VariableFactory()

arcs::aubo_scope::VariableFactory::~VariableFactory ( )

◆ VariableFactory() [3/3]

arcs::aubo_scope::VariableFactory::VariableFactory ( )
private

成员函数说明

◆ createFeatureVariable()

FeatureVariablePtr arcs::aubo_scope::VariableFactory::createFeatureVariable ( const std::string & suggested_name,
const std::vector< double > & pose )

\chinese

创建特征变量。

参数
suggested_name建议的变量名称。
pose特征的位姿。
返回
FeatureVariable。
异常
VariableException名称非法时抛出。 \endchinese \english

Creates a feature variable.

参数
suggested_nameSuggested name of the variable.
posethe pose of the feature.
返回
FeatureVariable.
异常
VariableExceptionIn case of an illegal name. \endenglish

◆ createGlobalVariable() [1/2]

GlobalVariablePtr arcs::aubo_scope::VariableFactory::createGlobalVariable ( const std::string & suggested_name)

\chinese

创建全局变量。在AuboScope中注册后将对所有程序节点可见。

参数
suggested_name建议的变量名称。
返回
GlobalVariable。
异常
VariableException名称非法时抛出。 \endchinese \english

Creates a global variable. Registering the variable in AuboScope (by storing it in a DataModel instance or using it for the configuration of a built-in AuboScope program node) will make it accessible to all program nodes.

参数
suggested_nameSuggested name of the variable.
返回
GlobalVariable.
异常
VariableExceptionIn case of an illegal name. \endenglish

◆ createGlobalVariable() [2/2]

GlobalVariablePtr arcs::aubo_scope::VariableFactory::createGlobalVariable ( const std::string & suggested_name,
ExpressionPtr initialValue )

\chinese

创建带初始值的全局变量。

参数
suggested_name建议的变量名称。
initialValue初始化表达式。
返回
GlobalVariable。 \endchinese \english

Creates a global variable with an initial value.

参数
suggested_nameSuggested name of the variable.
initialValueThe expression that will be evaluated in order to initialize the value of the variable.
返回
GlobalVariable.
异常
VariableExceptionIn case of an illegal name. \endenglish

◆ DataSwitch

friend class DataSwitch
friend

在文件 variable_factory.h98 行定义.

引用了 DataSwitch.

被这些函数引用 DataSwitch.

类成员变量说明

◆ d_

void* arcs::aubo_scope::VariableFactory::d_ { nullptr }
private

在文件 variable_factory.h100 行定义.


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