Repository navigation
Expand file tree
/
Copy pathrobot-algorithm.drawio
More file actions
196 lines (196 loc) · 17.5 KB
/
Copy pathrobot-algorithm.drawio
File metadata and controls
196 lines (196 loc) · 17.5 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
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
<mxfile host="app.diagrams.net" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0" version="25.0.3">
<diagram name="Page-1" id="XsRoqxGvgSxjasiVzH9C">
<mxGraphModel dx="1731" dy="1678" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="2wPm25KMWRLESi4i-3tM-16" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="2wPm25KMWRLESi4i-3tM-1" target="2wPm25KMWRLESi4i-3tM-15" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="2wPm25KMWRLESi4i-3tM-1" value="Program Start" style="ellipse;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="465" y="-10" width="120" height="80" as="geometry" />
</mxCell>
<mxCell id="2wPm25KMWRLESi4i-3tM-5" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="2wPm25KMWRLESi4i-3tM-2" target="2wPm25KMWRLESi4i-3tM-4" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="2wPm25KMWRLESi4i-3tM-2" value="Find closest item: Mobile goal or red ring" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="290" y="270" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="2wPm25KMWRLESi4i-3tM-7" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="2wPm25KMWRLESi4i-3tM-4" target="2wPm25KMWRLESi4i-3tM-6" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="2wPm25KMWRLESi4i-3tM-9" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="2wPm25KMWRLESi4i-3tM-4" target="2wPm25KMWRLESi4i-3tM-8" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="2wPm25KMWRLESi4i-3tM-4" value="What item is<div>&nbsp;closest?</div>" style="rhombus;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="140" y="260" width="120" height="80" as="geometry" />
</mxCell>
<mxCell id="2wPm25KMWRLESi4i-3tM-11" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="2wPm25KMWRLESi4i-3tM-6" target="2wPm25KMWRLESi4i-3tM-10" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="2wPm25KMWRLESi4i-3tM-6" value="Collect the ring onto the intake, without pushing it over<div>has ring = true</div>" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="-30" y="270" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="2wPm25KMWRLESi4i-3tM-8" value="Turn and reverse to the goal, then collect it<div>has goal = true</div>" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="140" y="390" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="2wPm25KMWRLESi4i-3tM-13" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="2wPm25KMWRLESi4i-3tM-10" target="2wPm25KMWRLESi4i-3tM-12" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="2wPm25KMWRLESi4i-3tM-10" value="Find and collect the nearest mobile goal<div>has goal = true</div>" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="-30" y="360" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="2wPm25KMWRLESi4i-3tM-12" value="Load the ring onto the mobile goal<div>rings on goal += 1</div><div>has ring = false</div>" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="-30" y="450" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="2wPm25KMWRLESi4i-3tM-21" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="2wPm25KMWRLESi4i-3tM-15" target="2wPm25KMWRLESi4i-3tM-20" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="2wPm25KMWRLESi4i-3tM-15" value="Has ring = false<div>has goal = false</div><div>rings on goal = 0</div>" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="465" y="100" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="2wPm25KMWRLESi4i-3tM-22" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="1" source="2wPm25KMWRLESi4i-3tM-20" target="2wPm25KMWRLESi4i-3tM-2" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="2wPm25KMWRLESi4i-3tM-30" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="1" source="2wPm25KMWRLESi4i-3tM-20" target="2wPm25KMWRLESi4i-3tM-29" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="2wPm25KMWRLESi4i-3tM-44" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="2wPm25KMWRLESi4i-3tM-20" target="2wPm25KMWRLESi4i-3tM-43" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="2wPm25KMWRLESi4i-3tM-20" value="has goal or<div>has ring?</div>" style="rhombus;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="460" y="200" width="130" height="80" as="geometry" />
</mxCell>
<mxCell id="2wPm25KMWRLESi4i-3tM-23" value="Does not have&nbsp;<div>goal or ring</div>" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" parent="1" vertex="1">
<mxGeometry x="375" y="190" width="100" height="40" as="geometry" />
</mxCell>
<mxCell id="2wPm25KMWRLESi4i-3tM-32" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="1" source="2wPm25KMWRLESi4i-3tM-29" target="2wPm25KMWRLESi4i-3tM-31" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="2wPm25KMWRLESi4i-3tM-37" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="2wPm25KMWRLESi4i-3tM-29" target="2wPm25KMWRLESi4i-3tM-36" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="2wPm25KMWRLESi4i-3tM-29" value="rings on goal &gt;= 5?" style="rhombus;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="710" y="270" width="120" height="80" as="geometry" />
</mxCell>
<mxCell id="2wPm25KMWRLESi4i-3tM-31" value="Navigate to corner<div>Reverse into corner</div><div>Unclamp goal</div><div>has goal = false</div><div>Remove goal from list</div>" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="880" y="370" width="120" height="80" as="geometry" />
</mxCell>
<mxCell id="2wPm25KMWRLESi4i-3tM-34" value="Only has goal" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" parent="1" vertex="1">
<mxGeometry x="565" y="210" width="100" height="30" as="geometry" />
</mxCell>
<mxCell id="2wPm25KMWRLESi4i-3tM-35" value="yes" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" parent="1" vertex="1">
<mxGeometry x="820" y="280" width="40" height="30" as="geometry" />
</mxCell>
<mxCell id="2wPm25KMWRLESi4i-3tM-36" value="Locate nearest ring<div>navigate to and intake ring</div><div>Score ring on goal</div><div>rings on goal += 1</div><div>remove ring from list</div>" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="705" y="380" width="130" height="100" as="geometry" />
</mxCell>
<mxCell id="2wPm25KMWRLESi4i-3tM-39" value="" style="endArrow=classic;html=1;rounded=0;exitX=0;exitY=0.5;exitDx=0;exitDy=0;" parent="1" source="2wPm25KMWRLESi4i-3tM-36" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="660" y="420" as="sourcePoint" />
<mxPoint x="770" y="250" as="targetPoint" />
<Array as="points">
<mxPoint x="670" y="430" />
<mxPoint x="670" y="250" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="2wPm25KMWRLESi4i-3tM-40" value="No" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" parent="1" vertex="1">
<mxGeometry x="740" y="340" width="40" height="30" as="geometry" />
</mxCell>
<mxCell id="2wPm25KMWRLESi4i-3tM-62" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="2wPm25KMWRLESi4i-3tM-43" target="2wPm25KMWRLESi4i-3tM-59" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="2wPm25KMWRLESi4i-3tM-43" value="Find closest mobile goal<div>Clamp goal</div>" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="465" y="360" width="120" height="55" as="geometry" />
</mxCell>
<mxCell id="2wPm25KMWRLESi4i-3tM-45" value="Only has ring" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" parent="1" vertex="1">
<mxGeometry x="530" y="270" width="90" height="30" as="geometry" />
</mxCell>
<mxCell id="2wPm25KMWRLESi4i-3tM-63" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="1" source="2wPm25KMWRLESi4i-3tM-59" target="2wPm25KMWRLESi4i-3tM-60" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="2wPm25KMWRLESi4i-3tM-59" value="Remove goal from list<div>has goal = true</div>" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="305" y="357.5" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="2wPm25KMWRLESi4i-3tM-66" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="2wPm25KMWRLESi4i-3tM-60" target="2wPm25KMWRLESi4i-3tM-61" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="2wPm25KMWRLESi4i-3tM-60" value="Spin intake to score ring" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="305" y="460" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="2wPm25KMWRLESi4i-3tM-61" value="Rings on goal += 1<div>has ring = false</div>" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="465" y="460" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="2wPm25KMWRLESi4i-3tM-67" value="" style="endArrow=none;html=1;rounded=0;" parent="1" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="1060" y="600" as="sourcePoint" />
<mxPoint x="120" y="600" as="targetPoint" />
<Array as="points" />
</mxGeometry>
</mxCell>
<mxCell id="2wPm25KMWRLESi4i-3tM-68" value="" style="endArrow=none;html=1;rounded=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="1" source="2wPm25KMWRLESi4i-3tM-12" target="2wPm25KMWRLESi4i-3tM-8" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="200" y="600" as="sourcePoint" />
<mxPoint x="200" y="440" as="targetPoint" />
<Array as="points">
<mxPoint x="30" y="540" />
<mxPoint x="200" y="540" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="2wPm25KMWRLESi4i-3tM-69" value="Ring" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" parent="1" vertex="1">
<mxGeometry x="105" y="270" width="50" height="30" as="geometry" />
</mxCell>
<mxCell id="2wPm25KMWRLESi4i-3tM-70" value="Goal" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" parent="1" vertex="1">
<mxGeometry x="155" y="330" width="50" height="30" as="geometry" />
</mxCell>
<mxCell id="2wPm25KMWRLESi4i-3tM-71" value="" style="endArrow=none;html=1;rounded=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" parent="1" target="2wPm25KMWRLESi4i-3tM-61" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="525" y="600" as="sourcePoint" />
<mxPoint x="530" y="530" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="2wPm25KMWRLESi4i-3tM-72" value="" style="endArrow=classic;html=1;rounded=0;" parent="1" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="1060" y="600" as="sourcePoint" />
<mxPoint x="530" y="180" as="targetPoint" />
<Array as="points">
<mxPoint x="1060" y="180" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="2wPm25KMWRLESi4i-3tM-74" value="" style="endArrow=none;html=1;rounded=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="1" source="2wPm25KMWRLESi4i-3tM-31" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="720" y="530" as="sourcePoint" />
<mxPoint x="770" y="480" as="targetPoint" />
<Array as="points">
<mxPoint x="940" y="530" />
<mxPoint x="770" y="530" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="2wPm25KMWRLESi4i-3tM-75" value="" style="endArrow=none;html=1;rounded=0;" parent="1" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="850" y="600" as="sourcePoint" />
<mxPoint x="850" y="530" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="2wPm25KMWRLESi4i-3tM-76" value="" style="endArrow=none;html=1;rounded=0;" parent="1" edge="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="120" y="600" as="sourcePoint" />
<mxPoint x="120" y="540" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="2wPm25KMWRLESi4i-3tM-77" value="<h1 style="margin-top: 0px; line-height: 60%;"><br></h1><h1 style="margin-top: 0px; line-height: 60%;">Search and Stack GPS</h1><h1 style="margin-top: 0px; line-height: 60%;"><font style="font-size: 20px; line-height: 60%;">OSCAR Full Autonomous</font></h1>" style="text;html=1;whiteSpace=wrap;overflow=hidden;rounded=0;spacing=2;align=center;" parent="1" vertex="1">
<mxGeometry x="770" y="-30" width="300" height="90" as="geometry" />
</mxCell>
<UserObject label="<span style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-indent: 0px; text-transform: none; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(251, 251, 251); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; float: none; display: inline !important;">Advanced instructions, such as how the robot moves, can be found in pseudocode at&nbsp;https://github.com/WhoIsConch/OSCAR_Control</span>" link="<span style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(251, 251, 251); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">Advanced instructions, such as how the robot moves, can be found in pseudocode at&nbsp;https://github.com/WhoIsConch/OSCAR_Control</span>" id="2wPm25KMWRLESi4i-3tM-78">
<mxCell style="text;whiteSpace=wrap;html=1;fontSize=15;align=center;" parent="1" vertex="1">
<mxGeometry x="785" y="70" width="290" height="50" as="geometry" />
</mxCell>
</UserObject>
</root>
</mxGraphModel>
</diagram>
</mxfile>