Skip to content

Commit d795558

Browse files
committed
feat(config): Convert pick_and_place work order to YAML
1 parent e06b687 commit d795558

File tree

7 files changed

+32
-65
lines changed

7 files changed

+32
-65
lines changed

nexus_demos/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ ros2 launch nexus_demos workcell.launch.py workcell_id:=workcell_2 ros_domain_id
5454
5555
`place_on_conveyor` work order:
5656
```bash
57-
ros2 action send_goal /system_orchestrator/execute_order nexus_orchestrator_msgs/action/ExecuteWorkOrder "{order: {work_order_id: '23', work_order: '$(cat config/place_on_conveyor.json)'}}"
57+
ros2 action send_goal /system_orchestrator/execute_order nexus_orchestrator_msgs/action/ExecuteWorkOrder "{order: {work_order_id: '23', work_order: '$(cat config/place_on_conveyor.yaml)'}}"
5858
```
5959

6060
`pick_from_conveyor` work order:
6161
```bash
62-
ros2 action send_goal /system_orchestrator/execute_order nexus_orchestrator_msgs/action/ExecuteWorkOrder "{order: {work_order_id: '24', work_order: '$(cat config/pick_from_conveyor.json)'}}"
62+
ros2 action send_goal /system_orchestrator/execute_order nexus_orchestrator_msgs/action/ExecuteWorkOrder "{order: {work_order_id: '24', work_order: '$(cat config/pick_from_conveyor.yaml)'}}"
6363
```
6464

6565
## Debugging

nexus_demos/config/pick_and_place.json

Lines changed: 0 additions & 29 deletions
This file was deleted.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
workInstructionName: "Pick and Place"
2+
steps:
3+
- processId: "place_on_conveyor"
4+
outputItems:
5+
- guid: "productA"
6+
metadata:
7+
quantity: 1
8+
state: "state_1"
9+
- processId: "pick_from_conveyor"
10+
inputItems:
11+
- guid: "productA"
12+
metadata:
13+
quantity: 1
14+
state: "state_1"

nexus_demos/config/pick_from_conveyor.json

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
workInstructionName: "Pick from conveyor"
2+
steps:
3+
- processId: "pick_from_conveyor"
4+
inputItems:
5+
- guid: "productA"
6+
metadata:
7+
quantity: 1
8+
state: "state_1"

nexus_demos/config/place_on_conveyor.json

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
workInstructionName: "Place on conveyor"
2+
steps:
3+
- processId: "place_on_conveyor"
4+
outputItems:
5+
- guid: "productA"
6+
metadata:
7+
quantity: 1
8+
state: "state_1"

0 commit comments

Comments
 (0)