VSSProto 0.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- vssproto-0.0.1/LICENSE +21 -0
- vssproto-0.0.1/PKG-INFO +19 -0
- vssproto-0.0.1/README.md +3 -0
- vssproto-0.0.1/pyproject.toml +26 -0
- vssproto-0.0.1/setup.cfg +4 -0
- vssproto-0.0.1/src/VSSProto.egg-info/PKG-INFO +19 -0
- vssproto-0.0.1/src/VSSProto.egg-info/SOURCES.txt +25 -0
- vssproto-0.0.1/src/VSSProto.egg-info/dependency_links.txt +1 -0
- vssproto-0.0.1/src/VSSProto.egg-info/requires.txt +1 -0
- vssproto-0.0.1/src/VSSProto.egg-info/top_level.txt +1 -0
- vssproto-0.0.1/src/vssproto/__init__.py +0 -0
- vssproto-0.0.1/src/vssproto/referee/__init__.py +5 -0
- vssproto-0.0.1/src/vssproto/referee/vssref_command_pb2.py +26 -0
- vssproto-0.0.1/src/vssproto/referee/vssref_command_pb2.pyi +20 -0
- vssproto-0.0.1/src/vssproto/referee/vssref_common_pb2.py +35 -0
- vssproto-0.0.1/src/vssproto/referee/vssref_common_pb2.pyi +61 -0
- vssproto-0.0.1/src/vssproto/referee/vssref_placement_pb2.py +26 -0
- vssproto-0.0.1/src/vssproto/referee/vssref_placement_pb2.pyi +12 -0
- vssproto-0.0.1/src/vssproto/simulation/__init__.py +5 -0
- vssproto-0.0.1/src/vssproto/simulation/command_pb2.py +27 -0
- vssproto-0.0.1/src/vssproto/simulation/command_pb2.pyi +24 -0
- vssproto-0.0.1/src/vssproto/simulation/common_pb2.py +31 -0
- vssproto-0.0.1/src/vssproto/simulation/common_pb2.pyi +70 -0
- vssproto-0.0.1/src/vssproto/simulation/packet_pb2.py +32 -0
- vssproto-0.0.1/src/vssproto/simulation/packet_pb2.pyi +30 -0
- vssproto-0.0.1/src/vssproto/simulation/replacement_pb2.py +30 -0
- vssproto-0.0.1/src/vssproto/simulation/replacement_pb2.pyi +37 -0
vssproto-0.0.1/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2025 Futebol Mini
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
vssproto-0.0.1/PKG-INFO
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
Metadata-Version: 2.4
|
2
|
+
Name: VSSProto
|
3
|
+
Version: 0.0.1
|
4
|
+
Summary: Protobuf bindings for IEEE Very Small Size Soccer projects
|
5
|
+
Author-email: Felipe Gomes de Melo D'Elia <felipegmelo.42@gmail.com>
|
6
|
+
License-Expression: MIT
|
7
|
+
Project-URL: Homepage, https://github.com/pypa/sampleproject
|
8
|
+
Project-URL: Issues, https://github.com/pypa/sampleproject/issues
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
10
|
+
Classifier: Operating System :: OS Independent
|
11
|
+
Requires-Python: >=3.9
|
12
|
+
Description-Content-Type: text/markdown
|
13
|
+
License-File: LICENSE
|
14
|
+
Requires-Dist: protobuf
|
15
|
+
Dynamic: license-file
|
16
|
+
|
17
|
+
# VSS Simulation Protobuf Python bindings
|
18
|
+
|
19
|
+
This project provides a python package with bindings for the [VSSProto](https://github.com/futebol-mini/VSSProto) messages
|
vssproto-0.0.1/README.md
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
[build-system]
|
2
|
+
requires = ["setuptools >= 77.0.3"]
|
3
|
+
build-backend = "setuptools.build_meta"
|
4
|
+
|
5
|
+
[project]
|
6
|
+
name = "VSSProto"
|
7
|
+
version = "0.0.1"
|
8
|
+
authors = [
|
9
|
+
{ name="Felipe Gomes de Melo D'Elia", email="felipegmelo.42@gmail.com" },
|
10
|
+
]
|
11
|
+
description = "Protobuf bindings for IEEE Very Small Size Soccer projects"
|
12
|
+
readme = "README.md"
|
13
|
+
requires-python = ">=3.9"
|
14
|
+
classifiers = [
|
15
|
+
"Programming Language :: Python :: 3",
|
16
|
+
"Operating System :: OS Independent",
|
17
|
+
]
|
18
|
+
license = "MIT"
|
19
|
+
license-files = ["LICEN[CS]E*"]
|
20
|
+
dependencies = [
|
21
|
+
"protobuf"
|
22
|
+
]
|
23
|
+
|
24
|
+
[project.urls]
|
25
|
+
Homepage = "https://github.com/pypa/sampleproject"
|
26
|
+
Issues = "https://github.com/pypa/sampleproject/issues"
|
vssproto-0.0.1/setup.cfg
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
Metadata-Version: 2.4
|
2
|
+
Name: VSSProto
|
3
|
+
Version: 0.0.1
|
4
|
+
Summary: Protobuf bindings for IEEE Very Small Size Soccer projects
|
5
|
+
Author-email: Felipe Gomes de Melo D'Elia <felipegmelo.42@gmail.com>
|
6
|
+
License-Expression: MIT
|
7
|
+
Project-URL: Homepage, https://github.com/pypa/sampleproject
|
8
|
+
Project-URL: Issues, https://github.com/pypa/sampleproject/issues
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
10
|
+
Classifier: Operating System :: OS Independent
|
11
|
+
Requires-Python: >=3.9
|
12
|
+
Description-Content-Type: text/markdown
|
13
|
+
License-File: LICENSE
|
14
|
+
Requires-Dist: protobuf
|
15
|
+
Dynamic: license-file
|
16
|
+
|
17
|
+
# VSS Simulation Protobuf Python bindings
|
18
|
+
|
19
|
+
This project provides a python package with bindings for the [VSSProto](https://github.com/futebol-mini/VSSProto) messages
|
@@ -0,0 +1,25 @@
|
|
1
|
+
LICENSE
|
2
|
+
README.md
|
3
|
+
pyproject.toml
|
4
|
+
src/VSSProto.egg-info/PKG-INFO
|
5
|
+
src/VSSProto.egg-info/SOURCES.txt
|
6
|
+
src/VSSProto.egg-info/dependency_links.txt
|
7
|
+
src/VSSProto.egg-info/requires.txt
|
8
|
+
src/VSSProto.egg-info/top_level.txt
|
9
|
+
src/vssproto/__init__.py
|
10
|
+
src/vssproto/referee/__init__.py
|
11
|
+
src/vssproto/referee/vssref_command_pb2.py
|
12
|
+
src/vssproto/referee/vssref_command_pb2.pyi
|
13
|
+
src/vssproto/referee/vssref_common_pb2.py
|
14
|
+
src/vssproto/referee/vssref_common_pb2.pyi
|
15
|
+
src/vssproto/referee/vssref_placement_pb2.py
|
16
|
+
src/vssproto/referee/vssref_placement_pb2.pyi
|
17
|
+
src/vssproto/simulation/__init__.py
|
18
|
+
src/vssproto/simulation/command_pb2.py
|
19
|
+
src/vssproto/simulation/command_pb2.pyi
|
20
|
+
src/vssproto/simulation/common_pb2.py
|
21
|
+
src/vssproto/simulation/common_pb2.pyi
|
22
|
+
src/vssproto/simulation/packet_pb2.py
|
23
|
+
src/vssproto/simulation/packet_pb2.pyi
|
24
|
+
src/vssproto/simulation/replacement_pb2.py
|
25
|
+
src/vssproto/simulation/replacement_pb2.pyi
|
@@ -0,0 +1 @@
|
|
1
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
protobuf
|
@@ -0,0 +1 @@
|
|
1
|
+
vssproto
|
File without changes
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: vssref_command.proto
|
4
|
+
"""Generated protocol buffer code."""
|
5
|
+
from google.protobuf.internal import builder as _builder
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
9
|
+
# @@protoc_insertion_point(imports)
|
10
|
+
|
11
|
+
_sym_db = _symbol_database.Default()
|
12
|
+
|
13
|
+
|
14
|
+
import vssref_common_pb2 as vssref__common__pb2
|
15
|
+
|
16
|
+
|
17
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x14vssref_command.proto\x12\x12VSSRef.ref_to_team\x1a\x13vssref_common.proto\"\xa9\x01\n\x0eVSSRef_Command\x12\x1a\n\x04\x66oul\x18\x01 \x01(\x0e\x32\x0c.VSSRef.Foul\x12 \n\tteamcolor\x18\x02 \x01(\x0e\x32\r.VSSRef.Color\x12&\n\x0c\x66oulQuadrant\x18\x03 \x01(\x0e\x32\x10.VSSRef.Quadrant\x12\x11\n\ttimestamp\x18\x04 \x01(\x01\x12\x1e\n\x08gameHalf\x18\x05 \x01(\x0e\x32\x0c.VSSRef.Halfb\x06proto3')
|
18
|
+
|
19
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
20
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'vssref_command_pb2', globals())
|
21
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
22
|
+
|
23
|
+
DESCRIPTOR._options = None
|
24
|
+
_VSSREF_COMMAND._serialized_start=66
|
25
|
+
_VSSREF_COMMAND._serialized_end=235
|
26
|
+
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import vssref_common_pb2 as _vssref_common_pb2
|
2
|
+
from google.protobuf import descriptor as _descriptor
|
3
|
+
from google.protobuf import message as _message
|
4
|
+
from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
|
5
|
+
|
6
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
7
|
+
|
8
|
+
class VSSRef_Command(_message.Message):
|
9
|
+
__slots__ = ["foul", "foulQuadrant", "gameHalf", "teamcolor", "timestamp"]
|
10
|
+
FOULQUADRANT_FIELD_NUMBER: _ClassVar[int]
|
11
|
+
FOUL_FIELD_NUMBER: _ClassVar[int]
|
12
|
+
GAMEHALF_FIELD_NUMBER: _ClassVar[int]
|
13
|
+
TEAMCOLOR_FIELD_NUMBER: _ClassVar[int]
|
14
|
+
TIMESTAMP_FIELD_NUMBER: _ClassVar[int]
|
15
|
+
foul: _vssref_common_pb2.Foul
|
16
|
+
foulQuadrant: _vssref_common_pb2.Quadrant
|
17
|
+
gameHalf: _vssref_common_pb2.Half
|
18
|
+
teamcolor: _vssref_common_pb2.Color
|
19
|
+
timestamp: float
|
20
|
+
def __init__(self, foul: _Optional[_Union[_vssref_common_pb2.Foul, str]] = ..., teamcolor: _Optional[_Union[_vssref_common_pb2.Color, str]] = ..., foulQuadrant: _Optional[_Union[_vssref_common_pb2.Quadrant, str]] = ..., timestamp: _Optional[float] = ..., gameHalf: _Optional[_Union[_vssref_common_pb2.Half, str]] = ...) -> None: ...
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: vssref_common.proto
|
4
|
+
"""Generated protocol buffer code."""
|
5
|
+
from google.protobuf.internal import builder as _builder
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
9
|
+
# @@protoc_insertion_point(imports)
|
10
|
+
|
11
|
+
_sym_db = _symbol_database.Default()
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x13vssref_common.proto\x12\x06VSSRef\"D\n\x05Robot\x12\x10\n\x08robot_id\x18\x01 \x01(\r\x12\t\n\x01x\x18\x02 \x01(\x01\x12\t\n\x01y\x18\x03 \x01(\x01\x12\x13\n\x0borientation\x18\x04 \x01(\x01\"H\n\x05\x46rame\x12 \n\tteamColor\x18\x01 \x01(\x0e\x32\r.VSSRef.Color\x12\x1d\n\x06robots\x18\x02 \x03(\x0b\x32\r.VSSRef.Robot*s\n\x04\x46oul\x12\r\n\tFREE_KICK\x10\x00\x12\x10\n\x0cPENALTY_KICK\x10\x01\x12\r\n\tGOAL_KICK\x10\x02\x12\r\n\tFREE_BALL\x10\x03\x12\x0b\n\x07KICKOFF\x10\x04\x12\x08\n\x04STOP\x10\x05\x12\x0b\n\x07GAME_ON\x10\x06\x12\x08\n\x04HALT\x10\x07*\'\n\x05\x43olor\x12\x08\n\x04\x42LUE\x10\x00\x12\n\n\x06YELLOW\x10\x01\x12\x08\n\x04NONE\x10\x02*[\n\x08Quadrant\x12\x0f\n\x0bNO_QUADRANT\x10\x00\x12\x0e\n\nQUADRANT_1\x10\x01\x12\x0e\n\nQUADRANT_2\x10\x02\x12\x0e\n\nQUADRANT_3\x10\x03\x12\x0e\n\nQUADRANT_4\x10\x04*~\n\x04Half\x12\x0b\n\x07NO_HALF\x10\x00\x12\x0e\n\nFIRST_HALF\x10\x01\x12\x0f\n\x0bSECOND_HALF\x10\x02\x12\x17\n\x13OVERTIME_FIRST_HALF\x10\x03\x12\x18\n\x14OVERTIME_SECOND_HALF\x10\x04\x12\x15\n\x11PENALTY_SHOOTOUTS\x10\x05\x62\x06proto3')
|
17
|
+
|
18
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
19
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'vssref_common_pb2', globals())
|
20
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
21
|
+
|
22
|
+
DESCRIPTOR._options = None
|
23
|
+
_FOUL._serialized_start=175
|
24
|
+
_FOUL._serialized_end=290
|
25
|
+
_COLOR._serialized_start=292
|
26
|
+
_COLOR._serialized_end=331
|
27
|
+
_QUADRANT._serialized_start=333
|
28
|
+
_QUADRANT._serialized_end=424
|
29
|
+
_HALF._serialized_start=426
|
30
|
+
_HALF._serialized_end=552
|
31
|
+
_ROBOT._serialized_start=31
|
32
|
+
_ROBOT._serialized_end=99
|
33
|
+
_FRAME._serialized_start=101
|
34
|
+
_FRAME._serialized_end=173
|
35
|
+
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,61 @@
|
|
1
|
+
from google.protobuf.internal import containers as _containers
|
2
|
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
3
|
+
from google.protobuf import descriptor as _descriptor
|
4
|
+
from google.protobuf import message as _message
|
5
|
+
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
6
|
+
|
7
|
+
BLUE: Color
|
8
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
9
|
+
FIRST_HALF: Half
|
10
|
+
FREE_BALL: Foul
|
11
|
+
FREE_KICK: Foul
|
12
|
+
GAME_ON: Foul
|
13
|
+
GOAL_KICK: Foul
|
14
|
+
HALT: Foul
|
15
|
+
KICKOFF: Foul
|
16
|
+
NONE: Color
|
17
|
+
NO_HALF: Half
|
18
|
+
NO_QUADRANT: Quadrant
|
19
|
+
OVERTIME_FIRST_HALF: Half
|
20
|
+
OVERTIME_SECOND_HALF: Half
|
21
|
+
PENALTY_KICK: Foul
|
22
|
+
PENALTY_SHOOTOUTS: Half
|
23
|
+
QUADRANT_1: Quadrant
|
24
|
+
QUADRANT_2: Quadrant
|
25
|
+
QUADRANT_3: Quadrant
|
26
|
+
QUADRANT_4: Quadrant
|
27
|
+
SECOND_HALF: Half
|
28
|
+
STOP: Foul
|
29
|
+
YELLOW: Color
|
30
|
+
|
31
|
+
class Frame(_message.Message):
|
32
|
+
__slots__ = ["robots", "teamColor"]
|
33
|
+
ROBOTS_FIELD_NUMBER: _ClassVar[int]
|
34
|
+
TEAMCOLOR_FIELD_NUMBER: _ClassVar[int]
|
35
|
+
robots: _containers.RepeatedCompositeFieldContainer[Robot]
|
36
|
+
teamColor: Color
|
37
|
+
def __init__(self, teamColor: _Optional[_Union[Color, str]] = ..., robots: _Optional[_Iterable[_Union[Robot, _Mapping]]] = ...) -> None: ...
|
38
|
+
|
39
|
+
class Robot(_message.Message):
|
40
|
+
__slots__ = ["orientation", "robot_id", "x", "y"]
|
41
|
+
ORIENTATION_FIELD_NUMBER: _ClassVar[int]
|
42
|
+
ROBOT_ID_FIELD_NUMBER: _ClassVar[int]
|
43
|
+
X_FIELD_NUMBER: _ClassVar[int]
|
44
|
+
Y_FIELD_NUMBER: _ClassVar[int]
|
45
|
+
orientation: float
|
46
|
+
robot_id: int
|
47
|
+
x: float
|
48
|
+
y: float
|
49
|
+
def __init__(self, robot_id: _Optional[int] = ..., x: _Optional[float] = ..., y: _Optional[float] = ..., orientation: _Optional[float] = ...) -> None: ...
|
50
|
+
|
51
|
+
class Foul(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
52
|
+
__slots__ = []
|
53
|
+
|
54
|
+
class Color(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
55
|
+
__slots__ = []
|
56
|
+
|
57
|
+
class Quadrant(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
58
|
+
__slots__ = []
|
59
|
+
|
60
|
+
class Half(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
61
|
+
__slots__ = []
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: vssref_placement.proto
|
4
|
+
"""Generated protocol buffer code."""
|
5
|
+
from google.protobuf.internal import builder as _builder
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
9
|
+
# @@protoc_insertion_point(imports)
|
10
|
+
|
11
|
+
_sym_db = _symbol_database.Default()
|
12
|
+
|
13
|
+
|
14
|
+
import vssref_common_pb2 as vssref__common__pb2
|
15
|
+
|
16
|
+
|
17
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x16vssref_placement.proto\x12\x12VSSRef.team_to_ref\x1a\x13vssref_common.proto\"0\n\x10VSSRef_Placement\x12\x1c\n\x05world\x18\x01 \x01(\x0b\x32\r.VSSRef.Frameb\x06proto3')
|
18
|
+
|
19
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
20
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'vssref_placement_pb2', globals())
|
21
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
22
|
+
|
23
|
+
DESCRIPTOR._options = None
|
24
|
+
_VSSREF_PLACEMENT._serialized_start=67
|
25
|
+
_VSSREF_PLACEMENT._serialized_end=115
|
26
|
+
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import vssref_common_pb2 as _vssref_common_pb2
|
2
|
+
from google.protobuf import descriptor as _descriptor
|
3
|
+
from google.protobuf import message as _message
|
4
|
+
from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
5
|
+
|
6
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
7
|
+
|
8
|
+
class VSSRef_Placement(_message.Message):
|
9
|
+
__slots__ = ["world"]
|
10
|
+
WORLD_FIELD_NUMBER: _ClassVar[int]
|
11
|
+
world: _vssref_common_pb2.Frame
|
12
|
+
def __init__(self, world: _Optional[_Union[_vssref_common_pb2.Frame, _Mapping]] = ...) -> None: ...
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: command.proto
|
4
|
+
"""Generated protocol buffer code."""
|
5
|
+
from google.protobuf.internal import builder as _builder
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
9
|
+
# @@protoc_insertion_point(imports)
|
10
|
+
|
11
|
+
_sym_db = _symbol_database.Default()
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\rcommand.proto\x12\x17\x66ira_message.sim_to_ref\"R\n\x07\x43ommand\x12\n\n\x02id\x18\x01 \x01(\r\x12\x12\n\nyellowteam\x18\x02 \x01(\x08\x12\x12\n\nwheel_left\x18\x06 \x01(\x01\x12\x13\n\x0bwheel_right\x18\x07 \x01(\x01\"D\n\x08\x43ommands\x12\x38\n\x0erobot_commands\x18\x01 \x03(\x0b\x32 .fira_message.sim_to_ref.Commandb\x06proto3')
|
17
|
+
|
18
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
19
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'command_pb2', globals())
|
20
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
21
|
+
|
22
|
+
DESCRIPTOR._options = None
|
23
|
+
_COMMAND._serialized_start=42
|
24
|
+
_COMMAND._serialized_end=124
|
25
|
+
_COMMANDS._serialized_start=126
|
26
|
+
_COMMANDS._serialized_end=194
|
27
|
+
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,24 @@
|
|
1
|
+
from google.protobuf.internal import containers as _containers
|
2
|
+
from google.protobuf import descriptor as _descriptor
|
3
|
+
from google.protobuf import message as _message
|
4
|
+
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
5
|
+
|
6
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
7
|
+
|
8
|
+
class Command(_message.Message):
|
9
|
+
__slots__ = ["id", "wheel_left", "wheel_right", "yellowteam"]
|
10
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
11
|
+
WHEEL_LEFT_FIELD_NUMBER: _ClassVar[int]
|
12
|
+
WHEEL_RIGHT_FIELD_NUMBER: _ClassVar[int]
|
13
|
+
YELLOWTEAM_FIELD_NUMBER: _ClassVar[int]
|
14
|
+
id: int
|
15
|
+
wheel_left: float
|
16
|
+
wheel_right: float
|
17
|
+
yellowteam: bool
|
18
|
+
def __init__(self, id: _Optional[int] = ..., yellowteam: bool = ..., wheel_left: _Optional[float] = ..., wheel_right: _Optional[float] = ...) -> None: ...
|
19
|
+
|
20
|
+
class Commands(_message.Message):
|
21
|
+
__slots__ = ["robot_commands"]
|
22
|
+
ROBOT_COMMANDS_FIELD_NUMBER: _ClassVar[int]
|
23
|
+
robot_commands: _containers.RepeatedCompositeFieldContainer[Command]
|
24
|
+
def __init__(self, robot_commands: _Optional[_Iterable[_Union[Command, _Mapping]]] = ...) -> None: ...
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: common.proto
|
4
|
+
"""Generated protocol buffer code."""
|
5
|
+
from google.protobuf.internal import builder as _builder
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
9
|
+
# @@protoc_insertion_point(imports)
|
10
|
+
|
11
|
+
_sym_db = _symbol_database.Default()
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0c\x63ommon.proto\x12\x0c\x66ira_message\"K\n\x04\x42\x61ll\x12\t\n\x01x\x18\x01 \x01(\x01\x12\t\n\x01y\x18\x02 \x01(\x01\x12\t\n\x01z\x18\x03 \x01(\x01\x12\n\n\x02vx\x18\x04 \x01(\x01\x12\n\n\x02vy\x18\x05 \x01(\x01\x12\n\n\x02vz\x18\x06 \x01(\x01\"r\n\x05Robot\x12\x10\n\x08robot_id\x18\x01 \x01(\r\x12\t\n\x01x\x18\x02 \x01(\x01\x12\t\n\x01y\x18\x03 \x01(\x01\x12\x13\n\x0borientation\x18\x04 \x01(\x01\x12\n\n\x02vx\x18\x05 \x01(\x01\x12\n\n\x02vy\x18\x06 \x01(\x01\x12\x14\n\x0cvorientation\x18\x07 \x01(\x01\"\xaa\x01\n\x05\x46ield\x12\r\n\x05width\x18\x01 \x01(\x01\x12\x0e\n\x06length\x18\x02 \x01(\x01\x12\x12\n\ngoal_width\x18\x03 \x01(\x01\x12\x12\n\ngoal_depth\x18\x04 \x01(\x01\x12\x15\n\rcenter_radius\x18\x05 \x01(\x01\x12\x15\n\rpenalty_width\x18\x06 \x01(\x01\x12\x15\n\rpenalty_depth\x18\x07 \x01(\x01\x12\x15\n\rpenalty_point\x18\x08 \x01(\x01\"\x7f\n\x05\x46rame\x12 \n\x04\x62\x61ll\x18\x01 \x01(\x0b\x32\x12.fira_message.Ball\x12*\n\rrobots_yellow\x18\x02 \x03(\x0b\x32\x13.fira_message.Robot\x12(\n\x0brobots_blue\x18\x03 \x03(\x0b\x32\x13.fira_message.Robotb\x06proto3')
|
17
|
+
|
18
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
19
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'common_pb2', globals())
|
20
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
21
|
+
|
22
|
+
DESCRIPTOR._options = None
|
23
|
+
_BALL._serialized_start=30
|
24
|
+
_BALL._serialized_end=105
|
25
|
+
_ROBOT._serialized_start=107
|
26
|
+
_ROBOT._serialized_end=221
|
27
|
+
_FIELD._serialized_start=224
|
28
|
+
_FIELD._serialized_end=394
|
29
|
+
_FRAME._serialized_start=396
|
30
|
+
_FRAME._serialized_end=523
|
31
|
+
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,70 @@
|
|
1
|
+
from google.protobuf.internal import containers as _containers
|
2
|
+
from google.protobuf import descriptor as _descriptor
|
3
|
+
from google.protobuf import message as _message
|
4
|
+
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
5
|
+
|
6
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
7
|
+
|
8
|
+
class Ball(_message.Message):
|
9
|
+
__slots__ = ["vx", "vy", "vz", "x", "y", "z"]
|
10
|
+
VX_FIELD_NUMBER: _ClassVar[int]
|
11
|
+
VY_FIELD_NUMBER: _ClassVar[int]
|
12
|
+
VZ_FIELD_NUMBER: _ClassVar[int]
|
13
|
+
X_FIELD_NUMBER: _ClassVar[int]
|
14
|
+
Y_FIELD_NUMBER: _ClassVar[int]
|
15
|
+
Z_FIELD_NUMBER: _ClassVar[int]
|
16
|
+
vx: float
|
17
|
+
vy: float
|
18
|
+
vz: float
|
19
|
+
x: float
|
20
|
+
y: float
|
21
|
+
z: float
|
22
|
+
def __init__(self, x: _Optional[float] = ..., y: _Optional[float] = ..., z: _Optional[float] = ..., vx: _Optional[float] = ..., vy: _Optional[float] = ..., vz: _Optional[float] = ...) -> None: ...
|
23
|
+
|
24
|
+
class Field(_message.Message):
|
25
|
+
__slots__ = ["center_radius", "goal_depth", "goal_width", "length", "penalty_depth", "penalty_point", "penalty_width", "width"]
|
26
|
+
CENTER_RADIUS_FIELD_NUMBER: _ClassVar[int]
|
27
|
+
GOAL_DEPTH_FIELD_NUMBER: _ClassVar[int]
|
28
|
+
GOAL_WIDTH_FIELD_NUMBER: _ClassVar[int]
|
29
|
+
LENGTH_FIELD_NUMBER: _ClassVar[int]
|
30
|
+
PENALTY_DEPTH_FIELD_NUMBER: _ClassVar[int]
|
31
|
+
PENALTY_POINT_FIELD_NUMBER: _ClassVar[int]
|
32
|
+
PENALTY_WIDTH_FIELD_NUMBER: _ClassVar[int]
|
33
|
+
WIDTH_FIELD_NUMBER: _ClassVar[int]
|
34
|
+
center_radius: float
|
35
|
+
goal_depth: float
|
36
|
+
goal_width: float
|
37
|
+
length: float
|
38
|
+
penalty_depth: float
|
39
|
+
penalty_point: float
|
40
|
+
penalty_width: float
|
41
|
+
width: float
|
42
|
+
def __init__(self, width: _Optional[float] = ..., length: _Optional[float] = ..., goal_width: _Optional[float] = ..., goal_depth: _Optional[float] = ..., center_radius: _Optional[float] = ..., penalty_width: _Optional[float] = ..., penalty_depth: _Optional[float] = ..., penalty_point: _Optional[float] = ...) -> None: ...
|
43
|
+
|
44
|
+
class Frame(_message.Message):
|
45
|
+
__slots__ = ["ball", "robots_blue", "robots_yellow"]
|
46
|
+
BALL_FIELD_NUMBER: _ClassVar[int]
|
47
|
+
ROBOTS_BLUE_FIELD_NUMBER: _ClassVar[int]
|
48
|
+
ROBOTS_YELLOW_FIELD_NUMBER: _ClassVar[int]
|
49
|
+
ball: Ball
|
50
|
+
robots_blue: _containers.RepeatedCompositeFieldContainer[Robot]
|
51
|
+
robots_yellow: _containers.RepeatedCompositeFieldContainer[Robot]
|
52
|
+
def __init__(self, ball: _Optional[_Union[Ball, _Mapping]] = ..., robots_yellow: _Optional[_Iterable[_Union[Robot, _Mapping]]] = ..., robots_blue: _Optional[_Iterable[_Union[Robot, _Mapping]]] = ...) -> None: ...
|
53
|
+
|
54
|
+
class Robot(_message.Message):
|
55
|
+
__slots__ = ["orientation", "robot_id", "vorientation", "vx", "vy", "x", "y"]
|
56
|
+
ORIENTATION_FIELD_NUMBER: _ClassVar[int]
|
57
|
+
ROBOT_ID_FIELD_NUMBER: _ClassVar[int]
|
58
|
+
VORIENTATION_FIELD_NUMBER: _ClassVar[int]
|
59
|
+
VX_FIELD_NUMBER: _ClassVar[int]
|
60
|
+
VY_FIELD_NUMBER: _ClassVar[int]
|
61
|
+
X_FIELD_NUMBER: _ClassVar[int]
|
62
|
+
Y_FIELD_NUMBER: _ClassVar[int]
|
63
|
+
orientation: float
|
64
|
+
robot_id: int
|
65
|
+
vorientation: float
|
66
|
+
vx: float
|
67
|
+
vy: float
|
68
|
+
x: float
|
69
|
+
y: float
|
70
|
+
def __init__(self, robot_id: _Optional[int] = ..., x: _Optional[float] = ..., y: _Optional[float] = ..., orientation: _Optional[float] = ..., vx: _Optional[float] = ..., vy: _Optional[float] = ..., vorientation: _Optional[float] = ...) -> None: ...
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: packet.proto
|
4
|
+
"""Generated protocol buffer code."""
|
5
|
+
from google.protobuf.internal import builder as _builder
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
9
|
+
# @@protoc_insertion_point(imports)
|
10
|
+
|
11
|
+
_sym_db = _symbol_database.Default()
|
12
|
+
|
13
|
+
|
14
|
+
import command_pb2 as command__pb2
|
15
|
+
import replacement_pb2 as replacement__pb2
|
16
|
+
import common_pb2 as common__pb2
|
17
|
+
|
18
|
+
|
19
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0cpacket.proto\x12\x17\x66ira_message.sim_to_ref\x1a\rcommand.proto\x1a\x11replacement.proto\x1a\x0c\x63ommon.proto\"o\n\x06Packet\x12.\n\x03\x63md\x18\x01 \x01(\x0b\x32!.fira_message.sim_to_ref.Commands\x12\x35\n\x07replace\x18\x02 \x01(\x0b\x32$.fira_message.sim_to_ref.Replacement\"\x8d\x01\n\x0b\x45nvironment\x12\x0c\n\x04step\x18\x01 \x01(\r\x12\"\n\x05\x66rame\x18\x02 \x01(\x0b\x32\x13.fira_message.Frame\x12\"\n\x05\x66ield\x18\x03 \x01(\x0b\x32\x13.fira_message.Field\x12\x12\n\ngoals_blue\x18\x04 \x01(\r\x12\x14\n\x0cgoals_yellow\x18\x05 \x01(\r2_\n\x08Simulate\x12S\n\x08Simulate\x12\x1f.fira_message.sim_to_ref.Packet\x1a$.fira_message.sim_to_ref.Environment\"\x00\x62\x06proto3')
|
20
|
+
|
21
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
22
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'packet_pb2', globals())
|
23
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
24
|
+
|
25
|
+
DESCRIPTOR._options = None
|
26
|
+
_PACKET._serialized_start=89
|
27
|
+
_PACKET._serialized_end=200
|
28
|
+
_ENVIRONMENT._serialized_start=203
|
29
|
+
_ENVIRONMENT._serialized_end=344
|
30
|
+
_SIMULATE._serialized_start=346
|
31
|
+
_SIMULATE._serialized_end=441
|
32
|
+
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import command_pb2 as _command_pb2
|
2
|
+
import replacement_pb2 as _replacement_pb2
|
3
|
+
import common_pb2 as _common_pb2
|
4
|
+
from google.protobuf import descriptor as _descriptor
|
5
|
+
from google.protobuf import message as _message
|
6
|
+
from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
7
|
+
|
8
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
9
|
+
|
10
|
+
class Environment(_message.Message):
|
11
|
+
__slots__ = ["field", "frame", "goals_blue", "goals_yellow", "step"]
|
12
|
+
FIELD_FIELD_NUMBER: _ClassVar[int]
|
13
|
+
FRAME_FIELD_NUMBER: _ClassVar[int]
|
14
|
+
GOALS_BLUE_FIELD_NUMBER: _ClassVar[int]
|
15
|
+
GOALS_YELLOW_FIELD_NUMBER: _ClassVar[int]
|
16
|
+
STEP_FIELD_NUMBER: _ClassVar[int]
|
17
|
+
field: _common_pb2.Field
|
18
|
+
frame: _common_pb2.Frame
|
19
|
+
goals_blue: int
|
20
|
+
goals_yellow: int
|
21
|
+
step: int
|
22
|
+
def __init__(self, step: _Optional[int] = ..., frame: _Optional[_Union[_common_pb2.Frame, _Mapping]] = ..., field: _Optional[_Union[_common_pb2.Field, _Mapping]] = ..., goals_blue: _Optional[int] = ..., goals_yellow: _Optional[int] = ...) -> None: ...
|
23
|
+
|
24
|
+
class Packet(_message.Message):
|
25
|
+
__slots__ = ["cmd", "replace"]
|
26
|
+
CMD_FIELD_NUMBER: _ClassVar[int]
|
27
|
+
REPLACE_FIELD_NUMBER: _ClassVar[int]
|
28
|
+
cmd: _command_pb2.Commands
|
29
|
+
replace: _replacement_pb2.Replacement
|
30
|
+
def __init__(self, cmd: _Optional[_Union[_command_pb2.Commands, _Mapping]] = ..., replace: _Optional[_Union[_replacement_pb2.Replacement, _Mapping]] = ...) -> None: ...
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: replacement.proto
|
4
|
+
"""Generated protocol buffer code."""
|
5
|
+
from google.protobuf.internal import builder as _builder
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
9
|
+
# @@protoc_insertion_point(imports)
|
10
|
+
|
11
|
+
_sym_db = _symbol_database.Default()
|
12
|
+
|
13
|
+
|
14
|
+
import common_pb2 as common__pb2
|
15
|
+
|
16
|
+
|
17
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x11replacement.proto\x12\x17\x66ira_message.sim_to_ref\x1a\x0c\x63ommon.proto\"]\n\x10RobotReplacement\x12%\n\x08position\x18\x01 \x01(\x0b\x32\x13.fira_message.Robot\x12\x12\n\nyellowteam\x18\x05 \x01(\x08\x12\x0e\n\x06turnon\x18\x06 \x01(\x08\"?\n\x0f\x42\x61llReplacement\x12\t\n\x01x\x18\x01 \x01(\x01\x12\t\n\x01y\x18\x02 \x01(\x01\x12\n\n\x02vx\x18\x03 \x01(\x01\x12\n\n\x02vy\x18\x04 \x01(\x01\"\x80\x01\n\x0bReplacement\x12\x36\n\x04\x62\x61ll\x18\x01 \x01(\x0b\x32(.fira_message.sim_to_ref.BallReplacement\x12\x39\n\x06robots\x18\x02 \x03(\x0b\x32).fira_message.sim_to_ref.RobotReplacementb\x06proto3')
|
18
|
+
|
19
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
20
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'replacement_pb2', globals())
|
21
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
22
|
+
|
23
|
+
DESCRIPTOR._options = None
|
24
|
+
_ROBOTREPLACEMENT._serialized_start=60
|
25
|
+
_ROBOTREPLACEMENT._serialized_end=153
|
26
|
+
_BALLREPLACEMENT._serialized_start=155
|
27
|
+
_BALLREPLACEMENT._serialized_end=218
|
28
|
+
_REPLACEMENT._serialized_start=221
|
29
|
+
_REPLACEMENT._serialized_end=349
|
30
|
+
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import common_pb2 as _common_pb2
|
2
|
+
from google.protobuf.internal import containers as _containers
|
3
|
+
from google.protobuf import descriptor as _descriptor
|
4
|
+
from google.protobuf import message as _message
|
5
|
+
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
6
|
+
|
7
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
8
|
+
|
9
|
+
class BallReplacement(_message.Message):
|
10
|
+
__slots__ = ["vx", "vy", "x", "y"]
|
11
|
+
VX_FIELD_NUMBER: _ClassVar[int]
|
12
|
+
VY_FIELD_NUMBER: _ClassVar[int]
|
13
|
+
X_FIELD_NUMBER: _ClassVar[int]
|
14
|
+
Y_FIELD_NUMBER: _ClassVar[int]
|
15
|
+
vx: float
|
16
|
+
vy: float
|
17
|
+
x: float
|
18
|
+
y: float
|
19
|
+
def __init__(self, x: _Optional[float] = ..., y: _Optional[float] = ..., vx: _Optional[float] = ..., vy: _Optional[float] = ...) -> None: ...
|
20
|
+
|
21
|
+
class Replacement(_message.Message):
|
22
|
+
__slots__ = ["ball", "robots"]
|
23
|
+
BALL_FIELD_NUMBER: _ClassVar[int]
|
24
|
+
ROBOTS_FIELD_NUMBER: _ClassVar[int]
|
25
|
+
ball: BallReplacement
|
26
|
+
robots: _containers.RepeatedCompositeFieldContainer[RobotReplacement]
|
27
|
+
def __init__(self, ball: _Optional[_Union[BallReplacement, _Mapping]] = ..., robots: _Optional[_Iterable[_Union[RobotReplacement, _Mapping]]] = ...) -> None: ...
|
28
|
+
|
29
|
+
class RobotReplacement(_message.Message):
|
30
|
+
__slots__ = ["position", "turnon", "yellowteam"]
|
31
|
+
POSITION_FIELD_NUMBER: _ClassVar[int]
|
32
|
+
TURNON_FIELD_NUMBER: _ClassVar[int]
|
33
|
+
YELLOWTEAM_FIELD_NUMBER: _ClassVar[int]
|
34
|
+
position: _common_pb2.Robot
|
35
|
+
turnon: bool
|
36
|
+
yellowteam: bool
|
37
|
+
def __init__(self, position: _Optional[_Union[_common_pb2.Robot, _Mapping]] = ..., yellowteam: bool = ..., turnon: bool = ...) -> None: ...
|