mirror of
https://github.com/dptech-corp/Uni-Lab-OS.git
synced 2025-12-17 13:01:12 +00:00
修复transfer_resource_to_another生成
This commit is contained in:
@@ -155,11 +155,11 @@ class BioyondWorkstation(WorkstationBase):
|
|||||||
"resources": [self.deck]
|
"resources": [self.deck]
|
||||||
})
|
})
|
||||||
|
|
||||||
def transfer_resource_to_another(self, resource_a: ResourceSlot, device_id: DeviceSlot, resource_b: ResourceSlot):
|
def transfer_resource_to_another(self, resource: ResourceSlot, mount_device_id: DeviceSlot, mount_resource: ResourceSlot):
|
||||||
ROS2DeviceNode.run_async_func(self._ros_node.transfer_resource_to_another, True, **{
|
ROS2DeviceNode.run_async_func(self._ros_node.transfer_resource_to_another, True, **{
|
||||||
"plr_resources": [resource_a],
|
"plr_resources": [resource],
|
||||||
"target_device_id": device_id,
|
"target_device_id": mount_device_id,
|
||||||
"target_resource_uuid": getattr(resource_b, "unilabos_uuid", None),
|
"target_resource_uuid": getattr(mount_resource, "unilabos_uuid", None),
|
||||||
})
|
})
|
||||||
|
|
||||||
def _configure_station_type(self, station_config: Optional[Dict[str, Any]] = None) -> None:
|
def _configure_station_type(self, station_config: Optional[Dict[str, Any]] = None) -> None:
|
||||||
|
|||||||
@@ -886,14 +886,14 @@ dispensing_station.bioyond:
|
|||||||
feedback: {}
|
feedback: {}
|
||||||
goal: {}
|
goal: {}
|
||||||
goal_default:
|
goal_default:
|
||||||
device_id: null
|
mount_device_id: null
|
||||||
resource_a: null
|
mount_resource: null
|
||||||
resource_b: null
|
resource: null
|
||||||
handles: {}
|
handles: {}
|
||||||
placeholder_keys:
|
placeholder_keys:
|
||||||
device_id: unilabos_devices
|
mount_device_id: unilabos_devices
|
||||||
resource_a: unilabos_resources
|
mount_resource: unilabos_resources
|
||||||
resource_b: unilabos_resources
|
resource: unilabos_resources
|
||||||
result: {}
|
result: {}
|
||||||
schema:
|
schema:
|
||||||
description: ''
|
description: ''
|
||||||
@@ -901,9 +901,9 @@ dispensing_station.bioyond:
|
|||||||
feedback: {}
|
feedback: {}
|
||||||
goal:
|
goal:
|
||||||
properties:
|
properties:
|
||||||
device_id:
|
mount_device_id:
|
||||||
type: object
|
type: object
|
||||||
resource_a:
|
mount_resource:
|
||||||
properties:
|
properties:
|
||||||
category:
|
category:
|
||||||
type: string
|
type: string
|
||||||
@@ -974,9 +974,9 @@ dispensing_station.bioyond:
|
|||||||
- pose
|
- pose
|
||||||
- config
|
- config
|
||||||
- data
|
- data
|
||||||
title: resource_a
|
title: mount_resource
|
||||||
type: object
|
type: object
|
||||||
resource_b:
|
resource:
|
||||||
properties:
|
properties:
|
||||||
category:
|
category:
|
||||||
type: string
|
type: string
|
||||||
@@ -1047,12 +1047,12 @@ dispensing_station.bioyond:
|
|||||||
- pose
|
- pose
|
||||||
- config
|
- config
|
||||||
- data
|
- data
|
||||||
title: resource_b
|
title: resource
|
||||||
type: object
|
type: object
|
||||||
required:
|
required:
|
||||||
- resource_a
|
- resource
|
||||||
- device_id
|
- mount_device_id
|
||||||
- resource_b
|
- mount_resource
|
||||||
type: object
|
type: object
|
||||||
result: {}
|
result: {}
|
||||||
required:
|
required:
|
||||||
|
|||||||
@@ -880,14 +880,14 @@ reaction_station.bioyond:
|
|||||||
feedback: {}
|
feedback: {}
|
||||||
goal: {}
|
goal: {}
|
||||||
goal_default:
|
goal_default:
|
||||||
device_id: null
|
mount_device_id: null
|
||||||
resource_a: null
|
mount_resource: null
|
||||||
resource_b: null
|
resource: null
|
||||||
handles: {}
|
handles: {}
|
||||||
placeholder_keys:
|
placeholder_keys:
|
||||||
device_id: unilabos_devices
|
mount_device_id: unilabos_devices
|
||||||
resource_a: unilabos_resources
|
mount_resource: unilabos_resources
|
||||||
resource_b: unilabos_resources
|
resource: unilabos_resources
|
||||||
result: {}
|
result: {}
|
||||||
schema:
|
schema:
|
||||||
description: ''
|
description: ''
|
||||||
@@ -895,9 +895,9 @@ reaction_station.bioyond:
|
|||||||
feedback: {}
|
feedback: {}
|
||||||
goal:
|
goal:
|
||||||
properties:
|
properties:
|
||||||
device_id:
|
mount_device_id:
|
||||||
type: object
|
type: object
|
||||||
resource_a:
|
mount_resource:
|
||||||
properties:
|
properties:
|
||||||
category:
|
category:
|
||||||
type: string
|
type: string
|
||||||
@@ -968,9 +968,9 @@ reaction_station.bioyond:
|
|||||||
- pose
|
- pose
|
||||||
- config
|
- config
|
||||||
- data
|
- data
|
||||||
title: resource_a
|
title: mount_resource
|
||||||
type: object
|
type: object
|
||||||
resource_b:
|
resource:
|
||||||
properties:
|
properties:
|
||||||
category:
|
category:
|
||||||
type: string
|
type: string
|
||||||
@@ -1041,12 +1041,12 @@ reaction_station.bioyond:
|
|||||||
- pose
|
- pose
|
||||||
- config
|
- config
|
||||||
- data
|
- data
|
||||||
title: resource_b
|
title: resource
|
||||||
type: object
|
type: object
|
||||||
required:
|
required:
|
||||||
- resource_a
|
- resource
|
||||||
- device_id
|
- mount_device_id
|
||||||
- resource_b
|
- mount_resource
|
||||||
type: object
|
type: object
|
||||||
result: {}
|
result: {}
|
||||||
required:
|
required:
|
||||||
|
|||||||
@@ -7131,14 +7131,14 @@ workstation.bioyond:
|
|||||||
feedback: {}
|
feedback: {}
|
||||||
goal: {}
|
goal: {}
|
||||||
goal_default:
|
goal_default:
|
||||||
device_id: null
|
mount_device_id: null
|
||||||
resource_a: null
|
mount_resource: null
|
||||||
resource_b: null
|
resource: null
|
||||||
handles: {}
|
handles: {}
|
||||||
placeholder_keys:
|
placeholder_keys:
|
||||||
device_id: unilabos_devices
|
mount_device_id: unilabos_devices
|
||||||
resource_a: unilabos_resources
|
mount_resource: unilabos_resources
|
||||||
resource_b: unilabos_resources
|
resource: unilabos_resources
|
||||||
result: {}
|
result: {}
|
||||||
schema:
|
schema:
|
||||||
description: ''
|
description: ''
|
||||||
@@ -7146,9 +7146,9 @@ workstation.bioyond:
|
|||||||
feedback: {}
|
feedback: {}
|
||||||
goal:
|
goal:
|
||||||
properties:
|
properties:
|
||||||
device_id:
|
mount_device_id:
|
||||||
type: object
|
type: object
|
||||||
resource_a:
|
mount_resource:
|
||||||
properties:
|
properties:
|
||||||
category:
|
category:
|
||||||
type: string
|
type: string
|
||||||
@@ -7219,9 +7219,9 @@ workstation.bioyond:
|
|||||||
- pose
|
- pose
|
||||||
- config
|
- config
|
||||||
- data
|
- data
|
||||||
title: resource_a
|
title: mount_resource
|
||||||
type: object
|
type: object
|
||||||
resource_b:
|
resource:
|
||||||
properties:
|
properties:
|
||||||
category:
|
category:
|
||||||
type: string
|
type: string
|
||||||
@@ -7292,12 +7292,12 @@ workstation.bioyond:
|
|||||||
- pose
|
- pose
|
||||||
- config
|
- config
|
||||||
- data
|
- data
|
||||||
title: resource_b
|
title: resource
|
||||||
type: object
|
type: object
|
||||||
required:
|
required:
|
||||||
- resource_a
|
- resource
|
||||||
- device_id
|
- mount_device_id
|
||||||
- resource_b
|
- mount_resource
|
||||||
type: object
|
type: object
|
||||||
result: {}
|
result: {}
|
||||||
required:
|
required:
|
||||||
|
|||||||
Reference in New Issue
Block a user