forked from RoboCup-SSL/ssl-game-controller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ssl_game_controller_common.pb.go
481 lines (417 loc) · 16.6 KB
/
ssl_game_controller_common.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: ssl_game_controller_common.proto
package refproto
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// Team is either blue or yellow
type Team int32
const (
// team not set
Team_UNKNOWN Team = 0
// yellow team
Team_YELLOW Team = 1
// blue team
Team_BLUE Team = 2
)
var Team_name = map[int32]string{
0: "UNKNOWN",
1: "YELLOW",
2: "BLUE",
}
var Team_value = map[string]int32{
"UNKNOWN": 0,
"YELLOW": 1,
"BLUE": 2,
}
func (x Team) Enum() *Team {
p := new(Team)
*p = x
return p
}
func (x Team) String() string {
return proto.EnumName(Team_name, int32(x))
}
func (x *Team) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(Team_value, data, "Team")
if err != nil {
return err
}
*x = Team(value)
return nil
}
func (Team) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_3d09d87af007c4fe, []int{0}
}
type ControllerReply_StatusCode int32
const (
ControllerReply_UNKNOWN_STATUS_CODE ControllerReply_StatusCode = 0
ControllerReply_OK ControllerReply_StatusCode = 1
ControllerReply_REJECTED ControllerReply_StatusCode = 2
)
var ControllerReply_StatusCode_name = map[int32]string{
0: "UNKNOWN_STATUS_CODE",
1: "OK",
2: "REJECTED",
}
var ControllerReply_StatusCode_value = map[string]int32{
"UNKNOWN_STATUS_CODE": 0,
"OK": 1,
"REJECTED": 2,
}
func (x ControllerReply_StatusCode) Enum() *ControllerReply_StatusCode {
p := new(ControllerReply_StatusCode)
*p = x
return p
}
func (x ControllerReply_StatusCode) String() string {
return proto.EnumName(ControllerReply_StatusCode_name, int32(x))
}
func (x *ControllerReply_StatusCode) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(ControllerReply_StatusCode_value, data, "ControllerReply_StatusCode")
if err != nil {
return err
}
*x = ControllerReply_StatusCode(value)
return nil
}
func (ControllerReply_StatusCode) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_3d09d87af007c4fe, []int{2, 0}
}
type ControllerReply_Verification int32
const (
ControllerReply_UNKNOWN_VERIFICATION ControllerReply_Verification = 0
ControllerReply_VERIFIED ControllerReply_Verification = 1
ControllerReply_UNVERIFIED ControllerReply_Verification = 2
)
var ControllerReply_Verification_name = map[int32]string{
0: "UNKNOWN_VERIFICATION",
1: "VERIFIED",
2: "UNVERIFIED",
}
var ControllerReply_Verification_value = map[string]int32{
"UNKNOWN_VERIFICATION": 0,
"VERIFIED": 1,
"UNVERIFIED": 2,
}
func (x ControllerReply_Verification) Enum() *ControllerReply_Verification {
p := new(ControllerReply_Verification)
*p = x
return p
}
func (x ControllerReply_Verification) String() string {
return proto.EnumName(ControllerReply_Verification_name, int32(x))
}
func (x *ControllerReply_Verification) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(ControllerReply_Verification_value, data, "ControllerReply_Verification")
if err != nil {
return err
}
*x = ControllerReply_Verification(value)
return nil
}
func (ControllerReply_Verification) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_3d09d87af007c4fe, []int{2, 1}
}
// BotId is the combination of a team and a robot id
type BotId struct {
// the robot id - a negative value indicates that the id is not set
Id *int32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
// the team that the robot belongs to
Team *Team `protobuf:"varint,2,opt,name=team,enum=Team" json:"team,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BotId) Reset() { *m = BotId{} }
func (m *BotId) String() string { return proto.CompactTextString(m) }
func (*BotId) ProtoMessage() {}
func (*BotId) Descriptor() ([]byte, []int) {
return fileDescriptor_3d09d87af007c4fe, []int{0}
}
func (m *BotId) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BotId.Unmarshal(m, b)
}
func (m *BotId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BotId.Marshal(b, m, deterministic)
}
func (m *BotId) XXX_Merge(src proto.Message) {
xxx_messageInfo_BotId.Merge(m, src)
}
func (m *BotId) XXX_Size() int {
return xxx_messageInfo_BotId.Size(m)
}
func (m *BotId) XXX_DiscardUnknown() {
xxx_messageInfo_BotId.DiscardUnknown(m)
}
var xxx_messageInfo_BotId proto.InternalMessageInfo
func (m *BotId) GetId() int32 {
if m != nil && m.Id != nil {
return *m.Id
}
return 0
}
func (m *BotId) GetTeam() Team {
if m != nil && m.Team != nil {
return *m.Team
}
return Team_UNKNOWN
}
// Location is a 2d-coordinate on the field in ssl-vision coordinate system. Units are in meters.
type Location struct {
// the x-coordinate in [m] in the ssl-vision coordinate system
X *float32 `protobuf:"fixed32,1,req,name=x" json:"x,omitempty"`
// the y-coordinate in [m] in the ssl-vision coordinate system
Y *float32 `protobuf:"fixed32,2,req,name=y" json:"y,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Location) Reset() { *m = Location{} }
func (m *Location) String() string { return proto.CompactTextString(m) }
func (*Location) ProtoMessage() {}
func (*Location) Descriptor() ([]byte, []int) {
return fileDescriptor_3d09d87af007c4fe, []int{1}
}
func (m *Location) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Location.Unmarshal(m, b)
}
func (m *Location) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Location.Marshal(b, m, deterministic)
}
func (m *Location) XXX_Merge(src proto.Message) {
xxx_messageInfo_Location.Merge(m, src)
}
func (m *Location) XXX_Size() int {
return xxx_messageInfo_Location.Size(m)
}
func (m *Location) XXX_DiscardUnknown() {
xxx_messageInfo_Location.DiscardUnknown(m)
}
var xxx_messageInfo_Location proto.InternalMessageInfo
func (m *Location) GetX() float32 {
if m != nil && m.X != nil {
return *m.X
}
return 0
}
func (m *Location) GetY() float32 {
if m != nil && m.Y != nil {
return *m.Y
}
return 0
}
// a reply that is sent by the controller for each request from teams or autoRefs
type ControllerReply struct {
// status_code is an optional code that indicates the result of the last request
StatusCode *ControllerReply_StatusCode `protobuf:"varint,1,opt,name=status_code,json=statusCode,enum=ControllerReply_StatusCode" json:"status_code,omitempty"`
// reason is an optional explanation of the status code
Reason *string `protobuf:"bytes,2,opt,name=reason" json:"reason,omitempty"`
// next_token must be send with the next request, if secure communication is used
// the token is used to avoid replay attacks
// the token is always present in the very first message before the registration starts
// the token is not present, if secure communication is not used
NextToken *string `protobuf:"bytes,3,opt,name=next_token,json=nextToken" json:"next_token,omitempty"`
// verification indicates if the last request could be verified (secure communication)
Verification *ControllerReply_Verification `protobuf:"varint,4,opt,name=verification,enum=ControllerReply_Verification" json:"verification,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ControllerReply) Reset() { *m = ControllerReply{} }
func (m *ControllerReply) String() string { return proto.CompactTextString(m) }
func (*ControllerReply) ProtoMessage() {}
func (*ControllerReply) Descriptor() ([]byte, []int) {
return fileDescriptor_3d09d87af007c4fe, []int{2}
}
func (m *ControllerReply) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ControllerReply.Unmarshal(m, b)
}
func (m *ControllerReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ControllerReply.Marshal(b, m, deterministic)
}
func (m *ControllerReply) XXX_Merge(src proto.Message) {
xxx_messageInfo_ControllerReply.Merge(m, src)
}
func (m *ControllerReply) XXX_Size() int {
return xxx_messageInfo_ControllerReply.Size(m)
}
func (m *ControllerReply) XXX_DiscardUnknown() {
xxx_messageInfo_ControllerReply.DiscardUnknown(m)
}
var xxx_messageInfo_ControllerReply proto.InternalMessageInfo
func (m *ControllerReply) GetStatusCode() ControllerReply_StatusCode {
if m != nil && m.StatusCode != nil {
return *m.StatusCode
}
return ControllerReply_UNKNOWN_STATUS_CODE
}
func (m *ControllerReply) GetReason() string {
if m != nil && m.Reason != nil {
return *m.Reason
}
return ""
}
func (m *ControllerReply) GetNextToken() string {
if m != nil && m.NextToken != nil {
return *m.NextToken
}
return ""
}
func (m *ControllerReply) GetVerification() ControllerReply_Verification {
if m != nil && m.Verification != nil {
return *m.Verification
}
return ControllerReply_UNKNOWN_VERIFICATION
}
// Signature can be added to a request to let it be verfied by the controller
type Signature struct {
// the token that was received with the last controller reply
Token *string `protobuf:"bytes,1,req,name=token" json:"token,omitempty"`
// the PKCS1v15 signature of this message
Pkcs1V15 []byte `protobuf:"bytes,2,req,name=pkcs1v15" json:"pkcs1v15,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Signature) Reset() { *m = Signature{} }
func (m *Signature) String() string { return proto.CompactTextString(m) }
func (*Signature) ProtoMessage() {}
func (*Signature) Descriptor() ([]byte, []int) {
return fileDescriptor_3d09d87af007c4fe, []int{3}
}
func (m *Signature) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Signature.Unmarshal(m, b)
}
func (m *Signature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Signature.Marshal(b, m, deterministic)
}
func (m *Signature) XXX_Merge(src proto.Message) {
xxx_messageInfo_Signature.Merge(m, src)
}
func (m *Signature) XXX_Size() int {
return xxx_messageInfo_Signature.Size(m)
}
func (m *Signature) XXX_DiscardUnknown() {
xxx_messageInfo_Signature.DiscardUnknown(m)
}
var xxx_messageInfo_Signature proto.InternalMessageInfo
func (m *Signature) GetToken() string {
if m != nil && m.Token != nil {
return *m.Token
}
return ""
}
func (m *Signature) GetPkcs1V15() []byte {
if m != nil {
return m.Pkcs1V15
}
return nil
}
// BallSpeedMeasurement is a single measurement sample of the ball speed
type BallSpeedMeasurement struct {
// The UNIX timestamp [μs] when the measurement was taken.
Timestamp *uint64 `protobuf:"varint,1,req,name=timestamp" json:"timestamp,omitempty"`
// the ball speed measurement [m/s]
BallSpeed *float32 `protobuf:"fixed32,2,req,name=ball_speed,json=ballSpeed" json:"ball_speed,omitempty"`
// the estimated initial ball speed (kick speed) [m/s]
InitialBallSpeed *float32 `protobuf:"fixed32,3,opt,name=initial_ball_speed,json=initialBallSpeed" json:"initial_ball_speed,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BallSpeedMeasurement) Reset() { *m = BallSpeedMeasurement{} }
func (m *BallSpeedMeasurement) String() string { return proto.CompactTextString(m) }
func (*BallSpeedMeasurement) ProtoMessage() {}
func (*BallSpeedMeasurement) Descriptor() ([]byte, []int) {
return fileDescriptor_3d09d87af007c4fe, []int{4}
}
func (m *BallSpeedMeasurement) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BallSpeedMeasurement.Unmarshal(m, b)
}
func (m *BallSpeedMeasurement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BallSpeedMeasurement.Marshal(b, m, deterministic)
}
func (m *BallSpeedMeasurement) XXX_Merge(src proto.Message) {
xxx_messageInfo_BallSpeedMeasurement.Merge(m, src)
}
func (m *BallSpeedMeasurement) XXX_Size() int {
return xxx_messageInfo_BallSpeedMeasurement.Size(m)
}
func (m *BallSpeedMeasurement) XXX_DiscardUnknown() {
xxx_messageInfo_BallSpeedMeasurement.DiscardUnknown(m)
}
var xxx_messageInfo_BallSpeedMeasurement proto.InternalMessageInfo
func (m *BallSpeedMeasurement) GetTimestamp() uint64 {
if m != nil && m.Timestamp != nil {
return *m.Timestamp
}
return 0
}
func (m *BallSpeedMeasurement) GetBallSpeed() float32 {
if m != nil && m.BallSpeed != nil {
return *m.BallSpeed
}
return 0
}
func (m *BallSpeedMeasurement) GetInitialBallSpeed() float32 {
if m != nil && m.InitialBallSpeed != nil {
return *m.InitialBallSpeed
}
return 0
}
func init() {
proto.RegisterEnum("Team", Team_name, Team_value)
proto.RegisterEnum("ControllerReply_StatusCode", ControllerReply_StatusCode_name, ControllerReply_StatusCode_value)
proto.RegisterEnum("ControllerReply_Verification", ControllerReply_Verification_name, ControllerReply_Verification_value)
proto.RegisterType((*BotId)(nil), "BotId")
proto.RegisterType((*Location)(nil), "Location")
proto.RegisterType((*ControllerReply)(nil), "ControllerReply")
proto.RegisterType((*Signature)(nil), "Signature")
proto.RegisterType((*BallSpeedMeasurement)(nil), "BallSpeedMeasurement")
}
func init() { proto.RegisterFile("ssl_game_controller_common.proto", fileDescriptor_3d09d87af007c4fe) }
var fileDescriptor_3d09d87af007c4fe = []byte{
// 470 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x52, 0x4d, 0x6f, 0xd3, 0x40,
0x10, 0xed, 0x2e, 0x49, 0x88, 0xa7, 0x51, 0xb0, 0x86, 0x08, 0xcc, 0x47, 0xa5, 0xc8, 0x07, 0x14,
0x10, 0x8a, 0xd4, 0x48, 0x9c, 0x80, 0x43, 0x3e, 0x5c, 0x29, 0x34, 0x24, 0xd2, 0xc6, 0x69, 0xc5,
0xc9, 0xda, 0xda, 0x4b, 0xb5, 0xaa, 0xed, 0xb5, 0xbc, 0x9b, 0x2a, 0x39, 0xf2, 0x07, 0xf9, 0x4d,
0xc8, 0x76, 0xea, 0x06, 0xb8, 0xf9, 0xbd, 0x79, 0x6f, 0xde, 0x78, 0x66, 0xa1, 0xaf, 0x75, 0x1c,
0xdc, 0xf2, 0x44, 0x04, 0xa1, 0x4a, 0x4d, 0xae, 0xe2, 0x58, 0xe4, 0x41, 0xa8, 0x92, 0x44, 0xa5,
0xc3, 0x2c, 0x57, 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