-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCommandsExample2.plx
More file actions
72 lines (72 loc) · 2.45 KB
/
CommandsExample2.plx
File metadata and controls
72 lines (72 loc) · 2.45 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<PlexilPlan xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:tr="extended-plexil-translator"
FileName="/Users/hcadavid/ECI/2015-2/Robotics-Plexil/source-adapter/robotics-interfacing/eci-robotics-plans/CommandsExample2.ple">
<GlobalDeclarations LineNo="2" ColNo="0">
<CommandDeclaration LineNo="2" ColNo="0">
<Name>PlantSeed</Name>
</CommandDeclaration>
<CommandDeclaration LineNo="3" ColNo="0">
<Name>TurnFrontWheels</Name>
<Parameter>
<Type>Integer</Type>
</Parameter>
</CommandDeclaration>
<CommandDeclaration LineNo="4" ColNo="0">
<Name>TurnRearWheels</Name>
<Parameter>
<Type>Integer</Type>
</Parameter>
</CommandDeclaration>
<CommandDeclaration LineNo="5" ColNo="0">
<Name>MoveForward</Name>
<Parameter>
<Type>Integer</Type>
</Parameter>
</CommandDeclaration>
<CommandDeclaration LineNo="6" ColNo="0">
<Name>MoveBackward</Name>
<Parameter>
<Type>Integer</Type>
</Parameter>
</CommandDeclaration>
<CommandDeclaration LineNo="7" ColNo="0">
<Name>StopEngine</Name>
</CommandDeclaration>
</GlobalDeclarations>
<Node NodeType="NodeList" epx="Sequence" LineNo="10" ColNo="8">
<NodeId>CommandsTest</NodeId>
<InvariantCondition>
<NOT>
<AND>
<EQInternal>
<NodeOutcomeVariable>
<NodeRef dir="child">MB</NodeRef>
</NodeOutcomeVariable>
<NodeOutcomeValue>FAILURE</NodeOutcomeValue>
</EQInternal>
<EQInternal>
<NodeStateVariable>
<NodeRef dir="child">MB</NodeRef>
</NodeStateVariable>
<NodeStateValue>FINISHED</NodeStateValue>
</EQInternal>
</AND>
</NOT>
</InvariantCondition>
<NodeBody>
<NodeList>
<Node NodeType="Command" LineNo="10" ColNo="12">
<NodeId>MB</NodeId>
<NodeBody>
<Command>
<Name>
<StringValue>StopEngine</StringValue>
</Name>
</Command>
</NodeBody>
</Node>
</NodeList>
</NodeBody>
</Node>
</PlexilPlan>