AuboStudio SDK 0.6.3

Public 成员函数 | Private 成员函数 | Private 属性 | 友元 | 所有成员列表
arcs::aubo_scope::ProgramNodeFactory类 参考

`#include <program_node_factory.h>`

## Public 成员函数
| ProgramNodeFactory (ProgramNodeFactory &f)
| ProgramNodeFactory (ProgramNodeFactory &&f)
virtual | ~ProgramNodeFactory ()
ProgramNodePtr | createUserProgramNode (const char *typeid_service)
| This method creates a AuboCap program node which is an instance of a contribution/ProgramNodeContribution. 更多...
MoveNodePtr | createMoveNode ()
| Creates a default Move node with one default Waypoint node under it. 更多...
MoveNodePtr | createMoveNodeNoTemplate ()
WaypointNodePtr | createWaypointNode ()
| Creates a Waypoint node with default waypoint name (corresponds to the name generated if the end user added a new node manually). 更多...
WaypointNodePtr | createWaypointNode (const std::string &suggested_name)
UntilNodePtr | createUntilNode ()
| Creates an Until Node with no until type specified. 更多...
DirectionNodePtr | createDirectionNode ()
WaitNodePtr | createWaitNode ()
SetNodePtr | createSetNode ()
SetPayloadNodePtr | createSetPayloadNode ()
PopupNodePtr | createPopupNode ()
HaltNodePtr | createHaltNode ()
CommentNodePtr | createCommentNode ()
FolderNodePtr | createFolderNode ()
LoopNodePtr | createLoopNode ()
AssignmentNodePtr | createAssignmentNode ()
IfNodePtr | createIfNode ()
ElseIfNodePtr | createElseIfNode ()
ElseNodePtr | createElseNode ()
CircleMoveNodePtr | createCircleMoveNode ()
PalletNodePtr | createPalletNode ()
SeekNodePtr | createSeekNode ()
ForceNodePtr | createForceNode ()
AssemblyNodePtr | createAssemblyNode ()
ScrewdrivingNodePtr | createScrewdrivingNode ()
ScriptNodePtr | createScriptNode ()
TimerNodePtr | createTimerNode ()
SwitchNodePtr | createSwitchNode ()
CaseNodePtr | createCaseNode ()
DefaultCaseNodePtr | createDefaultCaseNode ()
BreakNodePtr | createBreakNode ()
SubProgNodePtr | createSubProgNode ()
CallNodePtr | createCallNode ()
OfflineTrackNodePtr | createOfflineTrackNode ()
RecordTrackNodePtr | createRecordTrackNode ()
ThreadNodePtr | createThreadNode ()
ProgramHomeNodePtr | createProgramHomeNode ()
VisualLocalizationProgramNodePtr | createVisualLocalizationProgramNode ()
ConveyorTrackingNodePtr | createConveyorTrackingNode ()
GripperNodePtr | createGripperNode (GripperDevicePtr gripperDevice)

## Private 成员函数
| ProgramNodeFactory ()

## Private 属性
void * | d_ { nullptr }

## 友元
class | DataSwitch

## 详细描述

This interfaces supplies methods to create different types of program nodes.

Both built-in program nodes (provided by Universal Robots) and AuboCap program nodes can be created. Most methods will create a node with the same default configuration as if the end user added the node manually.

Note that this default configuration may change between AuboScope versions.

在文件 program_node_factory.h 第 62 行定义.

## 构造及析构函数说明

## ◆ ProgramNodeFactory() [1/3]

arcs::aubo_scope::ProgramNodeFactory::ProgramNodeFactory | ( | ProgramNodeFactory & | f | ) |

## ◆ ProgramNodeFactory() [2/3]

arcs::aubo_scope::ProgramNodeFactory::ProgramNodeFactory | ( | ProgramNodeFactory && | f | ) |

## ◆ ~ProgramNodeFactory()

virtual arcs::aubo_scope::ProgramNodeFactory::~ProgramNodeFactory | ( |  | ) |
| virtual

## ◆ ProgramNodeFactory() [3/3]

arcs::aubo_scope::ProgramNodeFactory::ProgramNodeFactory | ( |  | ) |
| private

## 成员函数说明

## ◆ createAssemblyNode()

AssemblyNodePtr arcs::aubo_scope::ProgramNodeFactory::createAssemblyNode | ( |  | ) |

## ◆ createAssignmentNode()

AssignmentNodePtr arcs::aubo_scope::ProgramNodeFactory::createAssignmentNode | ( |  | ) |

## ◆ createBreakNode()

BreakNodePtr arcs::aubo_scope::ProgramNodeFactory::createBreakNode | ( |  | ) |

## ◆ createCallNode()

CallNodePtr arcs::aubo_scope::ProgramNodeFactory::createCallNode | ( |  | ) |

## ◆ createCaseNode()

CaseNodePtr arcs::aubo_scope::ProgramNodeFactory::createCaseNode | ( |  | ) |

## ◆ createCircleMoveNode()

CircleMoveNodePtr arcs::aubo_scope::ProgramNodeFactory::createCircleMoveNode | ( |  | ) |

## ◆ createCommentNode()

CommentNodePtr arcs::aubo_scope::ProgramNodeFactory::createCommentNode | ( |  | ) |

## ◆ createConveyorTrackingNode()

ConveyorTrackingNodePtr arcs::aubo_scope::ProgramNodeFactory::createConveyorTrackingNode | ( |  | ) |

## ◆ createDefaultCaseNode()

DefaultCaseNodePtr arcs::aubo_scope::ProgramNodeFactory::createDefaultCaseNode | ( |  | ) |

## ◆ createDirectionNode()

DirectionNodePtr arcs::aubo_scope::ProgramNodeFactory::createDirectionNode | ( |  | ) |

## ◆ createElseIfNode()

ElseIfNodePtr arcs::aubo_scope::ProgramNodeFactory::createElseIfNode | ( |  | ) |

## ◆ createElseNode()

ElseNodePtr arcs::aubo_scope::ProgramNodeFactory::createElseNode | ( |  | ) |

## ◆ createFolderNode()

FolderNodePtr arcs::aubo_scope::ProgramNodeFactory::createFolderNode | ( |  | ) |

## ◆ createForceNode()

ForceNodePtr arcs::aubo_scope::ProgramNodeFactory::createForceNode | ( |  | ) |

## ◆ createGripperNode()

GripperNodePtr arcs::aubo_scope::ProgramNodeFactory::createGripperNode | ( | GripperDevicePtr | gripperDevice | ) |

This method creates a new Gripper program node. This node type can be used for programming grip and release actions with a selected gripper device.

The program node will be created with the same default configuration as if the end user added the node manually in AuboScope, i.e. an undefined configuration where the gripper action is unselected.

参数

  gripperDevice | the gripper device to create a Gripper node for, not `null`. The created Gripper node will program gripper actions for this device.

返回
  a new Gripper program node (which can be inserted into the program tree using the TreeNode interface).

异常

  UnresolvedDeviceException | when the specified `gripperDevice` device is unresolved. See GripperDevice#isResolvable().

## ◆ createHaltNode()

HaltNodePtr arcs::aubo_scope::ProgramNodeFactory::createHaltNode | ( |  | ) |

## ◆ createIfNode()

IfNodePtr arcs::aubo_scope::ProgramNodeFactory::createIfNode | ( |  | ) |

## ◆ createLoopNode()

LoopNodePtr arcs::aubo_scope::ProgramNodeFactory::createLoopNode | ( |  | ) |

## ◆ createMoveNode()

MoveNodePtr arcs::aubo_scope::ProgramNodeFactory::createMoveNode | ( |  | ) |

Creates a default Move node with one default Waypoint node under it.

返回
  new Move Node.

## ◆ createMoveNodeNoTemplate()

MoveNodePtr arcs::aubo_scope::ProgramNodeFactory::createMoveNodeNoTemplate | ( |  | ) |

Creates a default Move node without a Waypoint node under it (e.g. to be used for inserting named waypoints).

Note that at least one Waypoint node must be under it for a Move node to be valid.

返回
  new Move Node.

## ◆ createOfflineTrackNode()

OfflineTrackNodePtr arcs::aubo_scope::ProgramNodeFactory::createOfflineTrackNode | ( |  | ) |

## ◆ createPalletNode()

PalletNodePtr arcs::aubo_scope::ProgramNodeFactory::createPalletNode | ( |  | ) |

## ◆ createPopupNode()

PopupNodePtr arcs::aubo_scope::ProgramNodeFactory::createPopupNode | ( |  | ) |

## ◆ createProgramHomeNode()

ProgramHomeNodePtr arcs::aubo_scope::ProgramNodeFactory::createProgramHomeNode | ( |  | ) |

## ◆ createRecordTrackNode()

RecordTrackNodePtr arcs::aubo_scope::ProgramNodeFactory::createRecordTrackNode | ( |  | ) |

## ◆ createScrewdrivingNode()

ScrewdrivingNodePtr arcs::aubo_scope::ProgramNodeFactory::createScrewdrivingNode | ( |  | ) |

## ◆ createScriptNode()

ScriptNodePtr arcs::aubo_scope::ProgramNodeFactory::createScriptNode | ( |  | ) |

## ◆ createSeekNode()

SeekNodePtr arcs::aubo_scope::ProgramNodeFactory::createSeekNode | ( |  | ) |

## ◆ createSetNode()

SetNodePtr arcs::aubo_scope::ProgramNodeFactory::createSetNode | ( |  | ) |

## ◆ createSetPayloadNode()

SetPayloadNodePtr arcs::aubo_scope::ProgramNodeFactory::createSetPayloadNode | ( |  | ) |

## ◆ createSubProgNode()

SubProgNodePtr arcs::aubo_scope::ProgramNodeFactory::createSubProgNode | ( |  | ) |

## ◆ createSwitchNode()

SwitchNodePtr arcs::aubo_scope::ProgramNodeFactory::createSwitchNode | ( |  | ) |

## ◆ createThreadNode()

ThreadNodePtr arcs::aubo_scope::ProgramNodeFactory::createThreadNode | ( |  | ) |

## ◆ createTimerNode()

TimerNodePtr arcs::aubo_scope::ProgramNodeFactory::createTimerNode | ( |  | ) |

## ◆ createUntilNode()

UntilNodePtr arcs::aubo_scope::ProgramNodeFactory::createUntilNode | ( |  | ) |

Creates an Until Node with no until type specified.

返回
  a new Until Node.

## ◆ createUserProgramNode()

ProgramNodePtr arcs::aubo_scope::ProgramNodeFactory::createUserProgramNode | ( | const char * | typeid_service | ) |

This method creates a AuboCap program node which is an instance of a contribution/ProgramNodeContribution.

参数

  typeid_service | is the service creating the program node contribution/

返回
  the ProgramNode which represents the {} created by { ProgramNodeService}. Returns `null` if AuboCap providing ProgramNodeService is not installed. IllegalArgumentException if the argument ProgramNodeService is `null`or ProgramNodeService does not implement { ProgramNodeService}.

## ◆ createVisualLocalizationProgramNode()

VisualLocalizationProgramNodePtr arcs::aubo_scope::ProgramNodeFactory::createVisualLocalizationProgramNode | ( |  | ) |

## ◆ createWaitNode()

WaitNodePtr arcs::aubo_scope::ProgramNodeFactory::createWaitNode | ( |  | ) |

## ◆ createWaypointNode() [1/2]

WaypointNodePtr arcs::aubo_scope::ProgramNodeFactory::createWaypointNode | ( |  | ) |

Creates a Waypoint node with default waypoint name (corresponds to the name generated if the end user added a new node manually).

返回
  new Waypoint Node.

## ◆ createWaypointNode() [2/2]

WaypointNodePtr arcs::aubo_scope::ProgramNodeFactory::createWaypointNode | ( | const std::string & | suggested_name | ) |

Creates a Waypoint node with a suggested name.

The final name can be different if the suggested name is already registered. The waypoint name is registered when it is inserted into the program tree.

Variable waypoints will use the name of the variable instead of the suggested name.

参数

  suggested_name | the suggested name of the waypoint. Valid names must match regex [a-zA-Z][a-zA-Z0-9_]{0,14} for a total of 15 characters.

返回
  new Waypoint Node.

异常

  IllegalWaypointNameException | In case of an illegal name.

## 友元及相关函数文档

## ◆ DataSwitch

friend class DataSwitch
| friend

在文件 program_node_factory.h 第 199 行定义.

## 类成员变量说明

## ◆ d_

void* arcs::aubo_scope::ProgramNodeFactory::d_ { nullptr }
| private

在文件 program_node_factory.h 第 201 行定义.

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

- include/aubo_caps/domain/program/nodes/program_node_factory.h