Browse Source

cl2 基于设备状态和任务状态分步生成设备任务消息

master
yuliang 6 months ago
parent
commit
016a91075a
  1. 24
      tw_test/floor/f1.json
  2. 133
      tw_test/project.json
  3. 6
      tw_test/scripts/run1.ts

24
tw_test/floor/f1.json

@ -143,8 +143,8 @@
"id": "6_4", "id": "6_4",
"t": "way", "t": "way",
"v": true, "v": true,
"logicX": 1, "logicX": 6,
"logicY": 2, "logicY": 4,
"tf": [ "tf": [
[ [
1, 1,
@ -192,8 +192,8 @@
"id": "7_4", "id": "7_4",
"t": "way", "t": "way",
"v": true, "v": true,
"logicX": 2, "logicX": 7,
"logicY": 2, "logicY": 4,
"tf": [ "tf": [
[ [
2.1, 2.1,
@ -243,8 +243,8 @@
"id": "8_4", "id": "8_4",
"t": "way", "t": "way",
"v": true, "v": true,
"logicX": 3, "logicX": 8,
"logicY": 2, "logicY": 4,
"tf": [ "tf": [
[ [
3.39, 3.39,
@ -294,8 +294,8 @@
"id": "9_4", "id": "9_4",
"t": "way", "t": "way",
"v": true, "v": true,
"logicX": 4, "logicX": 9,
"logicY": 2, "logicY": 4,
"tf": [ "tf": [
[ [
4.44, 4.44,
@ -352,8 +352,8 @@
"id": "10_4", "id": "10_4",
"t": "way", "t": "way",
"v": true, "v": true,
"logicX": 5, "logicX": 10,
"logicY": 2, "logicY": 4,
"tf": [ "tf": [
[ [
5.44, 5.44,
@ -387,8 +387,8 @@
"id": "11_4", "id": "11_4",
"t": "way", "t": "way",
"v": true, "v": true,
"logicX": 6, "logicX": 11,
"logicY": 2, "logicY": 4,
"tf": [ "tf": [
[ [
6.44, 6.44,

133
tw_test/project.json

@ -1,68 +1,73 @@
{ {
"projectUuid": "tw_test", "projectUuid" : "tw_test",
"projectLabel": "台湾展会-嘉兴调试", "projectLabel" : "",
"projectFileLocation": "", "subSystemList" : null,
"subSystemList": [ "projectFileLocation" : "",
"RCS" "directoryData" : [ {
], "label" : "仓库楼层",
"directoryData": [ "items" : [ {
{ "catalogCode" : "f1",
"label": "仓库楼层", "label" : "一楼 (f1)"
"items": [ } ]
{ } ],
"catalogCode": "f1", "otherData" : {
"label": "一楼 (f1)" "projectUuid" : "tw_test",
} "projectLabel" : "",
] "subSystemList" : null,
} "projectFileLocation" : "/Users/qtws/Desktop/project/jztd/yvan-lcc-bench/lcc-map/tw_test/project.json",
], "otherData" : {
"otherData": { "projectUuid" : "tw_test",
"projectUuid": "tw_test", "projectLabel" : "",
"projectLabel": "台湾物流展会-嘉兴测试", "projectFileLocation" : "/Users/qtws/Desktop/project/jztd/yvan-lcc-bench/lcc-map/tw_test/project.json",
"projectFileLocation": "D:/Projects/yvan-lcc-bench/lcc-map/tw_test/project.json", "otherData" : {
"otherData": { "projectUuid" : "tw_test",
"Tool": { "projectLabel" : "",
"Group": [], "projectFileLocation" : "/Users/qtws/Desktop/project/jztd/yvan-lcc-bench/lcc-map/tw_test/project.json",
"GlobalVariables": [], "otherData" : {
"UserCommand": [], "projectUuid" : "tw_test",
"Dashboard": [], "projectLabel" : "台湾物流展会-嘉兴测试",
"DataTable": [], "projectFileLocation" : "D:/Projects/yvan-lcc-bench/lcc-map/tw_test/project.json",
"Trigger": [ "otherData" : {
{ "Tool" : {
"name": "OnOpen", "Group" : [ ],
"fn": "" "GlobalVariables" : [ ],
}, "UserCommand" : [ ],
{ "Dashboard" : [ ],
"name": "OnReset", "DataTable" : [ ],
"fn": "" "Trigger" : [ {
}, "name" : "OnOpen",
{ "fn" : ""
"name": "OnStart", }, {
"fn": "" "name" : "OnReset",
}, "fn" : ""
{ }, {
"name": "OnStop", "name" : "OnStart",
"fn": "" "fn" : ""
} }, {
], "name" : "OnStop",
"gridHelper": { "fn" : ""
"axesEnabled": true, } ],
"axesSize": 5, "gridHelper" : {
"axesColor": 14540253, "axesEnabled" : true,
"axesWidth": 2, "axesSize" : 5,
"gridEnabled": true, "axesColor" : 14540253,
"gridSize": 1000, "axesWidth" : 2,
"gridDivisions": 1000, "gridEnabled" : true,
"gridColor": 14540253, "gridSize" : 1000,
"gridOpacity": 1, "gridDivisions" : 1000,
"backgroundColor": 16119285, "gridColor" : 14540253,
"snapEnabled": true, "gridOpacity" : 1,
"snapDistance": 0.25 "backgroundColor" : 16119285,
} "snapEnabled" : true,
"snapDistance" : 0.25
}
}, },
"elevator": [], "elevator" : [ ],
"wall": [], "wall" : [ ],
"pillar": [] "pillar" : [ ]
}
} }
}
} }
} }
}

6
tw_test/scripts/run1.ts

@ -0,0 +1,6 @@
const v = await RCS.agvCarry('3', 'rack2/0/0/0', 'rack1/1/1/0', { priority: 1 })
// const v = await RCS.agvCarry('3', 'rack1/0/1/0', '105_105', { priority: 1 })
// const v = await RCS.agvCarry('3','rack2/0/0/0', '105_105', { priority: 1 })
// const v = await RCS.agvCarry('3','105_105', 'rack1/1/1/0', { priority: 1 })
// const v = await RCS.agvMove('3', '6_4')
// await RCS.cancelTasks('3')
Loading…
Cancel
Save