From f10c0343cee2c1b665c1165777bcf1f8d5ca4cee Mon Sep 17 00:00:00 2001 From: Xuwznln <18435084+Xuwznln@users.noreply.github.com> Date: Wed, 25 Mar 2026 11:56:40 +0800 Subject: [PATCH] add placeholder keys --- unilabos/ros/nodes/presets/host_node.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/unilabos/ros/nodes/presets/host_node.py b/unilabos/ros/nodes/presets/host_node.py index 7db3d972..5c68152f 100644 --- a/unilabos/ros/nodes/presets/host_node.py +++ b/unilabos/ros/nodes/presets/host_node.py @@ -1621,8 +1621,16 @@ class HostNode(BaseROS2DeviceNode): } return res - @action(always_free=True, node_type=NodeType.MANUAL_CONFIRM) - def manual_confirm(self, **kwargs) -> dict: + @action(always_free=True, node_type=NodeType.MANUAL_CONFIRM, placeholder_keys={ + "assignee_user_ids": "unilabos_manual_confirm" + }, goal_default={ + "timeout_seconds": 3600, + "assignee_user_ids": [] + }) + def manual_confirm(self, timeout_seconds: int, assignee_user_ids: list[str], **kwargs) -> dict: + """ + timeout_seconds: 超时时间(秒),默认3600秒 + """ return kwargs def test_resource(