Skip to content

Commit

Permalink
Add geometry updates to the CI protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaswendler authored and g3force committed Apr 27, 2021
1 parent 1088298 commit 1ec8284
Show file tree
Hide file tree
Showing 3 changed files with 218 additions and 99 deletions.
4 changes: 4 additions & 0 deletions internal/app/ci/ci.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ func (s *Server) serve(conn net.Conn) {
}
}

if input.Geometry != nil {
s.gcEngine.ProcessGeometry(input.Geometry)
}

if input.Timestamp != nil {
sec := *input.Timestamp / 1e9
nSec := *input.Timestamp - sec*1e9
Expand Down
310 changes: 211 additions & 99 deletions internal/app/ci/ssl_gc_ci.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions proto/ssl_gc_ci.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ option go_package = "github.com/RoboCup-SSL/ssl-game-controller/internal/app/ci"
import "ssl_vision_wrapper_tracked.proto";
import "ssl_gc_api.proto";
import "ssl_gc_referee_message.proto";
import "ssl_vision_geometry.proto";

// The input format to the GC
message CiInput {
Expand All @@ -14,6 +15,8 @@ message CiInput {
optional TrackerWrapperPacket tracker_packet = 2;
// (UI) API input
repeated Input api_inputs = 3;
// Update geometry
optional SSL_GeometryData geometry = 4;
}

// The output format of the GC response
Expand Down

0 comments on commit 1ec8284

Please sign in to comment.