Skip to content

Commit 1ec8284

Browse files
andreaswendlerg3force
authored andcommitted
Add geometry updates to the CI protocol
1 parent 1088298 commit 1ec8284

File tree

3 files changed

+218
-99
lines changed

3 files changed

+218
-99
lines changed

internal/app/ci/ci.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ func (s *Server) serve(conn net.Conn) {
100100
}
101101
}
102102

103+
if input.Geometry != nil {
104+
s.gcEngine.ProcessGeometry(input.Geometry)
105+
}
106+
103107
if input.Timestamp != nil {
104108
sec := *input.Timestamp / 1e9
105109
nSec := *input.Timestamp - sec*1e9

internal/app/ci/ssl_gc_ci.pb.go

Lines changed: 211 additions & 99 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proto/ssl_gc_ci.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ option go_package = "github.com/RoboCup-SSL/ssl-game-controller/internal/app/ci"
55
import "ssl_vision_wrapper_tracked.proto";
66
import "ssl_gc_api.proto";
77
import "ssl_gc_referee_message.proto";
8+
import "ssl_vision_geometry.proto";
89

910
// The input format to the GC
1011
message CiInput {
@@ -14,6 +15,8 @@ message CiInput {
1415
optional TrackerWrapperPacket tracker_packet = 2;
1516
// (UI) API input
1617
repeated Input api_inputs = 3;
18+
// Update geometry
19+
optional SSL_GeometryData geometry = 4;
1720
}
1821

1922
// The output format of the GC response

0 commit comments

Comments
 (0)