forked from BehaviorTree/BehaviorTree.CPP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
behaviortree_schema.xsd
143 lines (143 loc) · 6.82 KB
/
behaviortree_schema.xsd
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<?xml version="1.0" encoding="utf-8" ?>
<!--Created with Liquid Studio 2018 (https://www.liquid-technologies.com)-->
<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="root">
<xs:complexType>
<xs:sequence>
<xs:element name="BehaviorTree" minOccurs="1" maxOccurs="unbounded">
<xs:complexType>
<xs:group ref="BuiltInMultipleTypes" />
<xs:attribute name="ID" type="xs:string" use="required" />
</xs:complexType>
</xs:element>
<xs:element name="TreeNodeModel" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element name="Action" type="ActionType" />
<xs:element name="Condition" type="ConditionType" />
<xs:element name="Decorator" type="DecoratorType" />
<xs:element name="Control" type="ControlType" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="main_tree_to_execute" type="xs:string" use="required" />
</xs:complexType>
</xs:element>
<xs:complexType name="ActionType">
<xs:attribute name="name" type="xs:string" use="optional" />
<xs:attribute name="ID" type="xs:string" use="required" />
<xs:anyAttribute />
</xs:complexType>
<xs:complexType name="ConditionType">
<xs:attribute name="name" type="xs:string" use="optional" />
<xs:attribute name="ID" type="xs:string" use="required" />
<xs:anyAttribute />
</xs:complexType>
<xs:complexType name="DecoratorType">
<xs:group ref="BuiltInMultipleTypes" />
<xs:attribute name="name" type="xs:string" use="optional" />
<xs:attribute name="ID" type="xs:string" use="required" />
<xs:anyAttribute />
</xs:complexType>
<xs:complexType name="SubtreeType">
<xs:group ref="BuiltInMultipleTypes" />
<xs:attribute name="name" type="xs:string" use="optional" />
<xs:attribute name="ID" type="xs:string" use="required" />
<xs:anyAttribute />
</xs:complexType>
<xs:complexType name="ControlType">
<xs:sequence>
<xs:group minOccurs="1" maxOccurs="unbounded" ref="BuiltInMultipleTypes" />
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="optional" />
<xs:attribute name="ID" type="xs:string" use="required" />
<xs:anyAttribute />
</xs:complexType>
<xs:complexType name="SequenceType">
<xs:sequence>
<xs:group minOccurs="1" maxOccurs="unbounded" ref="BuiltInMultipleTypes" />
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="optional" />
</xs:complexType>
<xs:complexType name="SequenceStarType">
<xs:sequence>
<xs:group minOccurs="1" maxOccurs="unbounded" ref="BuiltInMultipleTypes" />
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="optional" />
</xs:complexType>
<xs:complexType name="FallbackType">
<xs:sequence>
<xs:group minOccurs="1" maxOccurs="unbounded" ref="BuiltInMultipleTypes" />
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="optional" />
</xs:complexType>
<xs:complexType name="FallbackStarType">
<xs:sequence>
<xs:group minOccurs="1" maxOccurs="unbounded" ref="BuiltInMultipleTypes" />
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="optional" />
</xs:complexType>
<xs:complexType name="ParallelType">
<xs:sequence>
<xs:group minOccurs="2" maxOccurs="unbounded" ref="BuiltInMultipleTypes" />
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="optional" />
<xs:attribute name="threshold" type="xs:string" use="required" />
</xs:complexType>
<xs:complexType name="RetryType">
<xs:group ref="BuiltInMultipleTypes" />
<xs:attribute name="name" type="xs:string" use="optional" />
<xs:attribute name="num_attempts" type="xs:string" use="required" />
</xs:complexType>
<xs:complexType name="RepeatType">
<xs:group ref="BuiltInMultipleTypes" />
<xs:attribute name="name" type="xs:string" use="optional" />
<xs:attribute name="num_cycles" type="xs:string" use="required" />
</xs:complexType>
<xs:complexType name="InverterType">
<xs:group ref="BuiltInMultipleTypes" />
<xs:attribute name="name" type="xs:string" use="optional" />
</xs:complexType>
<xs:complexType name="TimeoutType">
<xs:group ref="BuiltInMultipleTypes" />
<xs:attribute name="name" type="xs:string" use="optional" />
<xs:attribute name="msec" type="xs:string" use="required" />
</xs:complexType>
<xs:complexType name="ForceSuccesType">
<xs:group ref="BuiltInMultipleTypes" />
<xs:attribute name="name" type="xs:string" use="optional" />
</xs:complexType>
<xs:complexType name="ForceFailureType">
<xs:group ref="BuiltInMultipleTypes" />
<xs:attribute name="name" type="xs:string" use="optional" />
</xs:complexType>
<xs:complexType name="AlwaysSuccesType">
<xs:attribute name="name" type="xs:string" use="optional" />
</xs:complexType>
<xs:complexType name="AlwaysFailureType">
<xs:attribute name="name" type="xs:string" use="optional" />
</xs:complexType>
<xs:group name="BuiltInMultipleTypes">
<xs:choice>
<xs:element name="Action" type="ActionType" />
<xs:element name="Condition" type="ConditionType" />
<xs:element name="Control" type="ControlType" />
<xs:element name="Decorator" type="DecoratorType" />
<xs:element name="Subtree" type="SubtreeType" />
<xs:element name="Sequence" type="SequenceType" />
<xs:element name="SequenceStar" type="SequenceStarType" />
<xs:element name="Fallback" type="FallbackType" />
<xs:element name="FallbackStar" type="FallbackStarType" />
<xs:element name="Parallel" type="ParallelType" />
<xs:element name="Inverter" type="InverterType" />
<xs:element name="RetryUntilSuccesful" type="RetryType" />
<xs:element name="Repeat" type="RepeatType" />
<xs:element name="Timeout" type="TimeoutType" />
<xs:element name="ForceSucces" type="ForceSuccesType" />
<xs:element name="ForceFailure" type="ForceFailureType" />
<xs:element name="AlwaysSucces" type="AlwaysSuccesType" />
<xs:element name="AlwaysFailure" type="AlwaysFailureType" />
</xs:choice>
</xs:group>
</xs:schema>