Skip to content

Commit 7f02553

Browse files
committed
feature: Update protobuf files to support game-controller 2.0
1 parent fb530f8 commit 7f02553

File tree

6 files changed

+6597
-5725
lines changed

6 files changed

+6597
-5725
lines changed

src/proto/ssl_game_controller_common.proto

Lines changed: 0 additions & 72 deletions
This file was deleted.

src/proto/ssl_gc_common.proto

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
syntax = "proto2";
2+
3+
option go_package = "github.com/RoboCup-SSL/ssl-game-controller/internal/app/state";
4+
5+
// Team is either blue or yellow
6+
enum Team {
7+
// team not set
8+
UNKNOWN = 0;
9+
// yellow team
10+
YELLOW = 1;
11+
// blue team
12+
BLUE = 2;
13+
}
14+
15+
// RobotId is the combination of a team and a robot id
16+
message RobotId {
17+
// the robot number
18+
optional uint32 id = 1;
19+
// the team that the robot belongs to
20+
optional Team team = 2;
21+
}
22+
23+
// Division denotes the current division, which influences some rules
24+
enum Division {
25+
DIV_UNKNOWN = 0;
26+
DIV_A = 1;
27+
DIV_B = 2;
28+
}

0 commit comments

Comments
 (0)