-
Notifications
You must be signed in to change notification settings - Fork 0
/
SystemSkillTest.skills.json
86 lines (65 loc) · 2.44 KB
/
SystemSkillTest.skills.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; SKILL LIST EXAMPLE
[
{"skill" :
{
"name" : "moverobot_approach_region_purepursuit",
"skill-definition-fqn" : "CommNavigationObjects.CdlSkills.moverobot_approach_region_purepursuit",
"in-attribute" : {
"location" : "Int"
},
"out-attribute" : {
},
"results" : [
{ "result" : "ERROR", "result-value" : "UNKNOWN LOCATION" },
{ "result" : "ERROR", "result-value" : "ROBOT BLOCKED" },
{ "result" : "SUCCESS", "result-value" : "OK" },
{ "result" : "SUCCESS", "result-value" : "" }
]
}
},
{"skill" :
{
"name" : "testskill",
"skill-definition-fqn" : "CommNavigationObjects.CdlSkills.testskill",
"in-attribute" : {
"var1" : "Int",
"var2" : "Double",
"var3" : "String"
},
"out-attribute" : {
},
"results" : [
{ "result" : "ERROR", "result-value" : "UNKNOWN LOCATION" },
{ "result" : "ERROR", "result-value" : "ROBOT BLOCKED" },
{ "result" : "SUCCESS", "result-value" : "OK" },
{ "result" : "SUCCESS", "result-value" : "" }
]
}
}
]
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; COMMUNICATION EXAMPLES
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; INFORMATION QUERY
{ "msg-type" : "query" , "query" : { "type" : "get-all-positions" }}
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; PUSH SKILL
;; The skills will be executed in sequence, one by one, each pushed skill should feature an unique ID, the result of the skills will features this ID
{ "msg-type" : "push-skill" , "id" : 1, "skill" : { "name" : "moverobot_approach_region_purepursuit", "skillDefinitionFQN" : "CommNavigationObjects.CdlSkills.moverobot_approach_region_purepursuit", "in-attribute" : { "location" : 1 }, "out-attribute" : { }}}
{ "msg-type" : "push-skill" , "id" : 1, "skill" : { "name" : "moverobot_approach_region_purepursuit", "skillDefinitionFQN" : "CommNavigationObjects.CdlSkills.moverobot_approach_region_purepursuit", "in-attribute" : { "location" : 2 }, "out-attribute" : { }}}
;; PUSH RESULTS
{ "msg-type" : "skill-result" , "id" : 1 , "result" : { "result" : "SUCCESS", "result-value" : "OK" }}
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; ABORT
{ "msg-type" : "abort-current-running-skill" }
{ "msg-type" : "abort-skill" , "id" : 2 }
;; ABORT RESULTS
{ "msg-type" : "abort-current-running-skill"}
{ "msg-type" : "abort-skill", "id" : 2}
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;