Commit 41046dd
Add option to start simulator via docker (#944)
* Add start simulation button
* Fix port
* Add stop simulation button
* Working error messages (only if using string literal)
* Move onSimulationResult to different set of events
* Add feedback of running state from backend
* Give feedback on first time use
* Docker stubs
* Resolve minor feedback
* Resolve more feedback
* Update requirements for stubs
* Exception handling for image pull
* Add docker to mypi ignore
* Add simulation modal
* Add dropdown to select vehicle type
* Add fields for the other ardupilot params
* Copy
* Pass params to simulator startup
* npx
* Remove ArduRover for now as is not valid
* Cleanup of args parsing
* Wait for YOU CAN CONNECT message
* Disable if not connected to socket
* Add connect after simulator start
* linting
* Backend refactor and comments
* Add port option to also allow for tests
* Add cleanup to the first test
* Generate tests for the other functions
* Resolve minor copilot feedback
* Lint
* Pass connect arg through backend
* Use port 5763 for tests
* Potential fix for test
* Background task for wait for container result
* Better error messages on stopping simulation
* CI friendly cleanup container
* Resolve minor copilot feedback
* Improve test coverage
* Remove container reload because it breaks logs
* Potential test fix
* Catch exceptions from streaming container
* Clamp input values
* Image downloading progress messages
* Message on closing modal
* Errors and exceptions
* More tests
* Linting
* Remove unused import
* Update radio/app/endpoints/simulation.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Resolve final copilot comments
* Rename function in tests
* Resolve minor feedback
* Fix non-deterministic tests
* minor copilot feedback
* Close old notification if new loading has begun
* Rewrite waiting for container
* Resolve MORE minor copilot feedback
* Remove extra parameters
* Cleanup missed references
* Use correct port on auto-connect
* Selection for both host and container ports
* Add more tests for failure routes
* Fix tests
* Resolve copilot feedback
* Just a couple more copilot comments
* Minor copilot feedback
* Even more copilot feedback
* Rewrite waiting function to use since and tail
* Frontend changes
* Get rid of all the tests
* Catch bubble up exception
* Copy
* Option for multiple port mappings
* Refactor simulation params into their own slice
* Duplicate port validation
* Refactor port validation into helper functions
* Fix None unpacking
* Linting
* Use exceptions rather than returning None
* Store simulation loading id states
* Linting
* Minor changes
* Resolve what are becoming more and more pointless comments
* These edge cases are literally never gonna happen
* Check for duplicate container ports aswell
* Copy
* Type annotations
* Fix typing
* Fix the final none hallucinated issues
* Linting
* Please
* Use uuids for ports
* Use worker thread for log polling
* Remove unused reference to index
* MAYBE these ones are relevant
* Hide button on default with opt-in experimental developer setting
* Resolve the trivial parts of the feedback
* Use docker types
* Add custom type for command parameters
* Optional type, because it is
* Rename cleanup_container to stop_container
* Use trash icon instead of X
* Add connection progress bar to simulation modal footer
* Remove now unused Progress import
* Disconnect from drone when stopping simulation if connected to ANYTHING
* Disconnect from simulator on stop simulation
* Block connecting to simulator if already connected to drone
* Fix issue with merge
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Julian Jones <37962677+NexInfinite@users.noreply.github.com>1 parent 236750b commit 41046dd
14 files changed
Lines changed: 1024 additions & 17 deletions
File tree
- gcs
- data
- src
- components
- toolbar
- redux
- middleware
- slices
- radio
- app/endpoints
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
34 | 40 | | |
35 | 41 | | |
36 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| |||
78 | 77 | | |
79 | 78 | | |
80 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
81 | 84 | | |
82 | 85 | | |
83 | 86 | | |
| |||
320 | 323 | | |
321 | 324 | | |
322 | 325 | | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
339 | 330 | | |
340 | 331 | | |
341 | 332 | | |
| |||
402 | 393 | | |
403 | 394 | | |
404 | 395 | | |
| 396 | + | |
| 397 | + | |
405 | 398 | | |
406 | 399 | | |
407 | 400 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
| |||
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
31 | 42 | | |
32 | 43 | | |
33 | 44 | | |
0 commit comments