Skip to content

artifacts

CollectionArea #

Bases: Pose

Model for collection area. Coordinates indicate the center of the collection area.

Source code in cogip/models/artifacts.py
43
44
45
46
47
48
49
50
51
52
53
class CollectionArea(Pose):
    """
    Model for collection area.
    Coordinates indicate the center of the collection area.
    """

    id: CollectionAreaID
    length: float = 150.0
    width: float = 200.0
    enabled: bool = True
    invalid: bool = False

CollectionAreaID #

Bases: IntEnum

Enum to identify collection areas.

Source code in cogip/models/artifacts.py
28
29
30
31
32
33
34
35
36
37
38
39
40
class CollectionAreaID(IntEnum):
    """
    Enum to identify collection areas.
    """

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

FixedObstacle #

Bases: Vertex

Model for fixed obstacles.

Source code in cogip/models/artifacts.py
17
18
19
20
21
22
23
24
25
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
 6
 7
 8
 9
10
11
12
13
14
class FixedObstacleID(IntEnum):
    """
    Enum to identify fixed obstacles.
    """

    Granary = auto()
    Nest = auto()
    OppositeNest = auto()
    Table = auto()

Pantry #

Bases: Pose

Model for pantry. Coordinates indicate the center of the pantry.

Source code in cogip/models/artifacts.py
87
88
89
90
91
92
93
94
95
96
97
class Pantry(Pose):
    """
    Model for pantry.
    Coordinates indicate the center of the pantry.
    """

    id: PantryID
    length: float = 200.0
    width: float = 200.0
    enabled: bool = True
    invalid: bool = False

PantryID #

Bases: IntEnum

Enum to identify pantries.

Source code in cogip/models/artifacts.py
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
class PantryID(IntEnum):
    """
    Enum to identify pantries.
    """

    LocalTop = auto()
    LocalSide = auto()
    LocalBottom = auto()
    LocalCenter = auto()
    OppositeTop = auto()
    OppositeSide = auto()
    OppositeBottom = auto()
    OppositeCenter = auto()
    MiddleCenter = auto()
    MiddleBottom = auto()
    Nest = auto()