From 380962ea3635c4894dd2b2b545c224200e1d151e Mon Sep 17 00:00:00 2001 From: Nicolai Ommer Date: Sun, 15 May 2022 14:38:32 +0200 Subject: [PATCH] Initial version of autoRef CI implementation --- .idea/runConfigurations/AutoReferee.xml | 7 +- build.gradle | 1 + config/moduli/moduli-ci.xml | 68 ++++++++ .../edu/tigers/sumatra/ball/BallState.java | 1 + modules/moduli-autoreferee-ci/build.gradle | 27 +++ .../ci/AutoRefereeCiCamModule.java | 96 +++++++++++ .../autoreferee/ci/AutoRefereeCiServer.java | 161 ++++++++++++++++++ .../TrackedFrameToFilteredVisionMapper.java | 158 +++++++++++++++++ .../src/main/proto/ssl_autoref_ci.proto | 29 ++++ .../proto/desired_event_description.proto | 2 +- .../tigers/sumatra/cam/LogfileVisionCam.java | 2 +- .../java/edu/tigers/sumatra/cam/ACam.java | 4 +- .../sumatra/cam/CamDetectionConverter.java | 14 +- .../tigers/sumatra/cam/ICamFrameObserver.java | 2 +- .../edu/tigers/sumatra/cam/SSLVisionCam.java | 2 +- .../cam/SSLVisionCamGeometryTranslator.java | 18 +- .../sumatra/cam/data/CamCalibration.java | 2 +- .../tigers/sumatra/cam/data/CamFieldArc.java | 2 +- .../tigers/sumatra/cam/data/CamFieldLine.java | 2 +- .../tigers/sumatra/cam/data/CamGeometry.java | 2 +- ...ction.proto => ssl_vision_detection.proto} | 1 + ...ometry.proto => ssl_vision_geometry.proto} | 3 +- ...wrapper.proto => ssl_vision_wrapper.proto} | 5 +- .../edu/tigers/sumatra/geometry/Geometry.java | 6 +- .../src/main/proto/ssl_gc_api.proto | 2 +- .../src/main/proto/ssl_gc_change.proto | 2 +- .../src/main/proto/ssl_gc_common.proto | 2 +- .../src/main/proto/ssl_gc_engine.proto | 2 +- .../src/main/proto/ssl_gc_engine_config.proto | 2 +- .../src/main/proto/ssl_gc_game_event.proto | 2 +- .../src/main/proto/ssl_gc_geometry.proto | 2 +- .../src/main/proto/ssl_gc_rcon.proto | 2 +- .../src/main/proto/ssl_gc_rcon_autoref.proto | 4 +- .../proto/ssl_gc_rcon_remotecontrol.proto | 4 +- .../src/main/proto/ssl_gc_rcon_team.proto | 2 +- .../main/proto/ssl_gc_referee_message.proto | 2 +- .../src/main/proto/ssl_gc_state.proto | 4 +- .../tigers/sumatra/vision/AVisionFilter.java | 2 +- .../sumatra/wp/exporter/SSLVisionSender.java | 28 +-- .../moduli-wp/src/main/proto/ssl_gc_ci.proto | 6 +- .../proto/ssl_vision_detection_tracked.proto | 18 +- .../sumatra/gamelog/SSLGameLogReader.java | 2 +- .../sumatra/gamelog/SSLGameLogRecorder.java | 2 +- .../src/main/proto/log_labeler_data.proto | 5 +- .../src/main/proto/log_labels.proto | 2 +- settings.gradle | 2 + .../java/edu/tigers/autoref/AutoReferee.java | 8 +- 47 files changed, 637 insertions(+), 85 deletions(-) create mode 100644 config/moduli/moduli-ci.xml create mode 100644 modules/moduli-autoreferee-ci/build.gradle create mode 100644 modules/moduli-autoreferee-ci/src/main/java/edu/tigers/autoreferee/ci/AutoRefereeCiCamModule.java create mode 100644 modules/moduli-autoreferee-ci/src/main/java/edu/tigers/autoreferee/ci/AutoRefereeCiServer.java create mode 100644 modules/moduli-autoreferee-ci/src/main/java/edu/tigers/autoreferee/ci/TrackedFrameToFilteredVisionMapper.java create mode 100644 modules/moduli-autoreferee-ci/src/main/proto/ssl_autoref_ci.proto rename modules/moduli-cam/src/main/proto/{messages_robocup_ssl_detection.proto => ssl_vision_detection.proto} (99%) rename modules/moduli-cam/src/main/proto/{messages_robocup_ssl_geometry.proto => ssl_vision_geometry.proto} (99%) rename modules/moduli-cam/src/main/proto/{messages_robocup_ssl_wrapper.proto => ssl_vision_wrapper.proto} (67%) diff --git a/.idea/runConfigurations/AutoReferee.xml b/.idea/runConfigurations/AutoReferee.xml index 381c9b35..160eacb0 100644 --- a/.idea/runConfigurations/AutoReferee.xml +++ b/.idea/runConfigurations/AutoReferee.xml @@ -4,12 +4,15 @@