Datasets:
Commit
•
6bbca60
1
Parent(s):
b2f36c3
Upload . with huggingface_hub
Browse files- JumperHard.csproj +12 -0
- JumperHard.onnx +3 -0
- JumperHard.sln +19 -0
- Player.tscn +144 -144
- addons/godot_rl_agents/controller/ai_controller.gd +77 -0
- addons/godot_rl_agents/controller/ai_controller_2d.gd +8 -0
- addons/godot_rl_agents/controller/ai_controller_3d.gd +8 -0
- addons/godot_rl_agents/icon.png.import +2 -2
- addons/godot_rl_agents/onnx/csharp/ONNXInference.cs +93 -0
- addons/godot_rl_agents/onnx/csharp/SessionConfigurator.cs +106 -0
- addons/godot_rl_agents/onnx/csharp/docs/ONNXInference.xml +31 -0
- addons/godot_rl_agents/onnx/csharp/docs/SessionConfigurator.xml +29 -0
- addons/godot_rl_agents/onnx/wrapper/ONNX_wrapper.gd +19 -0
- addons/godot_rl_agents/sensors/sensors_2d/ExampleRaycastSensor2D.tscn +11 -11
- addons/godot_rl_agents/sensors/sensors_2d/ISensor2D.gd +1 -1
- addons/godot_rl_agents/sensors/sensors_2d/RaycastSensor2D.gd +31 -7
- addons/godot_rl_agents/sensors/sensors_2d/RaycastSensor2D.tscn +4 -3
- addons/godot_rl_agents/sensors/sensors_3d/ISensor3D.gd +1 -1
- addons/godot_rl_agents/sensors/sensors_3d/RaycastSensor3D.gd +8 -8
- addons/godot_rl_agents/sensors/sensors_3d/RaycastSensor3D.tscn +26 -42
- addons/godot_rl_agents/sync.gd +119 -78
- bin/JumperHard.console.exe +0 -0
- bin/JumperHard.exe +2 -2
- bin/JumperHard.pck +0 -0
- bin/JumperHard.sh +4 -0
- bin/JumperHard.x86_64 +2 -2
- export_presets.cfg +37 -8
- icon.png.import +1 -1
- project.godot +11 -45
JumperHard.csproj
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<Project Sdk="Godot.NET.Sdk/4.0.2">
|
2 |
+
<PropertyGroup>
|
3 |
+
<TargetFramework>net6.0</TargetFramework>
|
4 |
+
<EnableDynamicLoading>true</EnableDynamicLoading>
|
5 |
+
</PropertyGroup>
|
6 |
+
<ItemGroup>
|
7 |
+
<PackageReference Include="Microsoft.ML.OnnxRuntime" Version="1.14.1" />
|
8 |
+
<PackageReference Include="Microsoft.ML.OnnxRuntime.DirectML" Version="1.14.1" />
|
9 |
+
<PackageReference Include="Microsoft.ML.OnnxRuntime.Gpu" Version="1.14.1" />
|
10 |
+
<PackageReference Include="System.Numerics.Tensors" Version="0.1.0" />
|
11 |
+
</ItemGroup>
|
12 |
+
</Project>
|
JumperHard.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6241f418b8821a50a4809ee5ae005cb5e621cc39660dfbed1a03498a7574eba6
|
3 |
+
size 58325
|
JumperHard.sln
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Microsoft Visual Studio Solution File, Format Version 12.00
|
2 |
+
# Visual Studio 2012
|
3 |
+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "JumperHard", "JumperHard.csproj", "{46905FFE-BFD9-4E2D-96F4-5FE630911A3A}"
|
4 |
+
EndProject
|
5 |
+
Global
|
6 |
+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
7 |
+
Debug|Any CPU = Debug|Any CPU
|
8 |
+
ExportDebug|Any CPU = ExportDebug|Any CPU
|
9 |
+
ExportRelease|Any CPU = ExportRelease|Any CPU
|
10 |
+
EndGlobalSection
|
11 |
+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
12 |
+
{46905FFE-BFD9-4E2D-96F4-5FE630911A3A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
13 |
+
{46905FFE-BFD9-4E2D-96F4-5FE630911A3A}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
14 |
+
{46905FFE-BFD9-4E2D-96F4-5FE630911A3A}.ExportDebug|Any CPU.ActiveCfg = ExportDebug|Any CPU
|
15 |
+
{46905FFE-BFD9-4E2D-96F4-5FE630911A3A}.ExportDebug|Any CPU.Build.0 = ExportDebug|Any CPU
|
16 |
+
{46905FFE-BFD9-4E2D-96F4-5FE630911A3A}.ExportRelease|Any CPU.ActiveCfg = ExportRelease|Any CPU
|
17 |
+
{46905FFE-BFD9-4E2D-96F4-5FE630911A3A}.ExportRelease|Any CPU.Build.0 = ExportRelease|Any CPU
|
18 |
+
EndGlobalSection
|
19 |
+
EndGlobal
|
Player.tscn
CHANGED
@@ -44,436 +44,436 @@ n_rays_width = 12.0
|
|
44 |
n_rays_height = 12.0
|
45 |
ray_length = 15.0
|
46 |
|
47 |
-
[node name="@node_0 0@
|
48 |
target_position = Vector3(-6.14364, -6.92623, 11.8018)
|
49 |
|
50 |
-
[node name="
|
51 |
target_position = Vector3(-6.399, -5.74025, 12.2924)
|
52 |
|
53 |
-
[node name="
|
54 |
target_position = Vector3(-6.60566, -4.51059, 12.6894)
|
55 |
|
56 |
-
[node name="
|
57 |
target_position = Vector3(-6.76205, -3.24659, 12.9898)
|
58 |
|
59 |
-
[node name="
|
60 |
target_position = Vector3(-6.86697, -1.95789, 13.1913)
|
61 |
|
62 |
-
[node name="
|
63 |
target_position = Vector3(-6.91964, -0.654291, 13.2925)
|
64 |
|
65 |
-
[node name="
|
66 |
target_position = Vector3(-6.91964, 0.654291, 13.2925)
|
67 |
|
68 |
-
[node name="
|
69 |
target_position = Vector3(-6.86697, 1.95789, 13.1913)
|
70 |
|
71 |
-
[node name="
|
72 |
target_position = Vector3(-6.76205, 3.24659, 12.9898)
|
73 |
|
74 |
-
[node name="
|
75 |
target_position = Vector3(-6.60566, 4.51059, 12.6894)
|
76 |
|
77 |
-
[node name="
|
78 |
target_position = Vector3(-6.399, 5.74025, 12.2924)
|
79 |
|
80 |
-
[node name="
|
81 |
target_position = Vector3(-6.14364, 6.92623, 11.8018)
|
82 |
|
83 |
-
[node name="
|
84 |
target_position = Vector3(-5.09167, -6.92623, 12.2924)
|
85 |
|
86 |
-
[node name="
|
87 |
target_position = Vector3(-5.3033, -5.74025, 12.8033)
|
88 |
|
89 |
-
[node name="
|
90 |
target_position = Vector3(-5.47458, -4.51059, 13.2168)
|
91 |
|
92 |
-
[node name="
|
93 |
target_position = Vector3(-5.60418, -3.24659, 13.5297)
|
94 |
|
95 |
-
[node name="
|
96 |
target_position = Vector3(-5.69114, -1.95789, 13.7396)
|
97 |
|
98 |
-
[node name="
|
99 |
target_position = Vector3(-5.73479, -0.654291, 13.845)
|
100 |
|
101 |
-
[node name="
|
102 |
target_position = Vector3(-5.73479, 0.654291, 13.845)
|
103 |
|
104 |
-
[node name="
|
105 |
target_position = Vector3(-5.69114, 1.95789, 13.7396)
|
106 |
|
107 |
-
[node name="
|
108 |
target_position = Vector3(-5.60418, 3.24659, 13.5297)
|
109 |
|
110 |
-
[node name="
|
111 |
target_position = Vector3(-5.47458, 4.51059, 13.2168)
|
112 |
|
113 |
-
[node name="
|
114 |
target_position = Vector3(-5.3033, 5.74025, 12.8033)
|
115 |
|
116 |
-
[node name="
|
117 |
target_position = Vector3(-5.09167, 6.92623, 12.2924)
|
118 |
|
119 |
-
[node name="
|
120 |
target_position = Vector3(-4.00094, -6.92623, 12.6894)
|
121 |
|
122 |
-
[node name="
|
123 |
target_position = Vector3(-4.16724, -5.74025, 13.2168)
|
124 |
|
125 |
-
[node name="
|
126 |
target_position = Vector3(-4.30182, -4.51059, 13.6436)
|
127 |
|
128 |
-
[node name="
|
129 |
target_position = Vector3(-4.40367, -3.24659, 13.9667)
|
130 |
|
131 |
-
[node name="
|
132 |
target_position = Vector3(-4.472, -1.95789, 14.1834)
|
133 |
|
134 |
-
[node name="
|
135 |
target_position = Vector3(-4.50629, -0.654291, 14.2921)
|
136 |
|
137 |
-
[node name="
|
138 |
target_position = Vector3(-4.50629, 0.654291, 14.2921)
|
139 |
|
140 |
-
[node name="
|
141 |
target_position = Vector3(-4.472, 1.95789, 14.1834)
|
142 |
|
143 |
-
[node name="
|
144 |
target_position = Vector3(-4.40367, 3.24659, 13.9667)
|
145 |
|
146 |
-
[node name="
|
147 |
target_position = Vector3(-4.30182, 4.51059, 13.6436)
|
148 |
|
149 |
-
[node name="
|
150 |
target_position = Vector3(-4.16724, 5.74025, 13.2168)
|
151 |
|
152 |
-
[node name="
|
153 |
target_position = Vector3(-4.00094, 6.92623, 12.6894)
|
154 |
|
155 |
-
[node name="
|
156 |
target_position = Vector3(-2.87976, -6.92623, 12.9898)
|
157 |
|
158 |
-
[node name="
|
159 |
target_position = Vector3(-2.99946, -5.74025, 13.5297)
|
160 |
|
161 |
-
[node name="
|
162 |
target_position = Vector3(-3.09633, -4.51059, 13.9667)
|
163 |
|
164 |
-
[node name="
|
165 |
target_position = Vector3(-3.16964, -3.24659, 14.2973)
|
166 |
|
167 |
-
[node name="
|
168 |
target_position = Vector3(-3.21882, -1.95789, 14.5192)
|
169 |
|
170 |
-
[node name="
|
171 |
target_position = Vector3(-3.2435, -0.654291, 14.6305)
|
172 |
|
173 |
-
[node name="
|
174 |
target_position = Vector3(-3.2435, 0.654291, 14.6305)
|
175 |
|
176 |
-
[node name="
|
177 |
target_position = Vector3(-3.21882, 1.95789, 14.5192)
|
178 |
|
179 |
-
[node name="
|
180 |
target_position = Vector3(-3.16964, 3.24659, 14.2973)
|
181 |
|
182 |
-
[node name="
|
183 |
target_position = Vector3(-3.09633, 4.51059, 13.9667)
|
184 |
|
185 |
-
[node name="
|
186 |
target_position = Vector3(-2.99946, 5.74025, 13.5297)
|
187 |
|
188 |
-
[node name="
|
189 |
target_position = Vector3(-2.87976, 6.92623, 12.9898)
|
190 |
|
191 |
-
[node name="
|
192 |
target_position = Vector3(-1.73667, -6.92623, 13.1913)
|
193 |
|
194 |
-
[node name="
|
195 |
target_position = Vector3(-1.80886, -5.74025, 13.7396)
|
196 |
|
197 |
-
[node name="
|
198 |
target_position = Vector3(-1.86728, -4.51059, 14.1834)
|
199 |
|
200 |
-
[node name="
|
201 |
target_position = Vector3(-1.91148, -3.24659, 14.5192)
|
202 |
|
203 |
-
[node name="
|
204 |
target_position = Vector3(-1.94114, -1.95789, 14.7444)
|
205 |
|
206 |
-
[node name="
|
207 |
target_position = Vector3(-1.95603, -0.654291, 14.8575)
|
208 |
|
209 |
-
[node name="
|
210 |
target_position = Vector3(-1.95603, 0.654291, 14.8575)
|
211 |
|
212 |
-
[node name="
|
213 |
target_position = Vector3(-1.94114, 1.95789, 14.7444)
|
214 |
|
215 |
-
[node name="
|
216 |
target_position = Vector3(-1.91148, 3.24659, 14.5192)
|
217 |
|
218 |
-
[node name="
|
219 |
target_position = Vector3(-1.86728, 4.51059, 14.1834)
|
220 |
|
221 |
-
[node name="
|
222 |
target_position = Vector3(-1.80886, 5.74025, 13.7396)
|
223 |
|
224 |
-
[node name="
|
225 |
target_position = Vector3(-1.73667, 6.92623, 13.1913)
|
226 |
|
227 |
-
[node name="
|
228 |
target_position = Vector3(-0.580363, -6.92623, 13.2925)
|
229 |
|
230 |
-
[node name="
|
231 |
target_position = Vector3(-0.604486, -5.74025, 13.845)
|
232 |
|
233 |
-
[node name="
|
234 |
target_position = Vector3(-0.624008, -4.51059, 14.2921)
|
235 |
|
236 |
-
[node name="
|
237 |
target_position = Vector3(-0.638781, -3.24659, 14.6305)
|
238 |
|
239 |
-
[node name="
|
240 |
target_position = Vector3(-0.648693, -1.95789, 14.8575)
|
241 |
|
242 |
-
[node name="
|
243 |
target_position = Vector3(-0.653668, -0.654291, 14.9715)
|
244 |
|
245 |
-
[node name="
|
246 |
target_position = Vector3(-0.653668, 0.654291, 14.9715)
|
247 |
|
248 |
-
[node name="
|
249 |
target_position = Vector3(-0.648693, 1.95789, 14.8575)
|
250 |
|
251 |
-
[node name="
|
252 |
target_position = Vector3(-0.638781, 3.24659, 14.6305)
|
253 |
|
254 |
-
[node name="
|
255 |
target_position = Vector3(-0.624008, 4.51059, 14.2921)
|
256 |
|
257 |
-
[node name="
|
258 |
target_position = Vector3(-0.604486, 5.74025, 13.845)
|
259 |
|
260 |
-
[node name="
|
261 |
target_position = Vector3(-0.580363, 6.92623, 13.2925)
|
262 |
|
263 |
-
[node name="
|
264 |
target_position = Vector3(0.580363, -6.92623, 13.2925)
|
265 |
|
266 |
-
[node name="
|
267 |
target_position = Vector3(0.604486, -5.74025, 13.845)
|
268 |
|
269 |
-
[node name="
|
270 |
target_position = Vector3(0.624008, -4.51059, 14.2921)
|
271 |
|
272 |
-
[node name="
|
273 |
target_position = Vector3(0.638781, -3.24659, 14.6305)
|
274 |
|
275 |
-
[node name="
|
276 |
target_position = Vector3(0.648693, -1.95789, 14.8575)
|
277 |
|
278 |
-
[node name="
|
279 |
target_position = Vector3(0.653668, -0.654291, 14.9715)
|
280 |
|
281 |
-
[node name="
|
282 |
target_position = Vector3(0.653668, 0.654291, 14.9715)
|
283 |
|
284 |
-
[node name="
|
285 |
target_position = Vector3(0.648693, 1.95789, 14.8575)
|
286 |
|
287 |
-
[node name="
|
288 |
target_position = Vector3(0.638781, 3.24659, 14.6305)
|
289 |
|
290 |
-
[node name="
|
291 |
target_position = Vector3(0.624008, 4.51059, 14.2921)
|
292 |
|
293 |
-
[node name="
|
294 |
target_position = Vector3(0.604486, 5.74025, 13.845)
|
295 |
|
296 |
-
[node name="
|
297 |
target_position = Vector3(0.580363, 6.92623, 13.2925)
|
298 |
|
299 |
-
[node name="
|
300 |
target_position = Vector3(1.73667, -6.92623, 13.1913)
|
301 |
|
302 |
-
[node name="
|
303 |
target_position = Vector3(1.80886, -5.74025, 13.7396)
|
304 |
|
305 |
-
[node name="
|
306 |
target_position = Vector3(1.86728, -4.51059, 14.1834)
|
307 |
|
308 |
-
[node name="
|
309 |
target_position = Vector3(1.91148, -3.24659, 14.5192)
|
310 |
|
311 |
-
[node name="
|
312 |
target_position = Vector3(1.94114, -1.95789, 14.7444)
|
313 |
|
314 |
-
[node name="
|
315 |
target_position = Vector3(1.95603, -0.654291, 14.8575)
|
316 |
|
317 |
-
[node name="
|
318 |
target_position = Vector3(1.95603, 0.654291, 14.8575)
|
319 |
|
320 |
-
[node name="
|
321 |
target_position = Vector3(1.94114, 1.95789, 14.7444)
|
322 |
|
323 |
-
[node name="
|
324 |
target_position = Vector3(1.91148, 3.24659, 14.5192)
|
325 |
|
326 |
-
[node name="
|
327 |
target_position = Vector3(1.86728, 4.51059, 14.1834)
|
328 |
|
329 |
-
[node name="
|
330 |
target_position = Vector3(1.80886, 5.74025, 13.7396)
|
331 |
|
332 |
-
[node name="
|
333 |
target_position = Vector3(1.73667, 6.92623, 13.1913)
|
334 |
|
335 |
-
[node name="
|
336 |
target_position = Vector3(2.87976, -6.92623, 12.9898)
|
337 |
|
338 |
-
[node name="
|
339 |
target_position = Vector3(2.99946, -5.74025, 13.5297)
|
340 |
|
341 |
-
[node name="
|
342 |
target_position = Vector3(3.09633, -4.51059, 13.9667)
|
343 |
|
344 |
-
[node name="
|
345 |
target_position = Vector3(3.16964, -3.24659, 14.2973)
|
346 |
|
347 |
-
[node name="
|
348 |
target_position = Vector3(3.21882, -1.95789, 14.5192)
|
349 |
|
350 |
-
[node name="
|
351 |
target_position = Vector3(3.2435, -0.654291, 14.6305)
|
352 |
|
353 |
-
[node name="
|
354 |
target_position = Vector3(3.2435, 0.654291, 14.6305)
|
355 |
|
356 |
-
[node name="
|
357 |
target_position = Vector3(3.21882, 1.95789, 14.5192)
|
358 |
|
359 |
-
[node name="
|
360 |
target_position = Vector3(3.16964, 3.24659, 14.2973)
|
361 |
|
362 |
-
[node name="
|
363 |
target_position = Vector3(3.09633, 4.51059, 13.9667)
|
364 |
|
365 |
-
[node name="
|
366 |
target_position = Vector3(2.99946, 5.74025, 13.5297)
|
367 |
|
368 |
-
[node name="
|
369 |
target_position = Vector3(2.87976, 6.92623, 12.9898)
|
370 |
|
371 |
-
[node name="
|
372 |
target_position = Vector3(4.00094, -6.92623, 12.6894)
|
373 |
|
374 |
-
[node name="
|
375 |
target_position = Vector3(4.16724, -5.74025, 13.2168)
|
376 |
|
377 |
-
[node name="
|
378 |
target_position = Vector3(4.30182, -4.51059, 13.6436)
|
379 |
|
380 |
-
[node name="
|
381 |
target_position = Vector3(4.40367, -3.24659, 13.9667)
|
382 |
|
383 |
-
[node name="
|
384 |
target_position = Vector3(4.472, -1.95789, 14.1834)
|
385 |
|
386 |
-
[node name="
|
387 |
target_position = Vector3(4.50629, -0.654291, 14.2921)
|
388 |
|
389 |
-
[node name="
|
390 |
target_position = Vector3(4.50629, 0.654291, 14.2921)
|
391 |
|
392 |
-
[node name="
|
393 |
target_position = Vector3(4.472, 1.95789, 14.1834)
|
394 |
|
395 |
-
[node name="
|
396 |
target_position = Vector3(4.40367, 3.24659, 13.9667)
|
397 |
|
398 |
-
[node name="
|
399 |
target_position = Vector3(4.30182, 4.51059, 13.6436)
|
400 |
|
401 |
-
[node name="
|
402 |
target_position = Vector3(4.16724, 5.74025, 13.2168)
|
403 |
|
404 |
-
[node name="
|
405 |
target_position = Vector3(4.00094, 6.92623, 12.6894)
|
406 |
|
407 |
-
[node name="
|
408 |
target_position = Vector3(5.09167, -6.92623, 12.2924)
|
409 |
|
410 |
-
[node name="
|
411 |
target_position = Vector3(5.3033, -5.74025, 12.8033)
|
412 |
|
413 |
-
[node name="
|
414 |
target_position = Vector3(5.47458, -4.51059, 13.2168)
|
415 |
|
416 |
-
[node name="
|
417 |
target_position = Vector3(5.60418, -3.24659, 13.5297)
|
418 |
|
419 |
-
[node name="
|
420 |
target_position = Vector3(5.69114, -1.95789, 13.7396)
|
421 |
|
422 |
-
[node name="
|
423 |
target_position = Vector3(5.73479, -0.654291, 13.845)
|
424 |
|
425 |
-
[node name="
|
426 |
target_position = Vector3(5.73479, 0.654291, 13.845)
|
427 |
|
428 |
-
[node name="
|
429 |
target_position = Vector3(5.69114, 1.95789, 13.7396)
|
430 |
|
431 |
-
[node name="
|
432 |
target_position = Vector3(5.60418, 3.24659, 13.5297)
|
433 |
|
434 |
-
[node name="
|
435 |
target_position = Vector3(5.47458, 4.51059, 13.2168)
|
436 |
|
437 |
-
[node name="
|
438 |
target_position = Vector3(5.3033, 5.74025, 12.8033)
|
439 |
|
440 |
-
[node name="
|
441 |
target_position = Vector3(5.09167, 6.92623, 12.2924)
|
442 |
|
443 |
-
[node name="
|
444 |
target_position = Vector3(6.14364, -6.92623, 11.8018)
|
445 |
|
446 |
-
[node name="
|
447 |
target_position = Vector3(6.399, -5.74025, 12.2924)
|
448 |
|
449 |
-
[node name="
|
450 |
target_position = Vector3(6.60566, -4.51059, 12.6894)
|
451 |
|
452 |
-
[node name="
|
453 |
target_position = Vector3(6.76205, -3.24659, 12.9898)
|
454 |
|
455 |
-
[node name="
|
456 |
target_position = Vector3(6.86697, -1.95789, 13.1913)
|
457 |
|
458 |
-
[node name="
|
459 |
target_position = Vector3(6.91964, -0.654291, 13.2925)
|
460 |
|
461 |
-
[node name="
|
462 |
target_position = Vector3(6.91964, 0.654291, 13.2925)
|
463 |
|
464 |
-
[node name="
|
465 |
target_position = Vector3(6.86697, 1.95789, 13.1913)
|
466 |
|
467 |
-
[node name="
|
468 |
target_position = Vector3(6.76205, 3.24659, 12.9898)
|
469 |
|
470 |
-
[node name="
|
471 |
target_position = Vector3(6.60566, 4.51059, 12.6894)
|
472 |
|
473 |
-
[node name="
|
474 |
target_position = Vector3(6.399, 5.74025, 12.2924)
|
475 |
|
476 |
-
[node name="
|
477 |
target_position = Vector3(6.14364, 6.92623, 11.8018)
|
478 |
|
479 |
[node name="Robot" parent="." instance=ExtResource("3_pt6ta")]
|
|
|
44 |
n_rays_height = 12.0
|
45 |
ray_length = 15.0
|
46 |
|
47 |
+
[node name="@node_0 0@29044" type="RayCast3D" parent="RayCastSensor3D"]
|
48 |
target_position = Vector3(-6.14364, -6.92623, 11.8018)
|
49 |
|
50 |
+
[node name="node_0 1" type="RayCast3D" parent="RayCastSensor3D"]
|
51 |
target_position = Vector3(-6.399, -5.74025, 12.2924)
|
52 |
|
53 |
+
[node name="node_0 2" type="RayCast3D" parent="RayCastSensor3D"]
|
54 |
target_position = Vector3(-6.60566, -4.51059, 12.6894)
|
55 |
|
56 |
+
[node name="node_0 3" type="RayCast3D" parent="RayCastSensor3D"]
|
57 |
target_position = Vector3(-6.76205, -3.24659, 12.9898)
|
58 |
|
59 |
+
[node name="node_0 4" type="RayCast3D" parent="RayCastSensor3D"]
|
60 |
target_position = Vector3(-6.86697, -1.95789, 13.1913)
|
61 |
|
62 |
+
[node name="node_0 5" type="RayCast3D" parent="RayCastSensor3D"]
|
63 |
target_position = Vector3(-6.91964, -0.654291, 13.2925)
|
64 |
|
65 |
+
[node name="node_0 6" type="RayCast3D" parent="RayCastSensor3D"]
|
66 |
target_position = Vector3(-6.91964, 0.654291, 13.2925)
|
67 |
|
68 |
+
[node name="node_0 7" type="RayCast3D" parent="RayCastSensor3D"]
|
69 |
target_position = Vector3(-6.86697, 1.95789, 13.1913)
|
70 |
|
71 |
+
[node name="node_0 8" type="RayCast3D" parent="RayCastSensor3D"]
|
72 |
target_position = Vector3(-6.76205, 3.24659, 12.9898)
|
73 |
|
74 |
+
[node name="node_0 9" type="RayCast3D" parent="RayCastSensor3D"]
|
75 |
target_position = Vector3(-6.60566, 4.51059, 12.6894)
|
76 |
|
77 |
+
[node name="node_0 10" type="RayCast3D" parent="RayCastSensor3D"]
|
78 |
target_position = Vector3(-6.399, 5.74025, 12.2924)
|
79 |
|
80 |
+
[node name="node_0 11" type="RayCast3D" parent="RayCastSensor3D"]
|
81 |
target_position = Vector3(-6.14364, 6.92623, 11.8018)
|
82 |
|
83 |
+
[node name="node_1 0" type="RayCast3D" parent="RayCastSensor3D"]
|
84 |
target_position = Vector3(-5.09167, -6.92623, 12.2924)
|
85 |
|
86 |
+
[node name="node_1 1" type="RayCast3D" parent="RayCastSensor3D"]
|
87 |
target_position = Vector3(-5.3033, -5.74025, 12.8033)
|
88 |
|
89 |
+
[node name="node_1 2" type="RayCast3D" parent="RayCastSensor3D"]
|
90 |
target_position = Vector3(-5.47458, -4.51059, 13.2168)
|
91 |
|
92 |
+
[node name="node_1 3" type="RayCast3D" parent="RayCastSensor3D"]
|
93 |
target_position = Vector3(-5.60418, -3.24659, 13.5297)
|
94 |
|
95 |
+
[node name="node_1 4" type="RayCast3D" parent="RayCastSensor3D"]
|
96 |
target_position = Vector3(-5.69114, -1.95789, 13.7396)
|
97 |
|
98 |
+
[node name="node_1 5" type="RayCast3D" parent="RayCastSensor3D"]
|
99 |
target_position = Vector3(-5.73479, -0.654291, 13.845)
|
100 |
|
101 |
+
[node name="node_1 6" type="RayCast3D" parent="RayCastSensor3D"]
|
102 |
target_position = Vector3(-5.73479, 0.654291, 13.845)
|
103 |
|
104 |
+
[node name="node_1 7" type="RayCast3D" parent="RayCastSensor3D"]
|
105 |
target_position = Vector3(-5.69114, 1.95789, 13.7396)
|
106 |
|
107 |
+
[node name="node_1 8" type="RayCast3D" parent="RayCastSensor3D"]
|
108 |
target_position = Vector3(-5.60418, 3.24659, 13.5297)
|
109 |
|
110 |
+
[node name="node_1 9" type="RayCast3D" parent="RayCastSensor3D"]
|
111 |
target_position = Vector3(-5.47458, 4.51059, 13.2168)
|
112 |
|
113 |
+
[node name="node_1 10" type="RayCast3D" parent="RayCastSensor3D"]
|
114 |
target_position = Vector3(-5.3033, 5.74025, 12.8033)
|
115 |
|
116 |
+
[node name="node_1 11" type="RayCast3D" parent="RayCastSensor3D"]
|
117 |
target_position = Vector3(-5.09167, 6.92623, 12.2924)
|
118 |
|
119 |
+
[node name="node_2 0" type="RayCast3D" parent="RayCastSensor3D"]
|
120 |
target_position = Vector3(-4.00094, -6.92623, 12.6894)
|
121 |
|
122 |
+
[node name="node_2 1" type="RayCast3D" parent="RayCastSensor3D"]
|
123 |
target_position = Vector3(-4.16724, -5.74025, 13.2168)
|
124 |
|
125 |
+
[node name="node_2 2" type="RayCast3D" parent="RayCastSensor3D"]
|
126 |
target_position = Vector3(-4.30182, -4.51059, 13.6436)
|
127 |
|
128 |
+
[node name="node_2 3" type="RayCast3D" parent="RayCastSensor3D"]
|
129 |
target_position = Vector3(-4.40367, -3.24659, 13.9667)
|
130 |
|
131 |
+
[node name="node_2 4" type="RayCast3D" parent="RayCastSensor3D"]
|
132 |
target_position = Vector3(-4.472, -1.95789, 14.1834)
|
133 |
|
134 |
+
[node name="node_2 5" type="RayCast3D" parent="RayCastSensor3D"]
|
135 |
target_position = Vector3(-4.50629, -0.654291, 14.2921)
|
136 |
|
137 |
+
[node name="node_2 6" type="RayCast3D" parent="RayCastSensor3D"]
|
138 |
target_position = Vector3(-4.50629, 0.654291, 14.2921)
|
139 |
|
140 |
+
[node name="node_2 7" type="RayCast3D" parent="RayCastSensor3D"]
|
141 |
target_position = Vector3(-4.472, 1.95789, 14.1834)
|
142 |
|
143 |
+
[node name="node_2 8" type="RayCast3D" parent="RayCastSensor3D"]
|
144 |
target_position = Vector3(-4.40367, 3.24659, 13.9667)
|
145 |
|
146 |
+
[node name="node_2 9" type="RayCast3D" parent="RayCastSensor3D"]
|
147 |
target_position = Vector3(-4.30182, 4.51059, 13.6436)
|
148 |
|
149 |
+
[node name="node_2 10" type="RayCast3D" parent="RayCastSensor3D"]
|
150 |
target_position = Vector3(-4.16724, 5.74025, 13.2168)
|
151 |
|
152 |
+
[node name="node_2 11" type="RayCast3D" parent="RayCastSensor3D"]
|
153 |
target_position = Vector3(-4.00094, 6.92623, 12.6894)
|
154 |
|
155 |
+
[node name="node_3 0" type="RayCast3D" parent="RayCastSensor3D"]
|
156 |
target_position = Vector3(-2.87976, -6.92623, 12.9898)
|
157 |
|
158 |
+
[node name="node_3 1" type="RayCast3D" parent="RayCastSensor3D"]
|
159 |
target_position = Vector3(-2.99946, -5.74025, 13.5297)
|
160 |
|
161 |
+
[node name="node_3 2" type="RayCast3D" parent="RayCastSensor3D"]
|
162 |
target_position = Vector3(-3.09633, -4.51059, 13.9667)
|
163 |
|
164 |
+
[node name="node_3 3" type="RayCast3D" parent="RayCastSensor3D"]
|
165 |
target_position = Vector3(-3.16964, -3.24659, 14.2973)
|
166 |
|
167 |
+
[node name="node_3 4" type="RayCast3D" parent="RayCastSensor3D"]
|
168 |
target_position = Vector3(-3.21882, -1.95789, 14.5192)
|
169 |
|
170 |
+
[node name="node_3 5" type="RayCast3D" parent="RayCastSensor3D"]
|
171 |
target_position = Vector3(-3.2435, -0.654291, 14.6305)
|
172 |
|
173 |
+
[node name="node_3 6" type="RayCast3D" parent="RayCastSensor3D"]
|
174 |
target_position = Vector3(-3.2435, 0.654291, 14.6305)
|
175 |
|
176 |
+
[node name="node_3 7" type="RayCast3D" parent="RayCastSensor3D"]
|
177 |
target_position = Vector3(-3.21882, 1.95789, 14.5192)
|
178 |
|
179 |
+
[node name="node_3 8" type="RayCast3D" parent="RayCastSensor3D"]
|
180 |
target_position = Vector3(-3.16964, 3.24659, 14.2973)
|
181 |
|
182 |
+
[node name="node_3 9" type="RayCast3D" parent="RayCastSensor3D"]
|
183 |
target_position = Vector3(-3.09633, 4.51059, 13.9667)
|
184 |
|
185 |
+
[node name="node_3 10" type="RayCast3D" parent="RayCastSensor3D"]
|
186 |
target_position = Vector3(-2.99946, 5.74025, 13.5297)
|
187 |
|
188 |
+
[node name="node_3 11" type="RayCast3D" parent="RayCastSensor3D"]
|
189 |
target_position = Vector3(-2.87976, 6.92623, 12.9898)
|
190 |
|
191 |
+
[node name="node_4 0" type="RayCast3D" parent="RayCastSensor3D"]
|
192 |
target_position = Vector3(-1.73667, -6.92623, 13.1913)
|
193 |
|
194 |
+
[node name="node_4 1" type="RayCast3D" parent="RayCastSensor3D"]
|
195 |
target_position = Vector3(-1.80886, -5.74025, 13.7396)
|
196 |
|
197 |
+
[node name="node_4 2" type="RayCast3D" parent="RayCastSensor3D"]
|
198 |
target_position = Vector3(-1.86728, -4.51059, 14.1834)
|
199 |
|
200 |
+
[node name="node_4 3" type="RayCast3D" parent="RayCastSensor3D"]
|
201 |
target_position = Vector3(-1.91148, -3.24659, 14.5192)
|
202 |
|
203 |
+
[node name="node_4 4" type="RayCast3D" parent="RayCastSensor3D"]
|
204 |
target_position = Vector3(-1.94114, -1.95789, 14.7444)
|
205 |
|
206 |
+
[node name="node_4 5" type="RayCast3D" parent="RayCastSensor3D"]
|
207 |
target_position = Vector3(-1.95603, -0.654291, 14.8575)
|
208 |
|
209 |
+
[node name="node_4 6" type="RayCast3D" parent="RayCastSensor3D"]
|
210 |
target_position = Vector3(-1.95603, 0.654291, 14.8575)
|
211 |
|
212 |
+
[node name="node_4 7" type="RayCast3D" parent="RayCastSensor3D"]
|
213 |
target_position = Vector3(-1.94114, 1.95789, 14.7444)
|
214 |
|
215 |
+
[node name="node_4 8" type="RayCast3D" parent="RayCastSensor3D"]
|
216 |
target_position = Vector3(-1.91148, 3.24659, 14.5192)
|
217 |
|
218 |
+
[node name="node_4 9" type="RayCast3D" parent="RayCastSensor3D"]
|
219 |
target_position = Vector3(-1.86728, 4.51059, 14.1834)
|
220 |
|
221 |
+
[node name="node_4 10" type="RayCast3D" parent="RayCastSensor3D"]
|
222 |
target_position = Vector3(-1.80886, 5.74025, 13.7396)
|
223 |
|
224 |
+
[node name="node_4 11" type="RayCast3D" parent="RayCastSensor3D"]
|
225 |
target_position = Vector3(-1.73667, 6.92623, 13.1913)
|
226 |
|
227 |
+
[node name="node_5 0" type="RayCast3D" parent="RayCastSensor3D"]
|
228 |
target_position = Vector3(-0.580363, -6.92623, 13.2925)
|
229 |
|
230 |
+
[node name="node_5 1" type="RayCast3D" parent="RayCastSensor3D"]
|
231 |
target_position = Vector3(-0.604486, -5.74025, 13.845)
|
232 |
|
233 |
+
[node name="node_5 2" type="RayCast3D" parent="RayCastSensor3D"]
|
234 |
target_position = Vector3(-0.624008, -4.51059, 14.2921)
|
235 |
|
236 |
+
[node name="node_5 3" type="RayCast3D" parent="RayCastSensor3D"]
|
237 |
target_position = Vector3(-0.638781, -3.24659, 14.6305)
|
238 |
|
239 |
+
[node name="node_5 4" type="RayCast3D" parent="RayCastSensor3D"]
|
240 |
target_position = Vector3(-0.648693, -1.95789, 14.8575)
|
241 |
|
242 |
+
[node name="node_5 5" type="RayCast3D" parent="RayCastSensor3D"]
|
243 |
target_position = Vector3(-0.653668, -0.654291, 14.9715)
|
244 |
|
245 |
+
[node name="node_5 6" type="RayCast3D" parent="RayCastSensor3D"]
|
246 |
target_position = Vector3(-0.653668, 0.654291, 14.9715)
|
247 |
|
248 |
+
[node name="node_5 7" type="RayCast3D" parent="RayCastSensor3D"]
|
249 |
target_position = Vector3(-0.648693, 1.95789, 14.8575)
|
250 |
|
251 |
+
[node name="node_5 8" type="RayCast3D" parent="RayCastSensor3D"]
|
252 |
target_position = Vector3(-0.638781, 3.24659, 14.6305)
|
253 |
|
254 |
+
[node name="node_5 9" type="RayCast3D" parent="RayCastSensor3D"]
|
255 |
target_position = Vector3(-0.624008, 4.51059, 14.2921)
|
256 |
|
257 |
+
[node name="node_5 10" type="RayCast3D" parent="RayCastSensor3D"]
|
258 |
target_position = Vector3(-0.604486, 5.74025, 13.845)
|
259 |
|
260 |
+
[node name="node_5 11" type="RayCast3D" parent="RayCastSensor3D"]
|
261 |
target_position = Vector3(-0.580363, 6.92623, 13.2925)
|
262 |
|
263 |
+
[node name="node_6 0" type="RayCast3D" parent="RayCastSensor3D"]
|
264 |
target_position = Vector3(0.580363, -6.92623, 13.2925)
|
265 |
|
266 |
+
[node name="node_6 1" type="RayCast3D" parent="RayCastSensor3D"]
|
267 |
target_position = Vector3(0.604486, -5.74025, 13.845)
|
268 |
|
269 |
+
[node name="node_6 2" type="RayCast3D" parent="RayCastSensor3D"]
|
270 |
target_position = Vector3(0.624008, -4.51059, 14.2921)
|
271 |
|
272 |
+
[node name="node_6 3" type="RayCast3D" parent="RayCastSensor3D"]
|
273 |
target_position = Vector3(0.638781, -3.24659, 14.6305)
|
274 |
|
275 |
+
[node name="node_6 4" type="RayCast3D" parent="RayCastSensor3D"]
|
276 |
target_position = Vector3(0.648693, -1.95789, 14.8575)
|
277 |
|
278 |
+
[node name="node_6 5" type="RayCast3D" parent="RayCastSensor3D"]
|
279 |
target_position = Vector3(0.653668, -0.654291, 14.9715)
|
280 |
|
281 |
+
[node name="node_6 6" type="RayCast3D" parent="RayCastSensor3D"]
|
282 |
target_position = Vector3(0.653668, 0.654291, 14.9715)
|
283 |
|
284 |
+
[node name="node_6 7" type="RayCast3D" parent="RayCastSensor3D"]
|
285 |
target_position = Vector3(0.648693, 1.95789, 14.8575)
|
286 |
|
287 |
+
[node name="node_6 8" type="RayCast3D" parent="RayCastSensor3D"]
|
288 |
target_position = Vector3(0.638781, 3.24659, 14.6305)
|
289 |
|
290 |
+
[node name="node_6 9" type="RayCast3D" parent="RayCastSensor3D"]
|
291 |
target_position = Vector3(0.624008, 4.51059, 14.2921)
|
292 |
|
293 |
+
[node name="node_6 10" type="RayCast3D" parent="RayCastSensor3D"]
|
294 |
target_position = Vector3(0.604486, 5.74025, 13.845)
|
295 |
|
296 |
+
[node name="node_6 11" type="RayCast3D" parent="RayCastSensor3D"]
|
297 |
target_position = Vector3(0.580363, 6.92623, 13.2925)
|
298 |
|
299 |
+
[node name="node_7 0" type="RayCast3D" parent="RayCastSensor3D"]
|
300 |
target_position = Vector3(1.73667, -6.92623, 13.1913)
|
301 |
|
302 |
+
[node name="node_7 1" type="RayCast3D" parent="RayCastSensor3D"]
|
303 |
target_position = Vector3(1.80886, -5.74025, 13.7396)
|
304 |
|
305 |
+
[node name="node_7 2" type="RayCast3D" parent="RayCastSensor3D"]
|
306 |
target_position = Vector3(1.86728, -4.51059, 14.1834)
|
307 |
|
308 |
+
[node name="node_7 3" type="RayCast3D" parent="RayCastSensor3D"]
|
309 |
target_position = Vector3(1.91148, -3.24659, 14.5192)
|
310 |
|
311 |
+
[node name="node_7 4" type="RayCast3D" parent="RayCastSensor3D"]
|
312 |
target_position = Vector3(1.94114, -1.95789, 14.7444)
|
313 |
|
314 |
+
[node name="node_7 5" type="RayCast3D" parent="RayCastSensor3D"]
|
315 |
target_position = Vector3(1.95603, -0.654291, 14.8575)
|
316 |
|
317 |
+
[node name="node_7 6" type="RayCast3D" parent="RayCastSensor3D"]
|
318 |
target_position = Vector3(1.95603, 0.654291, 14.8575)
|
319 |
|
320 |
+
[node name="node_7 7" type="RayCast3D" parent="RayCastSensor3D"]
|
321 |
target_position = Vector3(1.94114, 1.95789, 14.7444)
|
322 |
|
323 |
+
[node name="node_7 8" type="RayCast3D" parent="RayCastSensor3D"]
|
324 |
target_position = Vector3(1.91148, 3.24659, 14.5192)
|
325 |
|
326 |
+
[node name="node_7 9" type="RayCast3D" parent="RayCastSensor3D"]
|
327 |
target_position = Vector3(1.86728, 4.51059, 14.1834)
|
328 |
|
329 |
+
[node name="node_7 10" type="RayCast3D" parent="RayCastSensor3D"]
|
330 |
target_position = Vector3(1.80886, 5.74025, 13.7396)
|
331 |
|
332 |
+
[node name="node_7 11" type="RayCast3D" parent="RayCastSensor3D"]
|
333 |
target_position = Vector3(1.73667, 6.92623, 13.1913)
|
334 |
|
335 |
+
[node name="node_8 0" type="RayCast3D" parent="RayCastSensor3D"]
|
336 |
target_position = Vector3(2.87976, -6.92623, 12.9898)
|
337 |
|
338 |
+
[node name="node_8 1" type="RayCast3D" parent="RayCastSensor3D"]
|
339 |
target_position = Vector3(2.99946, -5.74025, 13.5297)
|
340 |
|
341 |
+
[node name="node_8 2" type="RayCast3D" parent="RayCastSensor3D"]
|
342 |
target_position = Vector3(3.09633, -4.51059, 13.9667)
|
343 |
|
344 |
+
[node name="node_8 3" type="RayCast3D" parent="RayCastSensor3D"]
|
345 |
target_position = Vector3(3.16964, -3.24659, 14.2973)
|
346 |
|
347 |
+
[node name="node_8 4" type="RayCast3D" parent="RayCastSensor3D"]
|
348 |
target_position = Vector3(3.21882, -1.95789, 14.5192)
|
349 |
|
350 |
+
[node name="node_8 5" type="RayCast3D" parent="RayCastSensor3D"]
|
351 |
target_position = Vector3(3.2435, -0.654291, 14.6305)
|
352 |
|
353 |
+
[node name="node_8 6" type="RayCast3D" parent="RayCastSensor3D"]
|
354 |
target_position = Vector3(3.2435, 0.654291, 14.6305)
|
355 |
|
356 |
+
[node name="node_8 7" type="RayCast3D" parent="RayCastSensor3D"]
|
357 |
target_position = Vector3(3.21882, 1.95789, 14.5192)
|
358 |
|
359 |
+
[node name="node_8 8" type="RayCast3D" parent="RayCastSensor3D"]
|
360 |
target_position = Vector3(3.16964, 3.24659, 14.2973)
|
361 |
|
362 |
+
[node name="node_8 9" type="RayCast3D" parent="RayCastSensor3D"]
|
363 |
target_position = Vector3(3.09633, 4.51059, 13.9667)
|
364 |
|
365 |
+
[node name="node_8 10" type="RayCast3D" parent="RayCastSensor3D"]
|
366 |
target_position = Vector3(2.99946, 5.74025, 13.5297)
|
367 |
|
368 |
+
[node name="node_8 11" type="RayCast3D" parent="RayCastSensor3D"]
|
369 |
target_position = Vector3(2.87976, 6.92623, 12.9898)
|
370 |
|
371 |
+
[node name="node_9 0" type="RayCast3D" parent="RayCastSensor3D"]
|
372 |
target_position = Vector3(4.00094, -6.92623, 12.6894)
|
373 |
|
374 |
+
[node name="node_9 1" type="RayCast3D" parent="RayCastSensor3D"]
|
375 |
target_position = Vector3(4.16724, -5.74025, 13.2168)
|
376 |
|
377 |
+
[node name="node_9 2" type="RayCast3D" parent="RayCastSensor3D"]
|
378 |
target_position = Vector3(4.30182, -4.51059, 13.6436)
|
379 |
|
380 |
+
[node name="node_9 3" type="RayCast3D" parent="RayCastSensor3D"]
|
381 |
target_position = Vector3(4.40367, -3.24659, 13.9667)
|
382 |
|
383 |
+
[node name="node_9 4" type="RayCast3D" parent="RayCastSensor3D"]
|
384 |
target_position = Vector3(4.472, -1.95789, 14.1834)
|
385 |
|
386 |
+
[node name="node_9 5" type="RayCast3D" parent="RayCastSensor3D"]
|
387 |
target_position = Vector3(4.50629, -0.654291, 14.2921)
|
388 |
|
389 |
+
[node name="node_9 6" type="RayCast3D" parent="RayCastSensor3D"]
|
390 |
target_position = Vector3(4.50629, 0.654291, 14.2921)
|
391 |
|
392 |
+
[node name="node_9 7" type="RayCast3D" parent="RayCastSensor3D"]
|
393 |
target_position = Vector3(4.472, 1.95789, 14.1834)
|
394 |
|
395 |
+
[node name="node_9 8" type="RayCast3D" parent="RayCastSensor3D"]
|
396 |
target_position = Vector3(4.40367, 3.24659, 13.9667)
|
397 |
|
398 |
+
[node name="node_9 9" type="RayCast3D" parent="RayCastSensor3D"]
|
399 |
target_position = Vector3(4.30182, 4.51059, 13.6436)
|
400 |
|
401 |
+
[node name="node_9 10" type="RayCast3D" parent="RayCastSensor3D"]
|
402 |
target_position = Vector3(4.16724, 5.74025, 13.2168)
|
403 |
|
404 |
+
[node name="node_9 11" type="RayCast3D" parent="RayCastSensor3D"]
|
405 |
target_position = Vector3(4.00094, 6.92623, 12.6894)
|
406 |
|
407 |
+
[node name="node_10 0" type="RayCast3D" parent="RayCastSensor3D"]
|
408 |
target_position = Vector3(5.09167, -6.92623, 12.2924)
|
409 |
|
410 |
+
[node name="node_10 1" type="RayCast3D" parent="RayCastSensor3D"]
|
411 |
target_position = Vector3(5.3033, -5.74025, 12.8033)
|
412 |
|
413 |
+
[node name="node_10 2" type="RayCast3D" parent="RayCastSensor3D"]
|
414 |
target_position = Vector3(5.47458, -4.51059, 13.2168)
|
415 |
|
416 |
+
[node name="node_10 3" type="RayCast3D" parent="RayCastSensor3D"]
|
417 |
target_position = Vector3(5.60418, -3.24659, 13.5297)
|
418 |
|
419 |
+
[node name="node_10 4" type="RayCast3D" parent="RayCastSensor3D"]
|
420 |
target_position = Vector3(5.69114, -1.95789, 13.7396)
|
421 |
|
422 |
+
[node name="node_10 5" type="RayCast3D" parent="RayCastSensor3D"]
|
423 |
target_position = Vector3(5.73479, -0.654291, 13.845)
|
424 |
|
425 |
+
[node name="node_10 6" type="RayCast3D" parent="RayCastSensor3D"]
|
426 |
target_position = Vector3(5.73479, 0.654291, 13.845)
|
427 |
|
428 |
+
[node name="node_10 7" type="RayCast3D" parent="RayCastSensor3D"]
|
429 |
target_position = Vector3(5.69114, 1.95789, 13.7396)
|
430 |
|
431 |
+
[node name="node_10 8" type="RayCast3D" parent="RayCastSensor3D"]
|
432 |
target_position = Vector3(5.60418, 3.24659, 13.5297)
|
433 |
|
434 |
+
[node name="node_10 9" type="RayCast3D" parent="RayCastSensor3D"]
|
435 |
target_position = Vector3(5.47458, 4.51059, 13.2168)
|
436 |
|
437 |
+
[node name="node_10 10" type="RayCast3D" parent="RayCastSensor3D"]
|
438 |
target_position = Vector3(5.3033, 5.74025, 12.8033)
|
439 |
|
440 |
+
[node name="node_10 11" type="RayCast3D" parent="RayCastSensor3D"]
|
441 |
target_position = Vector3(5.09167, 6.92623, 12.2924)
|
442 |
|
443 |
+
[node name="node_11 0" type="RayCast3D" parent="RayCastSensor3D"]
|
444 |
target_position = Vector3(6.14364, -6.92623, 11.8018)
|
445 |
|
446 |
+
[node name="node_11 1" type="RayCast3D" parent="RayCastSensor3D"]
|
447 |
target_position = Vector3(6.399, -5.74025, 12.2924)
|
448 |
|
449 |
+
[node name="node_11 2" type="RayCast3D" parent="RayCastSensor3D"]
|
450 |
target_position = Vector3(6.60566, -4.51059, 12.6894)
|
451 |
|
452 |
+
[node name="node_11 3" type="RayCast3D" parent="RayCastSensor3D"]
|
453 |
target_position = Vector3(6.76205, -3.24659, 12.9898)
|
454 |
|
455 |
+
[node name="node_11 4" type="RayCast3D" parent="RayCastSensor3D"]
|
456 |
target_position = Vector3(6.86697, -1.95789, 13.1913)
|
457 |
|
458 |
+
[node name="node_11 5" type="RayCast3D" parent="RayCastSensor3D"]
|
459 |
target_position = Vector3(6.91964, -0.654291, 13.2925)
|
460 |
|
461 |
+
[node name="node_11 6" type="RayCast3D" parent="RayCastSensor3D"]
|
462 |
target_position = Vector3(6.91964, 0.654291, 13.2925)
|
463 |
|
464 |
+
[node name="node_11 7" type="RayCast3D" parent="RayCastSensor3D"]
|
465 |
target_position = Vector3(6.86697, 1.95789, 13.1913)
|
466 |
|
467 |
+
[node name="node_11 8" type="RayCast3D" parent="RayCastSensor3D"]
|
468 |
target_position = Vector3(6.76205, 3.24659, 12.9898)
|
469 |
|
470 |
+
[node name="node_11 9" type="RayCast3D" parent="RayCastSensor3D"]
|
471 |
target_position = Vector3(6.60566, 4.51059, 12.6894)
|
472 |
|
473 |
+
[node name="node_11 10" type="RayCast3D" parent="RayCastSensor3D"]
|
474 |
target_position = Vector3(6.399, 5.74025, 12.2924)
|
475 |
|
476 |
+
[node name="node_11 11" type="RayCast3D" parent="RayCastSensor3D"]
|
477 |
target_position = Vector3(6.14364, 6.92623, 11.8018)
|
478 |
|
479 |
[node name="Robot" parent="." instance=ExtResource("3_pt6ta")]
|
addons/godot_rl_agents/controller/ai_controller.gd
ADDED
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
extends Node
|
2 |
+
class_name AIController
|
3 |
+
|
4 |
+
# ------------------ Godot RL Agents Logic ------------------------------------#
|
5 |
+
@export var reset_after := 1000
|
6 |
+
|
7 |
+
var heuristic := "human"
|
8 |
+
var done := false
|
9 |
+
var reward := 0.0
|
10 |
+
var n_steps := 0
|
11 |
+
|
12 |
+
var needs_reset := false
|
13 |
+
|
14 |
+
func _ready():
|
15 |
+
add_to_group("AGENT")
|
16 |
+
|
17 |
+
#-- Methods that need implementing using the "extend script" option in Godot --#
|
18 |
+
func get_obs() -> Dictionary:
|
19 |
+
assert(false, "the get_obs method is not implemented when extending from ai_controller")
|
20 |
+
return {"obs":[]}
|
21 |
+
|
22 |
+
func get_reward() -> float:
|
23 |
+
assert(false, "the get_reward method is not implemented when extending from ai_controller")
|
24 |
+
return 0.0
|
25 |
+
|
26 |
+
func get_action_space() -> Dictionary:
|
27 |
+
assert(false, "the get get_action_space method is not implemented when extending from ai_controller")
|
28 |
+
return {
|
29 |
+
"example_actions_continous" : {
|
30 |
+
"size": 2,
|
31 |
+
"action_type": "continuous"
|
32 |
+
},
|
33 |
+
"example_actions_discrete" : {
|
34 |
+
"size": 2,
|
35 |
+
"action_type": "discrete"
|
36 |
+
},
|
37 |
+
}
|
38 |
+
|
39 |
+
func set_action(action) -> void:
|
40 |
+
assert(false, "the get set_action method is not implemented when extending from ai_controller")
|
41 |
+
# -----------------------------------------------------------------------------#
|
42 |
+
|
43 |
+
func _physics_process(delta):
|
44 |
+
n_steps += 1
|
45 |
+
if n_steps > reset_after:
|
46 |
+
needs_reset = true
|
47 |
+
|
48 |
+
func get_obs_space():
|
49 |
+
# may need overriding if the obs space is complex
|
50 |
+
var obs = get_obs()
|
51 |
+
return {
|
52 |
+
"obs": {
|
53 |
+
"size": [len(obs["obs"])],
|
54 |
+
"space": "box"
|
55 |
+
},
|
56 |
+
}
|
57 |
+
|
58 |
+
func reset():
|
59 |
+
n_steps = 0
|
60 |
+
needs_reset = false
|
61 |
+
|
62 |
+
func reset_if_done():
|
63 |
+
if done:
|
64 |
+
reset()
|
65 |
+
|
66 |
+
func set_heuristic(h):
|
67 |
+
# sets the heuristic from "human" or "model" nothing to change here
|
68 |
+
heuristic = h
|
69 |
+
|
70 |
+
func get_done():
|
71 |
+
return done
|
72 |
+
|
73 |
+
func set_done_false():
|
74 |
+
done = false
|
75 |
+
|
76 |
+
func zero_reward():
|
77 |
+
reward = 0.0
|
addons/godot_rl_agents/controller/ai_controller_2d.gd
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
extends AIController
|
2 |
+
class_name AIController2D
|
3 |
+
|
4 |
+
# ------------------ Godot RL Agents Logic ------------------------------------#
|
5 |
+
var _player: Node2D
|
6 |
+
|
7 |
+
func init(player: Node2D):
|
8 |
+
_player = player
|
addons/godot_rl_agents/controller/ai_controller_3d.gd
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
extends AIController
|
2 |
+
class_name AIController3D
|
3 |
+
|
4 |
+
# ------------------ Godot RL Agents Logic ------------------------------------#
|
5 |
+
var _player: Node3D
|
6 |
+
|
7 |
+
func init(player: Node3D):
|
8 |
+
_player = player
|
addons/godot_rl_agents/icon.png.import
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
importer="texture"
|
4 |
type="CompressedTexture2D"
|
5 |
-
uid="uid://
|
6 |
path="res://.godot/imported/icon.png-45a871b53434e556222f5901d598ab34.ctex"
|
7 |
metadata={
|
8 |
"vram_texture": false
|
@@ -16,9 +16,9 @@ dest_files=["res://.godot/imported/icon.png-45a871b53434e556222f5901d598ab34.cte
|
|
16 |
[params]
|
17 |
|
18 |
compress/mode=0
|
|
|
19 |
compress/lossy_quality=0.7
|
20 |
compress/hdr_compression=1
|
21 |
-
compress/bptc_ldr=0
|
22 |
compress/normal_map=0
|
23 |
compress/channel_pack=0
|
24 |
mipmaps/generate=false
|
|
|
2 |
|
3 |
importer="texture"
|
4 |
type="CompressedTexture2D"
|
5 |
+
uid="uid://dn7mfntm1bfv4"
|
6 |
path="res://.godot/imported/icon.png-45a871b53434e556222f5901d598ab34.ctex"
|
7 |
metadata={
|
8 |
"vram_texture": false
|
|
|
16 |
[params]
|
17 |
|
18 |
compress/mode=0
|
19 |
+
compress/high_quality=false
|
20 |
compress/lossy_quality=0.7
|
21 |
compress/hdr_compression=1
|
|
|
22 |
compress/normal_map=0
|
23 |
compress/channel_pack=0
|
24 |
mipmaps/generate=false
|
addons/godot_rl_agents/onnx/csharp/ONNXInference.cs
ADDED
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
using Godot;
|
2 |
+
using System.Collections.Generic;
|
3 |
+
using System.Linq;
|
4 |
+
using Microsoft.ML.OnnxRuntime;
|
5 |
+
using Microsoft.ML.OnnxRuntime.Tensors;
|
6 |
+
|
7 |
+
namespace GodotONNX{
|
8 |
+
/// <include file='docs/ONNXInference.xml' path='docs/members[@name="ONNXInference"]/ONNXInference/*'/>
|
9 |
+
public partial class ONNXInference : Node
|
10 |
+
{
|
11 |
+
|
12 |
+
private InferenceSession session;
|
13 |
+
/// <summary>
|
14 |
+
/// Path to the ONNX model. Use Initialize to change it.
|
15 |
+
/// </summary>
|
16 |
+
private string modelPath;
|
17 |
+
private int batchSize;
|
18 |
+
|
19 |
+
private SessionOptions SessionOpt;
|
20 |
+
|
21 |
+
//init function
|
22 |
+
/// <include file='docs/ONNXInference.xml' path='docs/members[@name="ONNXInference"]/Initialize/*'/>
|
23 |
+
public void Initialize(string Path, int BatchSize)
|
24 |
+
{
|
25 |
+
modelPath = Path;
|
26 |
+
batchSize = BatchSize;
|
27 |
+
SessionConfigurator.SystemCheck();
|
28 |
+
SessionOpt = SessionConfigurator.GetSessionOptions();
|
29 |
+
session = LoadModel(modelPath);
|
30 |
+
|
31 |
+
}
|
32 |
+
/// <include file='docs/ONNXInference.xml' path='docs/members[@name="ONNXInference"]/Run/*'/>
|
33 |
+
public Godot.Collections.Dictionary<string, Godot.Collections.Array<float>> RunInference(Godot.Collections.Array<float> obs, int state_ins)
|
34 |
+
{
|
35 |
+
//Current model: Any (Godot Rl Agents)
|
36 |
+
//Expects a tensor of shape [batch_size, input_size] type float named obs and a tensor of shape [batch_size] type float named state_ins
|
37 |
+
|
38 |
+
//Fill the input tensors
|
39 |
+
// create span from inputSize
|
40 |
+
var span = new float[obs.Count]; //There's probably a better way to do this
|
41 |
+
for (int i = 0; i < obs.Count; i++)
|
42 |
+
{
|
43 |
+
span[i] = obs[i];
|
44 |
+
}
|
45 |
+
|
46 |
+
IReadOnlyCollection<NamedOnnxValue> inputs = new List<NamedOnnxValue>
|
47 |
+
{
|
48 |
+
NamedOnnxValue.CreateFromTensor("obs", new DenseTensor<float>(span, new int[] { batchSize, obs.Count })),
|
49 |
+
NamedOnnxValue.CreateFromTensor("state_ins", new DenseTensor<float>(new float[] { state_ins }, new int[] { batchSize }))
|
50 |
+
};
|
51 |
+
IReadOnlyCollection<string> outputNames = new List<string> { "output", "state_outs" }; //ONNX is sensible to these names, as well as the input names
|
52 |
+
|
53 |
+
IDisposableReadOnlyCollection<DisposableNamedOnnxValue> results;
|
54 |
+
|
55 |
+
try{
|
56 |
+
results = session.Run(inputs, outputNames);
|
57 |
+
}
|
58 |
+
catch (OnnxRuntimeException e) {
|
59 |
+
//This error usually means that the model is not compatible with the input, beacause of the input shape (size)
|
60 |
+
GD.Print("Error at inference: ", e);
|
61 |
+
return null;
|
62 |
+
}
|
63 |
+
//Can't convert IEnumerable<float> to Variant, so we have to convert it to an array or something
|
64 |
+
Godot.Collections.Dictionary<string, Godot.Collections.Array<float>> output = new Godot.Collections.Dictionary<string, Godot.Collections.Array<float>>();
|
65 |
+
DisposableNamedOnnxValue output1 = results.First();
|
66 |
+
DisposableNamedOnnxValue output2 = results.Last();
|
67 |
+
Godot.Collections.Array<float> output1Array = new Godot.Collections.Array<float>();
|
68 |
+
Godot.Collections.Array<float> output2Array = new Godot.Collections.Array<float>();
|
69 |
+
|
70 |
+
foreach (float f in output1.AsEnumerable<float>()) {
|
71 |
+
output1Array.Add(f);
|
72 |
+
}
|
73 |
+
|
74 |
+
foreach (float f in output2.AsEnumerable<float>()) {
|
75 |
+
output2Array.Add(f);
|
76 |
+
}
|
77 |
+
|
78 |
+
output.Add(output1.Name, output1Array);
|
79 |
+
output.Add(output2.Name, output2Array);
|
80 |
+
|
81 |
+
//Output is a dictionary of arrays, ex: { "output" : [0.1, 0.2, 0.3, 0.4, ...], "state_outs" : [0.5, ...]}
|
82 |
+
return output;
|
83 |
+
}
|
84 |
+
/// <include file='docs/ONNXInference.xml' path='docs/members[@name="ONNXInference"]/Load/*'/>
|
85 |
+
public InferenceSession LoadModel(string Path)
|
86 |
+
{
|
87 |
+
Godot.FileAccess file = FileAccess.Open(Path, Godot.FileAccess.ModeFlags.Read);
|
88 |
+
byte[] model = file.GetBuffer((int)file.GetLength());
|
89 |
+
file.Close();
|
90 |
+
return new InferenceSession(model, SessionOpt); //Load the model
|
91 |
+
}
|
92 |
+
}
|
93 |
+
}
|
addons/godot_rl_agents/onnx/csharp/SessionConfigurator.cs
ADDED
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
using Godot;
|
2 |
+
using Microsoft.ML.OnnxRuntime;
|
3 |
+
|
4 |
+
namespace GodotONNX{
|
5 |
+
/// <include file='docs/SessionConfigurator.xml' path='docs/members[@name="SessionConfigurator"]/SessionConfigurator/*'/>
|
6 |
+
|
7 |
+
public static class SessionConfigurator {
|
8 |
+
|
9 |
+
private static SessionOptions options = new SessionOptions();
|
10 |
+
|
11 |
+
/// <include file='docs/SessionConfigurator.xml' path='docs/members[@name="SessionConfigurator"]/GetSessionOptions/*'/>
|
12 |
+
public static SessionOptions GetSessionOptions() {
|
13 |
+
options = new SessionOptions();
|
14 |
+
options.LogSeverityLevel = OrtLoggingLevel.ORT_LOGGING_LEVEL_WARNING;
|
15 |
+
// see warnings
|
16 |
+
SystemCheck();
|
17 |
+
return options;
|
18 |
+
}
|
19 |
+
/// <include file='docs/SessionConfigurator.xml' path='docs/members[@name="SessionConfigurator"]/SystemCheck/*'/>
|
20 |
+
|
21 |
+
static public void SystemCheck()
|
22 |
+
{
|
23 |
+
//Most code for this function is verbose only, the only reason it exists is to track
|
24 |
+
//implementation progress of the different compute APIs.
|
25 |
+
|
26 |
+
//December 2022: CUDA is not working.
|
27 |
+
|
28 |
+
string OSName = OS.GetName(); //Get OS Name
|
29 |
+
int ComputeAPIID = ComputeCheck(); //Get Compute API
|
30 |
+
//TODO: Get CPU architecture
|
31 |
+
|
32 |
+
//Linux can use OpenVINO (C#) on x64 and ROCm on x86 (GDNative/C++)
|
33 |
+
//Windows can use OpenVINO (C#) on x64
|
34 |
+
//TODO: try TensorRT instead of CUDA
|
35 |
+
//TODO: Use OpenVINO for Intel Graphics
|
36 |
+
|
37 |
+
string [] ComputeNames = {"CUDA", "DirectML/ROCm", "DirectML", "CoreML", "CPU"};
|
38 |
+
//match OS and Compute API
|
39 |
+
options.AppendExecutionProvider_CPU(0); // Always use CPU
|
40 |
+
GD.Print("OS: " + OSName, " | Compute API: " + ComputeNames[ComputeAPIID]);
|
41 |
+
|
42 |
+
switch (OSName)
|
43 |
+
{
|
44 |
+
case "Windows": //Can use CUDA, DirectML
|
45 |
+
if (ComputeAPIID == 0)
|
46 |
+
{
|
47 |
+
//CUDA
|
48 |
+
//options.AppendExecutionProvider_CUDA(0);
|
49 |
+
options.AppendExecutionProvider_DML(0);
|
50 |
+
}
|
51 |
+
else if (ComputeAPIID == 1)
|
52 |
+
{
|
53 |
+
//DirectML
|
54 |
+
options.AppendExecutionProvider_DML(0);
|
55 |
+
}
|
56 |
+
break;
|
57 |
+
case "X11": //Can use CUDA, ROCm
|
58 |
+
if (ComputeAPIID == 0)
|
59 |
+
{
|
60 |
+
//CUDA
|
61 |
+
//options.AppendExecutionProvider_CUDA(0);
|
62 |
+
}
|
63 |
+
if (ComputeAPIID == 1)
|
64 |
+
{
|
65 |
+
//ROCm, only works on x86
|
66 |
+
//Research indicates that this has to be compiled as a GDNative plugin
|
67 |
+
GD.Print("ROCm not supported yet, using CPU.");
|
68 |
+
options.AppendExecutionProvider_CPU(0);
|
69 |
+
}
|
70 |
+
|
71 |
+
break;
|
72 |
+
case "OSX": //Can use CoreML
|
73 |
+
if (ComputeAPIID == 0) { //CoreML
|
74 |
+
//TODO: Needs testing
|
75 |
+
options.AppendExecutionProvider_CoreML(0);
|
76 |
+
//CoreML on ARM64, out of the box, on x64 needs .tar file from GitHub
|
77 |
+
}
|
78 |
+
break;
|
79 |
+
default:
|
80 |
+
GD.Print("OS not Supported.");
|
81 |
+
break;
|
82 |
+
}
|
83 |
+
}
|
84 |
+
/// <include file='docs/SessionConfigurator.xml' path='docs/members[@name="SessionConfigurator"]/ComputeCheck/*'/>
|
85 |
+
|
86 |
+
public static int ComputeCheck()
|
87 |
+
{
|
88 |
+
string adapterName = Godot.RenderingServer.GetVideoAdapterName();
|
89 |
+
//string adapterVendor = Godot.RenderingServer.GetVideoAdapterVendor();
|
90 |
+
adapterName = adapterName.ToUpper(new System.Globalization.CultureInfo(""));
|
91 |
+
//TODO: GPU vendors for MacOS, what do they even use these days?
|
92 |
+
if (adapterName.Contains("INTEL")) {
|
93 |
+
//Return 2, should use DirectML only
|
94 |
+
return 2;}
|
95 |
+
if (adapterName.Contains("AMD")) {
|
96 |
+
//Return 1, should use DirectML, check later for ROCm
|
97 |
+
return 1;}
|
98 |
+
if (adapterName.Contains("NVIDIA")){
|
99 |
+
//Return 0, should use CUDA
|
100 |
+
return 0;}
|
101 |
+
|
102 |
+
GD.Print("Graphics Card not recognized."); //Return -1, should use CPU
|
103 |
+
return -1;
|
104 |
+
}
|
105 |
+
}
|
106 |
+
}
|
addons/godot_rl_agents/onnx/csharp/docs/ONNXInference.xml
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<docs>
|
2 |
+
<members name="ONNXInference">
|
3 |
+
<ONNXInference>
|
4 |
+
<summary>
|
5 |
+
The main <c>ONNXInference</c> Class that handles the inference process.
|
6 |
+
</summary>
|
7 |
+
</ONNXInference>
|
8 |
+
<Initialize>
|
9 |
+
<summary>
|
10 |
+
Starts the inference process.
|
11 |
+
</summary>
|
12 |
+
<param name="Path">Path to the ONNX model, expects a path inside resources.</param>
|
13 |
+
<param name="BatchSize">How many observations will the model recieve.</param>
|
14 |
+
</Initialize>
|
15 |
+
<Run>
|
16 |
+
<summary>
|
17 |
+
Runs the given input through the model and returns the output.
|
18 |
+
</summary>
|
19 |
+
<param name="obs">Dictionary containing all observations.</param>
|
20 |
+
<param name="state_ins">How many different agents are creating these observations.</param>
|
21 |
+
<returns>A Dictionary of arrays, containing instructions based on the observations.</returns>
|
22 |
+
</Run>
|
23 |
+
<Load>
|
24 |
+
<summary>
|
25 |
+
Loads the given model into the inference process, using the best Execution provider available.
|
26 |
+
</summary>
|
27 |
+
<param name="Path">Path to the ONNX model, expects a path inside resources.</param>
|
28 |
+
<returns>InferenceSession ready to run.</returns>
|
29 |
+
</Load>
|
30 |
+
</members>
|
31 |
+
</docs>
|
addons/godot_rl_agents/onnx/csharp/docs/SessionConfigurator.xml
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<docs>
|
2 |
+
<members name="SessionConfigurator">
|
3 |
+
<SessionConfigurator>
|
4 |
+
<summary>
|
5 |
+
The main <c>SessionConfigurator</c> Class that handles the execution options and providers for the inference process.
|
6 |
+
</summary>
|
7 |
+
</SessionConfigurator>
|
8 |
+
<GetSessionOptions>
|
9 |
+
<summary>
|
10 |
+
Creates a SessionOptions with all available execution providers.
|
11 |
+
</summary>
|
12 |
+
<returns>SessionOptions with all available execution providers.</returns>
|
13 |
+
</GetSessionOptions>
|
14 |
+
<SystemCheck>
|
15 |
+
<summary>
|
16 |
+
Appends any execution provider available in the current system.
|
17 |
+
</summary>
|
18 |
+
<remarks>
|
19 |
+
This function is mainly verbose for tracking implementation progress of different compute APIs.
|
20 |
+
</remarks>
|
21 |
+
</SystemCheck>
|
22 |
+
<ComputeCheck>
|
23 |
+
<summary>
|
24 |
+
Checks for available GPUs.
|
25 |
+
</summary>
|
26 |
+
<returns>An integer identifier for each compute platform.</returns>
|
27 |
+
</ComputeCheck>
|
28 |
+
</members>
|
29 |
+
</docs>
|
addons/godot_rl_agents/onnx/wrapper/ONNX_wrapper.gd
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
extends Node
|
2 |
+
class_name ONNXModel
|
3 |
+
var inferencer_script = load("res://addons/godot_rl_agents/onnx/csharp/ONNXInference.cs")
|
4 |
+
|
5 |
+
var inferencer = null
|
6 |
+
|
7 |
+
# Must provide the path to the model and the batch size
|
8 |
+
func _init(model_path, batch_size):
|
9 |
+
inferencer = inferencer_script.new()
|
10 |
+
inferencer.Initialize(model_path, batch_size)
|
11 |
+
|
12 |
+
# This function is the one that will be called from the game,
|
13 |
+
# requires the observation as an array and the state_ins as an int
|
14 |
+
# returns an Array containing the action the model takes.
|
15 |
+
func run_inference(obs : Array, state_ins : int) -> Dictionary:
|
16 |
+
if inferencer == null:
|
17 |
+
printerr("Inferencer not initialized")
|
18 |
+
return {}
|
19 |
+
return inferencer.RunInference(obs, state_ins)
|
addons/godot_rl_agents/sensors/sensors_2d/ExampleRaycastSensor2D.tscn
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
-
[gd_scene load_steps=5 format=
|
2 |
|
3 |
-
[ext_resource path="res://sensors/sensors_2d/RaycastSensor2D.gd"
|
4 |
|
5 |
-
[sub_resource type="GDScript" id=2]
|
6 |
script/source = "extends Node2D
|
7 |
|
8 |
|
@@ -12,7 +12,7 @@ func _physics_process(delta: float) -> void:
|
|
12 |
|
13 |
"
|
14 |
|
15 |
-
[sub_resource type="GDScript" id=1]
|
16 |
script/source = "extends RayCast2D
|
17 |
|
18 |
var steps = 1
|
@@ -26,23 +26,23 @@ func _physics_process(delta: float) -> void:
|
|
26 |
print(is_colliding())
|
27 |
"
|
28 |
|
29 |
-
[sub_resource type="CircleShape2D" id=3]
|
30 |
|
31 |
[node name="ExampleRaycastSensor2D" type="Node2D"]
|
32 |
-
script = SubResource(
|
33 |
|
34 |
[node name="ExampleAgent" type="Node2D" parent="."]
|
35 |
-
position = Vector2(
|
36 |
rotation = 0.286234
|
37 |
|
38 |
[node name="RaycastSensor2D" type="Node2D" parent="ExampleAgent"]
|
39 |
-
script = ExtResource(
|
40 |
|
41 |
[node name="TestRayCast2D" type="RayCast2D" parent="."]
|
42 |
-
script = SubResource(
|
43 |
|
44 |
[node name="StaticBody2D" type="StaticBody2D" parent="."]
|
45 |
-
position = Vector2(
|
46 |
|
47 |
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
|
48 |
-
shape = SubResource(
|
|
|
1 |
+
[gd_scene load_steps=5 format=3 uid="uid://ddeq7mn1ealyc"]
|
2 |
|
3 |
+
[ext_resource type="Script" path="res://sensors/sensors_2d/RaycastSensor2D.gd" id="1"]
|
4 |
|
5 |
+
[sub_resource type="GDScript" id="2"]
|
6 |
script/source = "extends Node2D
|
7 |
|
8 |
|
|
|
12 |
|
13 |
"
|
14 |
|
15 |
+
[sub_resource type="GDScript" id="1"]
|
16 |
script/source = "extends RayCast2D
|
17 |
|
18 |
var steps = 1
|
|
|
26 |
print(is_colliding())
|
27 |
"
|
28 |
|
29 |
+
[sub_resource type="CircleShape2D" id="3"]
|
30 |
|
31 |
[node name="ExampleRaycastSensor2D" type="Node2D"]
|
32 |
+
script = SubResource("2")
|
33 |
|
34 |
[node name="ExampleAgent" type="Node2D" parent="."]
|
35 |
+
position = Vector2(573, 314)
|
36 |
rotation = 0.286234
|
37 |
|
38 |
[node name="RaycastSensor2D" type="Node2D" parent="ExampleAgent"]
|
39 |
+
script = ExtResource("1")
|
40 |
|
41 |
[node name="TestRayCast2D" type="RayCast2D" parent="."]
|
42 |
+
script = SubResource("1")
|
43 |
|
44 |
[node name="StaticBody2D" type="StaticBody2D" parent="."]
|
45 |
+
position = Vector2(1, 52)
|
46 |
|
47 |
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
|
48 |
+
shape = SubResource("3")
|
addons/godot_rl_agents/sensors/sensors_2d/ISensor2D.gd
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
extends Node2D
|
2 |
class_name ISensor2D
|
3 |
|
4 |
-
var _obs : Array
|
5 |
var _active := false
|
6 |
|
7 |
func get_observation():
|
|
|
1 |
extends Node2D
|
2 |
class_name ISensor2D
|
3 |
|
4 |
+
var _obs : Array = []
|
5 |
var _active := false
|
6 |
|
7 |
func get_observation():
|
addons/godot_rl_agents/sensors/sensors_2d/RaycastSensor2D.gd
CHANGED
@@ -1,6 +1,24 @@
|
|
|
|
1 |
extends ISensor2D
|
2 |
class_name RaycastSensor2D
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
5 |
@export var n_rays := 16.0:
|
6 |
get: return n_rays
|
@@ -8,18 +26,18 @@ class_name RaycastSensor2D
|
|
8 |
n_rays = value
|
9 |
_update()
|
10 |
|
11 |
-
@
|
12 |
get: return ray_length
|
13 |
set(value):
|
14 |
ray_length = value
|
15 |
_update()
|
16 |
-
@
|
17 |
get: return cone_width
|
18 |
set(value):
|
19 |
cone_width = value
|
20 |
_update()
|
21 |
|
22 |
-
@export var debug_draw :=
|
23 |
get: return debug_draw
|
24 |
set(value):
|
25 |
debug_draw = value
|
@@ -31,12 +49,16 @@ var rays := []
|
|
31 |
|
32 |
func _update():
|
33 |
if Engine.is_editor_hint():
|
34 |
-
|
|
|
|
|
|
|
|
|
|
|
35 |
|
36 |
func _ready() -> void:
|
37 |
_spawn_nodes()
|
38 |
|
39 |
-
|
40 |
func _spawn_nodes():
|
41 |
for ray in rays:
|
42 |
ray.queue_free()
|
@@ -55,7 +77,9 @@ func _spawn_nodes():
|
|
55 |
))
|
56 |
ray.set_name("node_"+str(i))
|
57 |
ray.enabled = true
|
58 |
-
ray.collide_with_areas =
|
|
|
|
|
59 |
add_child(ray)
|
60 |
rays.append(ray)
|
61 |
|
|
|
1 |
+
@tool
|
2 |
extends ISensor2D
|
3 |
class_name RaycastSensor2D
|
4 |
+
|
5 |
+
@export_flags_2d_physics var collision_mask := 1:
|
6 |
+
get: return collision_mask
|
7 |
+
set(value):
|
8 |
+
collision_mask = value
|
9 |
+
_update()
|
10 |
+
|
11 |
+
@export var collide_with_areas := false:
|
12 |
+
get: return collide_with_areas
|
13 |
+
set(value):
|
14 |
+
collide_with_areas = value
|
15 |
+
_update()
|
16 |
+
|
17 |
+
@export var collide_with_bodies := true:
|
18 |
+
get: return collide_with_bodies
|
19 |
+
set(value):
|
20 |
+
collide_with_bodies = value
|
21 |
+
_update()
|
22 |
|
23 |
@export var n_rays := 16.0:
|
24 |
get: return n_rays
|
|
|
26 |
n_rays = value
|
27 |
_update()
|
28 |
|
29 |
+
@export_range(5,200,5.0) var ray_length := 200:
|
30 |
get: return ray_length
|
31 |
set(value):
|
32 |
ray_length = value
|
33 |
_update()
|
34 |
+
@export_range(5,360,5.0) var cone_width := 360.0:
|
35 |
get: return cone_width
|
36 |
set(value):
|
37 |
cone_width = value
|
38 |
_update()
|
39 |
|
40 |
+
@export var debug_draw := true :
|
41 |
get: return debug_draw
|
42 |
set(value):
|
43 |
debug_draw = value
|
|
|
49 |
|
50 |
func _update():
|
51 |
if Engine.is_editor_hint():
|
52 |
+
if debug_draw:
|
53 |
+
_spawn_nodes()
|
54 |
+
else:
|
55 |
+
for ray in get_children():
|
56 |
+
if ray is RayCast2D:
|
57 |
+
remove_child(ray)
|
58 |
|
59 |
func _ready() -> void:
|
60 |
_spawn_nodes()
|
61 |
|
|
|
62 |
func _spawn_nodes():
|
63 |
for ray in rays:
|
64 |
ray.queue_free()
|
|
|
77 |
))
|
78 |
ray.set_name("node_"+str(i))
|
79 |
ray.enabled = true
|
80 |
+
ray.collide_with_areas = collide_with_areas
|
81 |
+
ray.collide_with_bodies = collide_with_bodies
|
82 |
+
ray.collision_mask = collision_mask
|
83 |
add_child(ray)
|
84 |
rays.append(ray)
|
85 |
|
addons/godot_rl_agents/sensors/sensors_2d/RaycastSensor2D.tscn
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
-
[gd_scene load_steps=2 format=
|
2 |
|
3 |
-
[ext_resource path="res://addons/godot_rl_agents/sensors/sensors_2d/RaycastSensor2D.gd"
|
4 |
|
5 |
[node name="RaycastSensor2D" type="Node2D"]
|
6 |
-
script = ExtResource(
|
|
|
|
1 |
+
[gd_scene load_steps=2 format=3 uid="uid://drvfihk5esgmv"]
|
2 |
|
3 |
+
[ext_resource type="Script" path="res://addons/godot_rl_agents/sensors/sensors_2d/RaycastSensor2D.gd" id="1"]
|
4 |
|
5 |
[node name="RaycastSensor2D" type="Node2D"]
|
6 |
+
script = ExtResource("1")
|
7 |
+
n_rays = 17.0
|
addons/godot_rl_agents/sensors/sensors_3d/ISensor3D.gd
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
extends Node3D
|
2 |
class_name ISensor3D
|
3 |
|
4 |
-
var _obs : Array
|
5 |
var _active := false
|
6 |
|
7 |
func get_observation():
|
|
|
1 |
extends Node3D
|
2 |
class_name ISensor3D
|
3 |
|
4 |
+
var _obs : Array = []
|
5 |
var _active := false
|
6 |
|
7 |
func get_observation():
|
addons/godot_rl_agents/sensors/sensors_3d/RaycastSensor3D.gd
CHANGED
@@ -1,6 +1,6 @@
|
|
|
|
1 |
extends ISensor3D
|
2 |
class_name RayCastSensor3D
|
3 |
-
@tool
|
4 |
@export_flags_3d_physics var collision_mask = 1:
|
5 |
get: return collision_mask
|
6 |
set(value):
|
@@ -10,7 +10,7 @@ class_name RayCastSensor3D
|
|
10 |
get: return boolean_class_mask
|
11 |
set(value):
|
12 |
boolean_class_mask = value
|
13 |
-
_update()
|
14 |
|
15 |
@export var n_rays_width := 6.0:
|
16 |
get: return n_rays_width
|
@@ -42,18 +42,18 @@ class_name RayCastSensor3D
|
|
42 |
cone_height = value
|
43 |
_update()
|
44 |
|
45 |
-
@export var collide_with_bodies := true:
|
46 |
-
get: return collide_with_bodies
|
47 |
-
set(value):
|
48 |
-
collide_with_bodies = value
|
49 |
-
_update()
|
50 |
-
|
51 |
@export var collide_with_areas := false:
|
52 |
get: return collide_with_areas
|
53 |
set(value):
|
54 |
collide_with_areas = value
|
55 |
_update()
|
56 |
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
@export var class_sensor := false
|
58 |
|
59 |
var rays := []
|
|
|
1 |
+
@tool
|
2 |
extends ISensor3D
|
3 |
class_name RayCastSensor3D
|
|
|
4 |
@export_flags_3d_physics var collision_mask = 1:
|
5 |
get: return collision_mask
|
6 |
set(value):
|
|
|
10 |
get: return boolean_class_mask
|
11 |
set(value):
|
12 |
boolean_class_mask = value
|
13 |
+
_update()
|
14 |
|
15 |
@export var n_rays_width := 6.0:
|
16 |
get: return n_rays_width
|
|
|
42 |
cone_height = value
|
43 |
_update()
|
44 |
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
@export var collide_with_areas := false:
|
46 |
get: return collide_with_areas
|
47 |
set(value):
|
48 |
collide_with_areas = value
|
49 |
_update()
|
50 |
|
51 |
+
@export var collide_with_bodies := true:
|
52 |
+
get: return collide_with_bodies
|
53 |
+
set(value):
|
54 |
+
collide_with_bodies = value
|
55 |
+
_update()
|
56 |
+
|
57 |
@export var class_sensor := false
|
58 |
|
59 |
var rays := []
|
addons/godot_rl_agents/sensors/sensors_3d/RaycastSensor3D.tscn
CHANGED
@@ -1,49 +1,33 @@
|
|
1 |
-
[gd_scene load_steps=2 format=
|
2 |
|
3 |
-
[ext_resource path="res://addons/godot_rl_agents/sensors/sensors_3d/RaycastSensor3D.gd"
|
4 |
|
5 |
[node name="RaycastSensor3D" type="Node3D"]
|
6 |
-
script = ExtResource(
|
7 |
n_rays_width = 4.0
|
8 |
n_rays_height = 2.0
|
9 |
ray_length = 11.0
|
10 |
|
11 |
-
[node name="node_0
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
[node name="
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
collide_with_areas = true
|
35 |
-
|
36 |
-
[node name="node_2 1" type="RayCast3D" parent="."]
|
37 |
-
enabled = true
|
38 |
-
cast_to = Vector3( 1.38686, 2.84701, 10.5343 )
|
39 |
-
collide_with_areas = true
|
40 |
-
|
41 |
-
[node name="node_3 0" type="RayCast3D" parent="."]
|
42 |
-
enabled = true
|
43 |
-
cast_to = Vector3( 4.06608, -2.84701, 9.81639 )
|
44 |
-
collide_with_areas = true
|
45 |
-
|
46 |
-
[node name="node_3 1" type="RayCast3D" parent="."]
|
47 |
-
enabled = true
|
48 |
-
cast_to = Vector3( 4.06608, 2.84701, 9.81639 )
|
49 |
-
collide_with_areas = true
|
|
|
1 |
+
[gd_scene load_steps=2 format=3 uid="uid://b803cbh1fmy66"]
|
2 |
|
3 |
+
[ext_resource type="Script" path="res://addons/godot_rl_agents/sensors/sensors_3d/RaycastSensor3D.gd" id="1"]
|
4 |
|
5 |
[node name="RaycastSensor3D" type="Node3D"]
|
6 |
+
script = ExtResource("1")
|
7 |
n_rays_width = 4.0
|
8 |
n_rays_height = 2.0
|
9 |
ray_length = 11.0
|
10 |
|
11 |
+
[node name="@node_0 0@18991" type="RayCast3D" parent="."]
|
12 |
+
target_position = Vector3(-4.06608, -2.84701, 9.81639)
|
13 |
+
|
14 |
+
[node name="node_0 1" type="RayCast3D" parent="."]
|
15 |
+
target_position = Vector3(-4.06608, 2.84701, 9.81639)
|
16 |
+
|
17 |
+
[node name="@node_1 0@18992" type="RayCast3D" parent="."]
|
18 |
+
target_position = Vector3(-1.38686, -2.84701, 10.5343)
|
19 |
+
|
20 |
+
[node name="@node_1 1@18993" type="RayCast3D" parent="."]
|
21 |
+
target_position = Vector3(-1.38686, 2.84701, 10.5343)
|
22 |
+
|
23 |
+
[node name="@node_2 0@18994" type="RayCast3D" parent="."]
|
24 |
+
target_position = Vector3(1.38686, -2.84701, 10.5343)
|
25 |
+
|
26 |
+
[node name="@node_2 1@18995" type="RayCast3D" parent="."]
|
27 |
+
target_position = Vector3(1.38686, 2.84701, 10.5343)
|
28 |
+
|
29 |
+
[node name="@node_3 0@18996" type="RayCast3D" parent="."]
|
30 |
+
target_position = Vector3(4.06608, -2.84701, 9.81639)
|
31 |
+
|
32 |
+
[node name="@node_3 1@18997" type="RayCast3D" parent="."]
|
33 |
+
target_position = Vector3(4.06608, 2.84701, 9.81639)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
addons/godot_rl_agents/sync.gd
CHANGED
@@ -2,7 +2,9 @@ extends Node
|
|
2 |
# --fixed-fps 2000 --disable-render-loop
|
3 |
@export var action_repeat := 8
|
4 |
@export var speed_up = 1
|
5 |
-
var
|
|
|
|
|
6 |
|
7 |
const MAJOR_VERSION := "0"
|
8 |
const MINOR_VERSION := "3"
|
@@ -16,21 +18,122 @@ var should_connect = true
|
|
16 |
var agents
|
17 |
var need_to_send_obs = false
|
18 |
var args = null
|
19 |
-
@onready var start_time = Time.get_ticks_msec()
|
20 |
var initialized = false
|
21 |
var just_reset = false
|
|
|
|
|
22 |
|
|
|
|
|
23 |
|
24 |
# Called when the node enters the scene tree for the first time.
|
25 |
|
26 |
func _ready():
|
27 |
-
|
28 |
await get_tree().root.ready
|
29 |
get_tree().set_pause(true)
|
30 |
_initialize()
|
31 |
await get_tree().create_timer(1.0).timeout
|
32 |
get_tree().set_pause(false)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
func _get_agents():
|
35 |
agents = get_tree().get_nodes_in_group("AGENT")
|
36 |
|
@@ -75,17 +178,16 @@ func _send_dict_as_json_message(dict):
|
|
75 |
func _send_env_info():
|
76 |
var json_dict = _get_dict_json_message()
|
77 |
assert(json_dict["type"] == "env_info")
|
78 |
-
|
|
|
79 |
var message = {
|
80 |
"type" : "env_info",
|
81 |
-
|
82 |
-
"
|
83 |
-
"action_space":agents[0].get_action_space(),
|
84 |
"n_agents": len(agents)
|
85 |
}
|
86 |
_send_dict_as_json_message(message)
|
87 |
|
88 |
-
|
89 |
func connect_to_server():
|
90 |
print("Waiting for one second to allow server to start")
|
91 |
OS.delay_msec(1000)
|
@@ -98,17 +200,13 @@ func connect_to_server():
|
|
98 |
var connect = stream.connect_to_host(ip, port)
|
99 |
stream.set_no_delay(true) # TODO check if this improves performance or not
|
100 |
stream.poll()
|
|
|
|
|
|
|
101 |
return stream.get_status() == 2
|
102 |
|
103 |
func _get_args():
|
104 |
print("getting command line arguments")
|
105 |
-
# var arguments = {}
|
106 |
-
# for argument in OS.get_cmdline_args():
|
107 |
-
# # Parse valid command-line arguments into a dictionary
|
108 |
-
# if argument.find("=") > -1:
|
109 |
-
# var key_value = argument.split("=")
|
110 |
-
# arguments[key_value[0].lstrip("--")] = key_value[1]
|
111 |
-
|
112 |
var arguments = {}
|
113 |
for argument in OS.get_cmdline_args():
|
114 |
print(argument)
|
@@ -139,70 +237,7 @@ func _set_action_repeat():
|
|
139 |
func disconnect_from_server():
|
140 |
stream.disconnect_from_host()
|
141 |
|
142 |
-
func _initialize():
|
143 |
-
_get_agents()
|
144 |
-
|
145 |
-
args = _get_args()
|
146 |
-
Engine.physics_ticks_per_second = _get_speedup() * 60 # Replace with function body.
|
147 |
-
Engine.time_scale = _get_speedup() * 1.0
|
148 |
-
prints("physics ticks", Engine.physics_ticks_per_second, Engine.time_scale, _get_speedup(), speed_up)
|
149 |
-
|
150 |
-
connected = connect_to_server()
|
151 |
-
if connected:
|
152 |
-
_set_heuristic("model")
|
153 |
-
_handshake()
|
154 |
-
_send_env_info()
|
155 |
-
else:
|
156 |
-
_set_heuristic("human")
|
157 |
-
|
158 |
-
_set_seed()
|
159 |
-
_set_action_repeat()
|
160 |
-
initialized = true
|
161 |
-
|
162 |
-
func _physics_process(delta):
|
163 |
-
# two modes, human control, agent control
|
164 |
-
# pause tree, send obs, get actions, set actions, unpause tree
|
165 |
-
if n_action_steps % action_repeat != 0:
|
166 |
-
n_action_steps += 1
|
167 |
-
return
|
168 |
|
169 |
-
n_action_steps += 1
|
170 |
-
|
171 |
-
if connected:
|
172 |
-
get_tree().set_pause(true)
|
173 |
-
|
174 |
-
if just_reset:
|
175 |
-
just_reset = false
|
176 |
-
var obs = _get_obs_from_agents()
|
177 |
-
|
178 |
-
var reply = {
|
179 |
-
"type": "reset",
|
180 |
-
"obs": obs
|
181 |
-
}
|
182 |
-
_send_dict_as_json_message(reply)
|
183 |
-
# this should go straight to getting the action and setting it checked the agent, no need to perform one phyics tick
|
184 |
-
get_tree().set_pause(false)
|
185 |
-
return
|
186 |
-
|
187 |
-
if need_to_send_obs:
|
188 |
-
need_to_send_obs = false
|
189 |
-
var reward = _get_reward_from_agents()
|
190 |
-
var done = _get_done_from_agents()
|
191 |
-
#_reset_agents_if_done() # this ensures the new observation is from the next env instance : NEEDS REFACTOR
|
192 |
-
|
193 |
-
var obs = _get_obs_from_agents()
|
194 |
-
|
195 |
-
var reply = {
|
196 |
-
"type": "step",
|
197 |
-
"obs": obs,
|
198 |
-
"reward": reward,
|
199 |
-
"done": done
|
200 |
-
}
|
201 |
-
_send_dict_as_json_message(reply)
|
202 |
-
|
203 |
-
var handled = handle_message()
|
204 |
-
else:
|
205 |
-
_reset_agents_if_done()
|
206 |
|
207 |
func handle_message() -> bool:
|
208 |
# get json message: reset, step, close
|
@@ -272,6 +307,7 @@ func _get_obs_from_agents():
|
|
272 |
var obs = []
|
273 |
for agent in agents:
|
274 |
obs.append(agent.get_obs())
|
|
|
275 |
return obs
|
276 |
|
277 |
func _get_reward_from_agents():
|
@@ -293,3 +329,8 @@ func _set_agent_actions(actions):
|
|
293 |
for i in range(len(actions)):
|
294 |
agents[i].set_action(actions[i])
|
295 |
|
|
|
|
|
|
|
|
|
|
|
|
2 |
# --fixed-fps 2000 --disable-render-loop
|
3 |
@export var action_repeat := 8
|
4 |
@export var speed_up = 1
|
5 |
+
@export var onnx_model_path := ""
|
6 |
+
|
7 |
+
@onready var start_time = Time.get_ticks_msec()
|
8 |
|
9 |
const MAJOR_VERSION := "0"
|
10 |
const MINOR_VERSION := "3"
|
|
|
18 |
var agents
|
19 |
var need_to_send_obs = false
|
20 |
var args = null
|
|
|
21 |
var initialized = false
|
22 |
var just_reset = false
|
23 |
+
var onnx_model = null
|
24 |
+
var n_action_steps = 0
|
25 |
|
26 |
+
var _action_space : Dictionary
|
27 |
+
var _obs_space : Dictionary
|
28 |
|
29 |
# Called when the node enters the scene tree for the first time.
|
30 |
|
31 |
func _ready():
|
|
|
32 |
await get_tree().root.ready
|
33 |
get_tree().set_pause(true)
|
34 |
_initialize()
|
35 |
await get_tree().create_timer(1.0).timeout
|
36 |
get_tree().set_pause(false)
|
37 |
+
|
38 |
+
func _initialize():
|
39 |
+
_get_agents()
|
40 |
+
_obs_space = agents[0].get_obs_space()
|
41 |
+
_action_space = agents[0].get_action_space()
|
42 |
+
args = _get_args()
|
43 |
+
Engine.physics_ticks_per_second = _get_speedup() * 60 # Replace with function body.
|
44 |
+
Engine.time_scale = _get_speedup() * 1.0
|
45 |
+
prints("physics ticks", Engine.physics_ticks_per_second, Engine.time_scale, _get_speedup(), speed_up)
|
46 |
+
|
47 |
+
|
48 |
+
connected = connect_to_server()
|
49 |
+
if connected:
|
50 |
+
_set_heuristic("model")
|
51 |
+
_handshake()
|
52 |
+
_send_env_info()
|
53 |
+
elif onnx_model_path != "":
|
54 |
+
onnx_model = ONNXModel.new(onnx_model_path, 1)
|
55 |
+
_set_heuristic("model")
|
56 |
+
else:
|
57 |
+
_set_heuristic("human")
|
58 |
+
|
59 |
+
_set_seed()
|
60 |
+
_set_action_repeat()
|
61 |
+
initialized = true
|
62 |
+
|
63 |
+
func _physics_process(delta):
|
64 |
+
# two modes, human control, agent control
|
65 |
+
# pause tree, send obs, get actions, set actions, unpause tree
|
66 |
+
if n_action_steps % action_repeat != 0:
|
67 |
+
n_action_steps += 1
|
68 |
+
return
|
69 |
+
|
70 |
+
n_action_steps += 1
|
71 |
+
|
72 |
+
if connected:
|
73 |
+
get_tree().set_pause(true)
|
74 |
+
|
75 |
+
if just_reset:
|
76 |
+
just_reset = false
|
77 |
+
var obs = _get_obs_from_agents()
|
78 |
+
|
79 |
+
var reply = {
|
80 |
+
"type": "reset",
|
81 |
+
"obs": obs
|
82 |
+
}
|
83 |
+
_send_dict_as_json_message(reply)
|
84 |
+
# this should go straight to getting the action and setting it checked the agent, no need to perform one phyics tick
|
85 |
+
get_tree().set_pause(false)
|
86 |
+
return
|
87 |
+
|
88 |
+
if need_to_send_obs:
|
89 |
+
need_to_send_obs = false
|
90 |
+
var reward = _get_reward_from_agents()
|
91 |
+
var done = _get_done_from_agents()
|
92 |
+
#_reset_agents_if_done() # this ensures the new observation is from the next env instance : NEEDS REFACTOR
|
93 |
+
|
94 |
+
var obs = _get_obs_from_agents()
|
95 |
+
|
96 |
+
var reply = {
|
97 |
+
"type": "step",
|
98 |
+
"obs": obs,
|
99 |
+
"reward": reward,
|
100 |
+
"done": done
|
101 |
+
}
|
102 |
+
_send_dict_as_json_message(reply)
|
103 |
+
|
104 |
+
var handled = handle_message()
|
105 |
+
|
106 |
+
elif onnx_model != null:
|
107 |
+
var obs : Array = _get_obs_from_agents()
|
108 |
+
|
109 |
+
var actions = []
|
110 |
+
for o in obs:
|
111 |
+
var action = onnx_model.run_inference(o["obs"], 1.0)
|
112 |
+
action["output"] = clamp_array(action["output"], -1.0, 1.0)
|
113 |
+
var action_dict = _extract_action_dict(action["output"])
|
114 |
+
actions.append(action_dict)
|
115 |
+
|
116 |
+
_set_agent_actions(actions)
|
117 |
+
need_to_send_obs = true
|
118 |
+
get_tree().set_pause(false)
|
119 |
+
_reset_agents_if_done()
|
120 |
|
121 |
+
else:
|
122 |
+
_reset_agents_if_done()
|
123 |
+
|
124 |
+
func _extract_action_dict(action_array: Array):
|
125 |
+
var index = 0
|
126 |
+
var result = {}
|
127 |
+
for key in _action_space.keys():
|
128 |
+
var size = _action_space[key]["size"]
|
129 |
+
if _action_space[key]["action_type"] == "discrete":
|
130 |
+
result[key] = round(action_array[index])
|
131 |
+
else:
|
132 |
+
result[key] = action_array.slice(index,index+size)
|
133 |
+
index += size
|
134 |
+
|
135 |
+
return result
|
136 |
+
|
137 |
func _get_agents():
|
138 |
agents = get_tree().get_nodes_in_group("AGENT")
|
139 |
|
|
|
178 |
func _send_env_info():
|
179 |
var json_dict = _get_dict_json_message()
|
180 |
assert(json_dict["type"] == "env_info")
|
181 |
+
|
182 |
+
|
183 |
var message = {
|
184 |
"type" : "env_info",
|
185 |
+
"observation_space": _obs_space,
|
186 |
+
"action_space":_action_space,
|
|
|
187 |
"n_agents": len(agents)
|
188 |
}
|
189 |
_send_dict_as_json_message(message)
|
190 |
|
|
|
191 |
func connect_to_server():
|
192 |
print("Waiting for one second to allow server to start")
|
193 |
OS.delay_msec(1000)
|
|
|
200 |
var connect = stream.connect_to_host(ip, port)
|
201 |
stream.set_no_delay(true) # TODO check if this improves performance or not
|
202 |
stream.poll()
|
203 |
+
# Fetch the status until it is either connected (2) or failed to connect (3)
|
204 |
+
while stream.get_status() < 2:
|
205 |
+
stream.poll()
|
206 |
return stream.get_status() == 2
|
207 |
|
208 |
func _get_args():
|
209 |
print("getting command line arguments")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
210 |
var arguments = {}
|
211 |
for argument in OS.get_cmdline_args():
|
212 |
print(argument)
|
|
|
237 |
func disconnect_from_server():
|
238 |
stream.disconnect_from_host()
|
239 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
240 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
241 |
|
242 |
func handle_message() -> bool:
|
243 |
# get json message: reset, step, close
|
|
|
307 |
var obs = []
|
308 |
for agent in agents:
|
309 |
obs.append(agent.get_obs())
|
310 |
+
|
311 |
return obs
|
312 |
|
313 |
func _get_reward_from_agents():
|
|
|
329 |
for i in range(len(actions)):
|
330 |
agents[i].set_action(actions[i])
|
331 |
|
332 |
+
func clamp_array(arr : Array, min:float, max:float):
|
333 |
+
var output : Array = []
|
334 |
+
for a in arr:
|
335 |
+
output.append(clamp(a, min, max))
|
336 |
+
return output
|
bin/JumperHard.console.exe
ADDED
Binary file (186 kB). View file
|
|
bin/JumperHard.exe
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:784e2e3b2022a9421df07c764fc394ff0576147b16d186b9ed17fb725e96d4d4
|
3 |
+
size 68805120
|
bin/JumperHard.pck
CHANGED
Binary files a/bin/JumperHard.pck and b/bin/JumperHard.pck differ
|
|
bin/JumperHard.sh
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/sh
|
2 |
+
echo -ne '\033c\033]0;JumperHard\a'
|
3 |
+
base_path="$(dirname "$(realpath "$0")")"
|
4 |
+
"$base_path/JumperHard.x86_64" "$@"
|
bin/JumperHard.x86_64
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dda38dcc9dacc4e8d58d79f88a109bd36a30d97af1400a46b9d9d4e24278dbfe
|
3 |
+
size 70085064
|
export_presets.cfg
CHANGED
@@ -3,16 +3,16 @@
|
|
3 |
name="Linux/X11"
|
4 |
platform="Linux/X11"
|
5 |
runnable=true
|
|
|
6 |
custom_features=""
|
7 |
export_filter="all_resources"
|
8 |
include_filter=""
|
9 |
exclude_filter=""
|
10 |
-
export_path="
|
11 |
encryption_include_filters=""
|
12 |
encryption_exclude_filters=""
|
13 |
encrypt_pck=false
|
14 |
encrypt_directory=false
|
15 |
-
script_export_mode=1
|
16 |
script_encryption_key=""
|
17 |
|
18 |
[preset.0.options]
|
@@ -21,28 +21,39 @@ custom_template/debug=""
|
|
21 |
custom_template/release=""
|
22 |
debug/export_console_script=1
|
23 |
binary_format/embed_pck=false
|
24 |
-
texture_format/bptc=
|
25 |
texture_format/s3tc=true
|
26 |
texture_format/etc=false
|
27 |
texture_format/etc2=false
|
28 |
-
texture_format/no_bptc_fallbacks=true
|
29 |
binary_format/architecture="x86_64"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
|
31 |
[preset.1]
|
32 |
|
33 |
name="Windows Desktop"
|
34 |
platform="Windows Desktop"
|
35 |
runnable=true
|
|
|
36 |
custom_features=""
|
37 |
export_filter="all_resources"
|
38 |
include_filter=""
|
39 |
exclude_filter=""
|
40 |
-
export_path="
|
41 |
encryption_include_filters=""
|
42 |
encryption_exclude_filters=""
|
43 |
encrypt_pck=false
|
44 |
encrypt_directory=false
|
45 |
-
script_export_mode=1
|
46 |
script_encryption_key=""
|
47 |
|
48 |
[preset.1.options]
|
@@ -51,11 +62,10 @@ custom_template/debug=""
|
|
51 |
custom_template/release=""
|
52 |
debug/export_console_script=1
|
53 |
binary_format/embed_pck=false
|
54 |
-
texture_format/bptc=
|
55 |
texture_format/s3tc=true
|
56 |
texture_format/etc=false
|
57 |
texture_format/etc2=false
|
58 |
-
texture_format/no_bptc_fallbacks=true
|
59 |
binary_format/architecture="x86_64"
|
60 |
codesign/enable=false
|
61 |
codesign/identity_type=0
|
@@ -68,6 +78,8 @@ codesign/description=""
|
|
68 |
codesign/custom_options=PackedStringArray()
|
69 |
application/modify_resources=true
|
70 |
application/icon=""
|
|
|
|
|
71 |
application/file_version=""
|
72 |
application/product_version=""
|
73 |
application/company_name=""
|
@@ -75,3 +87,20 @@ application/product_name=""
|
|
75 |
application/file_description=""
|
76 |
application/copyright=""
|
77 |
application/trademarks=""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
name="Linux/X11"
|
4 |
platform="Linux/X11"
|
5 |
runnable=true
|
6 |
+
dedicated_server=false
|
7 |
custom_features=""
|
8 |
export_filter="all_resources"
|
9 |
include_filter=""
|
10 |
exclude_filter=""
|
11 |
+
export_path=""
|
12 |
encryption_include_filters=""
|
13 |
encryption_exclude_filters=""
|
14 |
encrypt_pck=false
|
15 |
encrypt_directory=false
|
|
|
16 |
script_encryption_key=""
|
17 |
|
18 |
[preset.0.options]
|
|
|
21 |
custom_template/release=""
|
22 |
debug/export_console_script=1
|
23 |
binary_format/embed_pck=false
|
24 |
+
texture_format/bptc=true
|
25 |
texture_format/s3tc=true
|
26 |
texture_format/etc=false
|
27 |
texture_format/etc2=false
|
|
|
28 |
binary_format/architecture="x86_64"
|
29 |
+
ssh_remote_deploy/enabled=false
|
30 |
+
ssh_remote_deploy/host="user@host_ip"
|
31 |
+
ssh_remote_deploy/port="22"
|
32 |
+
ssh_remote_deploy/extra_args_ssh=""
|
33 |
+
ssh_remote_deploy/extra_args_scp=""
|
34 |
+
ssh_remote_deploy/run_script="#!/usr/bin/env bash
|
35 |
+
export DISPLAY=:0
|
36 |
+
unzip -o -q \"{temp_dir}/{archive_name}\" -d \"{temp_dir}\"
|
37 |
+
\"{temp_dir}/{exe_name}\" {cmd_args}"
|
38 |
+
ssh_remote_deploy/cleanup_script="#!/usr/bin/env bash
|
39 |
+
kill $(pgrep -x -f \"{temp_dir}/{exe_name} {cmd_args}\")
|
40 |
+
rm -rf \"{temp_dir}\""
|
41 |
|
42 |
[preset.1]
|
43 |
|
44 |
name="Windows Desktop"
|
45 |
platform="Windows Desktop"
|
46 |
runnable=true
|
47 |
+
dedicated_server=false
|
48 |
custom_features=""
|
49 |
export_filter="all_resources"
|
50 |
include_filter=""
|
51 |
exclude_filter=""
|
52 |
+
export_path=""
|
53 |
encryption_include_filters=""
|
54 |
encryption_exclude_filters=""
|
55 |
encrypt_pck=false
|
56 |
encrypt_directory=false
|
|
|
57 |
script_encryption_key=""
|
58 |
|
59 |
[preset.1.options]
|
|
|
62 |
custom_template/release=""
|
63 |
debug/export_console_script=1
|
64 |
binary_format/embed_pck=false
|
65 |
+
texture_format/bptc=true
|
66 |
texture_format/s3tc=true
|
67 |
texture_format/etc=false
|
68 |
texture_format/etc2=false
|
|
|
69 |
binary_format/architecture="x86_64"
|
70 |
codesign/enable=false
|
71 |
codesign/identity_type=0
|
|
|
78 |
codesign/custom_options=PackedStringArray()
|
79 |
application/modify_resources=true
|
80 |
application/icon=""
|
81 |
+
application/console_wrapper_icon=""
|
82 |
+
application/icon_interpolation=4
|
83 |
application/file_version=""
|
84 |
application/product_version=""
|
85 |
application/company_name=""
|
|
|
87 |
application/file_description=""
|
88 |
application/copyright=""
|
89 |
application/trademarks=""
|
90 |
+
ssh_remote_deploy/enabled=false
|
91 |
+
ssh_remote_deploy/host="user@host_ip"
|
92 |
+
ssh_remote_deploy/port="22"
|
93 |
+
ssh_remote_deploy/extra_args_ssh=""
|
94 |
+
ssh_remote_deploy/extra_args_scp=""
|
95 |
+
ssh_remote_deploy/run_script="Expand-Archive -LiteralPath '{temp_dir}\\{archive_name}' -DestinationPath '{temp_dir}'
|
96 |
+
$action = New-ScheduledTaskAction -Execute '{temp_dir}\\{exe_name}' -Argument '{cmd_args}'
|
97 |
+
$trigger = New-ScheduledTaskTrigger -Once -At 00:00
|
98 |
+
$settings = New-ScheduledTaskSettingsSet
|
99 |
+
$task = New-ScheduledTask -Action $action -Trigger $trigger -Settings $settings
|
100 |
+
Register-ScheduledTask godot_remote_debug -InputObject $task -Force:$true
|
101 |
+
Start-ScheduledTask -TaskName godot_remote_debug
|
102 |
+
while (Get-ScheduledTask -TaskName godot_remote_debug | ? State -eq running) { Start-Sleep -Milliseconds 100 }
|
103 |
+
Unregister-ScheduledTask -TaskName godot_remote_debug -Confirm:$false -ErrorAction:SilentlyContinue"
|
104 |
+
ssh_remote_deploy/cleanup_script="Stop-ScheduledTask -TaskName godot_remote_debug -ErrorAction:SilentlyContinue
|
105 |
+
Unregister-ScheduledTask -TaskName godot_remote_debug -Confirm:$false -ErrorAction:SilentlyContinue
|
106 |
+
Remove-Item -Recurse -Force '{temp_dir}'"
|
icon.png.import
CHANGED
@@ -16,9 +16,9 @@ dest_files=["res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.cte
|
|
16 |
[params]
|
17 |
|
18 |
compress/mode=0
|
|
|
19 |
compress/lossy_quality=0.7
|
20 |
compress/hdr_compression=1
|
21 |
-
compress/bptc_ldr=0
|
22 |
compress/normal_map=0
|
23 |
compress/channel_pack=0
|
24 |
mipmaps/generate=false
|
|
|
16 |
[params]
|
17 |
|
18 |
compress/mode=0
|
19 |
+
compress/high_quality=false
|
20 |
compress/lossy_quality=0.7
|
21 |
compress/hdr_compression=1
|
|
|
22 |
compress/normal_map=0
|
23 |
compress/channel_pack=0
|
24 |
mipmaps/generate=false
|
project.godot
CHANGED
@@ -8,50 +8,16 @@
|
|
8 |
|
9 |
config_version=5
|
10 |
|
11 |
-
_global_script_classes=[{
|
12 |
-
"base": "Node2D",
|
13 |
-
"class": &"ISensor2D",
|
14 |
-
"language": &"GDScript",
|
15 |
-
"path": "res://addons/godot_rl_agents/sensors/sensors_2d/ISensor2D.gd"
|
16 |
-
}, {
|
17 |
-
"base": "Node3D",
|
18 |
-
"class": &"ISensor3D",
|
19 |
-
"language": &"GDScript",
|
20 |
-
"path": "res://addons/godot_rl_agents/sensors/sensors_3d/ISensor3D.gd"
|
21 |
-
}, {
|
22 |
-
"base": "Node3D",
|
23 |
-
"class": &"RGBCameraSensor3D",
|
24 |
-
"language": &"GDScript",
|
25 |
-
"path": "res://addons/godot_rl_agents/sensors/sensors_3d/RGBCameraSensor3D.gd"
|
26 |
-
}, {
|
27 |
-
"base": "ISensor3D",
|
28 |
-
"class": &"RayCastSensor3D",
|
29 |
-
"language": &"GDScript",
|
30 |
-
"path": "res://addons/godot_rl_agents/sensors/sensors_3d/RaycastSensor3D.gd"
|
31 |
-
}, {
|
32 |
-
"base": "ISensor2D",
|
33 |
-
"class": &"RaycastSensor2D",
|
34 |
-
"language": &"GDScript",
|
35 |
-
"path": "res://addons/godot_rl_agents/sensors/sensors_2d/RaycastSensor2D.gd"
|
36 |
-
}]
|
37 |
-
_global_script_class_icons={
|
38 |
-
"ISensor2D": "",
|
39 |
-
"ISensor3D": "",
|
40 |
-
"RGBCameraSensor3D": "",
|
41 |
-
"RayCastSensor3D": "",
|
42 |
-
"RaycastSensor2D": ""
|
43 |
-
}
|
44 |
-
|
45 |
[application]
|
46 |
|
47 |
config/name="JumperHard"
|
48 |
run/main_scene="res://BatchEnvs.tscn"
|
49 |
-
config/features=PackedStringArray("4.0")
|
50 |
config/icon="res://icon.png"
|
51 |
|
52 |
-
[
|
53 |
|
54 |
-
|
55 |
|
56 |
[editor_plugins]
|
57 |
|
@@ -61,42 +27,42 @@ enabled=PackedStringArray()
|
|
61 |
|
62 |
move_forwards={
|
63 |
"deadzone": 0.5,
|
64 |
-
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":87,"unicode":0,"echo":false,"script":null)
|
65 |
]
|
66 |
}
|
67 |
move_backwards={
|
68 |
"deadzone": 0.5,
|
69 |
-
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":83,"unicode":0,"echo":false,"script":null)
|
70 |
]
|
71 |
}
|
72 |
turn_left={
|
73 |
"deadzone": 0.5,
|
74 |
-
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":65,"unicode":0,"echo":false,"script":null)
|
75 |
]
|
76 |
}
|
77 |
turn_right={
|
78 |
"deadzone": 0.5,
|
79 |
-
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":68,"unicode":0,"echo":false,"script":null)
|
80 |
]
|
81 |
}
|
82 |
move_left={
|
83 |
"deadzone": 0.5,
|
84 |
-
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":81,"unicode":0,"echo":false,"script":null)
|
85 |
]
|
86 |
}
|
87 |
move_right={
|
88 |
"deadzone": 0.5,
|
89 |
-
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":69,"unicode":0,"echo":false,"script":null)
|
90 |
]
|
91 |
}
|
92 |
jump={
|
93 |
"deadzone": 0.5,
|
94 |
-
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":32,"unicode":0,"echo":false,"script":null)
|
95 |
]
|
96 |
}
|
97 |
r_key={
|
98 |
"deadzone": 0.5,
|
99 |
-
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":82,"unicode":0,"echo":false,"script":null)
|
100 |
]
|
101 |
}
|
102 |
|
|
|
8 |
|
9 |
config_version=5
|
10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
[application]
|
12 |
|
13 |
config/name="JumperHard"
|
14 |
run/main_scene="res://BatchEnvs.tscn"
|
15 |
+
config/features=PackedStringArray("4.0", "C#")
|
16 |
config/icon="res://icon.png"
|
17 |
|
18 |
+
[dotnet]
|
19 |
|
20 |
+
project/assembly_name="JumperHard"
|
21 |
|
22 |
[editor_plugins]
|
23 |
|
|
|
27 |
|
28 |
move_forwards={
|
29 |
"deadzone": 0.5,
|
30 |
+
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":87,"key_label":0,"unicode":0,"echo":false,"script":null)
|
31 |
]
|
32 |
}
|
33 |
move_backwards={
|
34 |
"deadzone": 0.5,
|
35 |
+
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":83,"key_label":0,"unicode":0,"echo":false,"script":null)
|
36 |
]
|
37 |
}
|
38 |
turn_left={
|
39 |
"deadzone": 0.5,
|
40 |
+
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":65,"key_label":0,"unicode":0,"echo":false,"script":null)
|
41 |
]
|
42 |
}
|
43 |
turn_right={
|
44 |
"deadzone": 0.5,
|
45 |
+
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":68,"key_label":0,"unicode":0,"echo":false,"script":null)
|
46 |
]
|
47 |
}
|
48 |
move_left={
|
49 |
"deadzone": 0.5,
|
50 |
+
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":81,"key_label":0,"unicode":0,"echo":false,"script":null)
|
51 |
]
|
52 |
}
|
53 |
move_right={
|
54 |
"deadzone": 0.5,
|
55 |
+
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":69,"key_label":0,"unicode":0,"echo":false,"script":null)
|
56 |
]
|
57 |
}
|
58 |
jump={
|
59 |
"deadzone": 0.5,
|
60 |
+
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":32,"key_label":0,"unicode":0,"echo":false,"script":null)
|
61 |
]
|
62 |
}
|
63 |
r_key={
|
64 |
"deadzone": 0.5,
|
65 |
+
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":82,"key_label":0,"unicode":0,"echo":false,"script":null)
|
66 |
]
|
67 |
}
|
68 |
|