Skip to content

artifacts

ConstructionArea #

Bases: Pose

Model for construction area. Coordinates indicate the center of the tribune.

Source code in cogip/models/artifacts.py
21
22
23
24
25
26
27
28
29
30
31
class ConstructionArea(Pose):
    """
    Model for construction area.
    Coordinates indicate the center of the tribune.
    """

    id: ConstructionAreaID
    length: float
    width: float = 450
    tribune_level: int = 0
    enabled: bool = True

ConstructionAreaID #

Bases: IntEnum

Enum to identify construction areas.

Source code in cogip/models/artifacts.py
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
class ConstructionAreaID(IntEnum):
    """
    Enum to identify construction areas.
    """

    LocalBottomSmall = auto()
    LocalBottomLarge1 = auto()
    LocalBottomLarge2 = auto()
    LocalBottomLarge3 = auto()
    OppositeBottomSmall = auto()
    OppositeSideLarge1 = auto()
    OppositeSideLarge2 = auto()
    OppositeSideLarge3 = auto()

ConstructionAreaLarge #

Bases: ConstructionArea

Model for large construction area. Coordinates indicate the center of the tribune.

Source code in cogip/models/artifacts.py
43
44
45
46
47
48
49
class ConstructionAreaLarge(ConstructionArea):
    """
    Model for large construction area.
    Coordinates indicate the center of the tribune.
    """

    length: float = 450

ConstructionAreaSmall #

Bases: ConstructionArea

Model for small construction area. Coordinates indicate the center of the tribune.

Source code in cogip/models/artifacts.py
34
35
36
37
38
39
40
class ConstructionAreaSmall(ConstructionArea):
    """
    Model for small construction area.
    Coordinates indicate the center of the tribune.
    """

    length: float = 150

FixedObstacle #

Bases: Vertex

Model for fixed obstacles.

Source code in cogip/models/artifacts.py
132
133
134
135
136
137
138
139
140
class FixedObstacle(Vertex):
    """
    Model for fixed obstacles.
    """

    id: FixedObstacleID
    length: float
    width: float
    enabled: bool = True

FixedObstacleID #

Bases: IntEnum

Enum to identify fixed obstacles.

Source code in cogip/models/artifacts.py
116
117
118
119
120
121
122
123
124
125
126
127
128
129
class FixedObstacleID(IntEnum):
    """
    Enum to identify fixed obstacles.
    """

    Ramp = auto()
    Scene = auto()
    PitArea = auto()
    PamiStartArea = auto()
    Pami5Path = auto()
    OpponentRamp = auto()
    OpponentScene = auto()
    OpponentPitArea = auto()
    Backstage = auto()

Tribune #

Bases: Pose

Model for raw material stock. Coordinates indicate the center of the tribune.

Source code in cogip/models/artifacts.py
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
class Tribune(Pose):
    """
    Model for raw material stock.
    Coordinates indicate the center of the tribune.
    """

    id: TribuneID
    length: float = 400.0
    width: float = 100.0
    column_count: int = 4
    platform_count: int = 2
    levels: int = 0
    construction_area: ConstructionAreaID | None = None
    private: bool = False
    enabled: bool = True

TribuneID #

Bases: IntEnum

Enum to identify raw material stock.

Source code in cogip/models/artifacts.py
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
class TribuneID(IntEnum):
    """
    Enum to identify raw material stock.
    """

    LocalCenter = auto()
    LocalTop = auto()
    LocalTopTraining = auto()
    LocalBottom = auto()
    LocalTopSide = auto()
    LocalBottomSide = auto()
    OppositeCenter = auto()
    OppositeTop = auto()
    OppositeBottom = auto()
    OppositeTopSide = auto()
    OppositeBottomSide = auto()