Files
Uni-Lab-OS/.cursor/skills/virtual-workbench/action-index.md
2026-04-13 17:02:38 +08:00

2.6 KiB
Raw Blame History

Action Index — virtual_workbench

6 个动作,按功能分类。每个动作的完整 JSON Schema 在 actions/<name>.json


物料准备

auto-prepare_materials

批量准备物料(虚拟起始节点),生成 A1-A5 物料编号,输出 5 个 handle 供后续节点使用


机械臂 & 加热台操作

auto-move_to_heating_station

将物料从 An 位置移动到空闲加热台(竞争机械臂,自动查找空闲加热台)

auto-start_heating

启动指定加热台的加热程序可并行3 个加热台同时工作)

  • action_type: UniLabJsonCommand
  • Schema: actions/start_heating.json
  • 核心参数: station_id(加热台 IDmaterial_number(物料编号)

auto-move_to_output

将加热完成的物料从加热台移动到输出位置 Cn

  • action_type: UniLabJsonCommand
  • Schema: actions/move_to_output.json
  • 核心参数: station_id(加热台 IDmaterial_number(物料编号)

物料转移

transfer

异步转移物料到目标设备(通过 ROS 资源转移)

  • action_type: UniLabJsonCommandAsync
  • Schema: actions/transfer.json
  • 核心参数: resource, target_device, mount_resource
  • 占位符字段:
    • resourceResourceSlot,待转移的物料数组 [{id, name, uuid}, ...]
    • target_deviceDeviceSlot,目标设备路径字符串
    • mount_resourceResourceSlot,目标孔位数组 [{id, name, uuid}, ...]

人工确认

manual_confirm

创建人工确认节点,等待用户手动确认后继续(含物料转移上下文)

  • action_type: UniLabJsonCommand
  • Schema: actions/manual_confirm.json
  • 核心参数: resource, target_device, mount_resource, timeout_seconds, assignee_user_ids
  • 占位符字段:
    • resourceResourceSlot,物料数组
    • target_deviceDeviceSlot,目标设备路径
    • mount_resourceResourceSlot,目标孔位数组
    • assignee_user_idsunilabos_manual_confirm 类型