lookout-config 1.15.1__py3-none-any.whl → 1.17.0__py3-none-any.whl
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.
- lookout_config/__init__.py +2 -2
- lookout_config/schemas/lookout.schema.json +0 -7
- lookout_config/types.py +1 -15
- {lookout_config-1.15.1.dist-info → lookout_config-1.17.0.dist-info}/METADATA +2 -2
- lookout_config-1.17.0.dist-info/RECORD +13 -0
- lookout_config-1.15.1.dist-info/RECORD +0 -13
- {lookout_config-1.15.1.dist-info → lookout_config-1.17.0.dist-info}/WHEEL +0 -0
- {lookout_config-1.15.1.dist-info → lookout_config-1.17.0.dist-info}/top_level.txt +0 -0
- {lookout_config-1.15.1.dist-info → lookout_config-1.17.0.dist-info}/zip-safe +0 -0
lookout_config/__init__.py
CHANGED
@@ -14,7 +14,7 @@ from lookout_config.types import (
|
|
14
14
|
GeolocationMode,
|
15
15
|
Point,
|
16
16
|
Polygon,
|
17
|
-
|
17
|
+
Camera,
|
18
18
|
PositioningSystem,
|
19
19
|
)
|
20
20
|
from lookout_config.helpers import YamlDumper
|
@@ -69,6 +69,6 @@ __all__ = [
|
|
69
69
|
"GeolocationMode",
|
70
70
|
"Point",
|
71
71
|
"Polygon",
|
72
|
-
"
|
72
|
+
"Camera",
|
73
73
|
"PositioningSystem",
|
74
74
|
]
|
lookout_config/types.py
CHANGED
@@ -73,20 +73,6 @@ class Polygon(BaseModel):
|
|
73
73
|
points: list[Point]
|
74
74
|
|
75
75
|
|
76
|
-
class CameraExtended(Camera):
|
77
|
-
ignore_regions: list[Polygon] = Field(default_factory=list)
|
78
|
-
|
79
|
-
@field_validator("ignore_regions")
|
80
|
-
def check_polygon(cls, ignore_regions):
|
81
|
-
if ignore_regions:
|
82
|
-
for polygon in ignore_regions:
|
83
|
-
if len(polygon.points) < 4: # 3 points for a triangle, 1 to close the polygon
|
84
|
-
raise ValueError("Polygon must have at least 3 sides (4 points)")
|
85
|
-
if polygon.points[0] != polygon.points[-1]:
|
86
|
-
raise ValueError("Polygon must close. Must have same start and end point")
|
87
|
-
return ignore_regions
|
88
|
-
|
89
|
-
|
90
76
|
class VesselOffsets(BaseModel):
|
91
77
|
name: str
|
92
78
|
baselink_to_ins: Offsets
|
@@ -113,7 +99,7 @@ class LookoutConfig(BaseModel):
|
|
113
99
|
gama_vessel: bool = False
|
114
100
|
mode: Mode = Mode.HARDWARE
|
115
101
|
log_level: LogLevel = LogLevel.INFO
|
116
|
-
cameras: list[
|
102
|
+
cameras: list[Camera] = Field(default_factory=list)
|
117
103
|
network: Network = Network.HOST
|
118
104
|
gpu: bool = True
|
119
105
|
geolocation_mode: GeolocationMode = GeolocationMode.NONE
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: lookout_config
|
3
|
-
Version: 1.
|
3
|
+
Version: 1.17.0
|
4
4
|
Summary: A library for reading / writing Lookout config files
|
5
5
|
Home-page: https://github.com/Greenroom-Robotics/lookout
|
6
6
|
Author: Greenroom Robotics
|
@@ -19,7 +19,7 @@ Requires-Dist: setuptools
|
|
19
19
|
Requires-Dist: dacite
|
20
20
|
Requires-Dist: PyYAML
|
21
21
|
Requires-Dist: dc-schema
|
22
|
-
Requires-Dist: greenstream-config==3.
|
22
|
+
Requires-Dist: greenstream-config==3.16.2
|
23
23
|
Requires-Dist: gr-urchin
|
24
24
|
|
25
25
|
# Lookout Config
|
@@ -0,0 +1,13 @@
|
|
1
|
+
lookout_config/__init__.py,sha256=NKLSlCn7mb8HRbkOB6i6EBpvROLGRlZRcnHc5nm1zTk,1722
|
2
|
+
lookout_config/generate_schemas.py,sha256=yFNvrZ6gie1tnTM_1TO8_wBa0lFHJAABSI3ZAZqw_Wg,457
|
3
|
+
lookout_config/generate_urdf.py,sha256=O5n0hNsRJwTgQnWdPZIg_LgpxlDQOzWv5IccjT7yDS4,2719
|
4
|
+
lookout_config/helpers.py,sha256=3GkGRPDzQ67I5srwcWoI8PI1dgrWvTsUwA8-yRUttLM,603
|
5
|
+
lookout_config/launch_parameters.py,sha256=wvLXQMPi7D3ExesyvSNLPYEb2WChj9YTslnvQYPsXbk,3033
|
6
|
+
lookout_config/types.py,sha256=9Osic4J0go-uRKM6walZUEcPGz_7inxhanFUXIPAloo,3701
|
7
|
+
lookout_config/schemas/lookout.schema.json,sha256=mU80JVQ8H0xp7_AMng84G3zpWoK0hpEsJhpUWa-NL2c,9216
|
8
|
+
lookout_config/test/lookout_config_test.py,sha256=TdOzIEWnyrckhmK7OtShtoWwSAP8QDCiKalNhvScd2U,73
|
9
|
+
lookout_config-1.17.0.dist-info/METADATA,sha256=dE79GEsy2FkBTy5T8pBk_AZwoP1ycuF0Lz_2y8ln4Fw,1442
|
10
|
+
lookout_config-1.17.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
11
|
+
lookout_config-1.17.0.dist-info/top_level.txt,sha256=IiZRgJhNrNL87uLMQm9lQRrMCqJnTOl7aYlA7zRSYyg,15
|
12
|
+
lookout_config-1.17.0.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
13
|
+
lookout_config-1.17.0.dist-info/RECORD,,
|
@@ -1,13 +0,0 @@
|
|
1
|
-
lookout_config/__init__.py,sha256=3D-vqwfTPSuvLVBo4wiYQglpPUm4Fj6Y5MYGIS-e0fI,1738
|
2
|
-
lookout_config/generate_schemas.py,sha256=yFNvrZ6gie1tnTM_1TO8_wBa0lFHJAABSI3ZAZqw_Wg,457
|
3
|
-
lookout_config/generate_urdf.py,sha256=O5n0hNsRJwTgQnWdPZIg_LgpxlDQOzWv5IccjT7yDS4,2719
|
4
|
-
lookout_config/helpers.py,sha256=3GkGRPDzQ67I5srwcWoI8PI1dgrWvTsUwA8-yRUttLM,603
|
5
|
-
lookout_config/launch_parameters.py,sha256=wvLXQMPi7D3ExesyvSNLPYEb2WChj9YTslnvQYPsXbk,3033
|
6
|
-
lookout_config/types.py,sha256=o--5Mo7ADSCv5k240oyiA-sJDA5BLd6nx5RGzFZFygo,4325
|
7
|
-
lookout_config/schemas/lookout.schema.json,sha256=eH6i8OW-9jBBEusm4qMaACV7fujtrqw1_Bm5YwuQNxw,9390
|
8
|
-
lookout_config/test/lookout_config_test.py,sha256=TdOzIEWnyrckhmK7OtShtoWwSAP8QDCiKalNhvScd2U,73
|
9
|
-
lookout_config-1.15.1.dist-info/METADATA,sha256=Ij7EiKJ5hzyvI-QGafkWPiSBufKxPSRbQcvI6ROtaG4,1442
|
10
|
-
lookout_config-1.15.1.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
11
|
-
lookout_config-1.15.1.dist-info/top_level.txt,sha256=IiZRgJhNrNL87uLMQm9lQRrMCqJnTOl7aYlA7zRSYyg,15
|
12
|
-
lookout_config-1.15.1.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
13
|
-
lookout_config-1.15.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|