fix host_node test_resource error

This commit is contained in:
Xuwznln
2025-10-11 02:57:14 +08:00
parent 174b1914d4
commit 4b43734b55

View File

@@ -159,24 +159,20 @@ class Registry:
"feedback": {}, "feedback": {},
"goal": { "goal": {
"properties": { "properties": {
"resource": { "resource": ros_message_to_json_schema(Resource, "resource"),
"properties": ros_message_to_json_schema(Resource, "resource"),
"type": "object"
},
"resources": { "resources": {
"items": { "items": {
"properties": ros_message_to_json_schema(Resource, "resources"), "properties": ros_message_to_json_schema(Resource, "resources"),
"title": "mount_resource",
"type": "object" "type": "object"
}, },
"type": "array" "type": "array"
}, },
"device": { "device": {
"type": "object" "type": "string"
}, },
"devices": { "devices": {
"items": { "items": {
"type": "object" "type": "string"
}, },
"type": "array" "type": "array"
}, },
@@ -189,6 +185,12 @@ class Registry:
"title": "transfer_resource_to_another参数", "title": "transfer_resource_to_another参数",
"type": "object", "type": "object",
}, },
"placeholder_keys": {
"device": "unilabos_devices",
"devices": "unilabos_devices",
"resource": "unilabos_resources",
"resources": "unilabos_resources",
},
"goal_default": {}, "goal_default": {},
"handles": {}, "handles": {},
}, },