bluer-ugv 7.225.1__py3-none-any.whl → 7.231.1__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.
- bluer_ugv/.abcli/swallow/session.sh +1 -1
- bluer_ugv/__init__.py +1 -1
- bluer_ugv/swallow/session/classical/position.py +38 -0
- bluer_ugv/swallow/session/classical/session.py +5 -0
- {bluer_ugv-7.225.1.dist-info → bluer_ugv-7.231.1.dist-info}/METADATA +2 -2
- {bluer_ugv-7.225.1.dist-info → bluer_ugv-7.231.1.dist-info}/RECORD +9 -8
- {bluer_ugv-7.225.1.dist-info → bluer_ugv-7.231.1.dist-info}/WHEEL +0 -0
- {bluer_ugv-7.225.1.dist-info → bluer_ugv-7.231.1.dist-info}/licenses/LICENSE +0 -0
- {bluer_ugv-7.225.1.dist-info → bluer_ugv-7.231.1.dist-info}/top_level.txt +0 -0
bluer_ugv/__init__.py
CHANGED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
from filelock import FileLock
|
|
2
|
+
|
|
3
|
+
from bluer_objects import file, objects
|
|
4
|
+
|
|
5
|
+
from bluer_algo.bps.position import Position
|
|
6
|
+
from bluer_algo.logger import logger
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ClassicalPosition:
|
|
10
|
+
def __init__(self, object_name):
|
|
11
|
+
self.object_name: str = object_name
|
|
12
|
+
self.updated: bool = False
|
|
13
|
+
self.position: Position = Position()
|
|
14
|
+
|
|
15
|
+
logger.info(f"{self.__class__.__name__}: {object_name}")
|
|
16
|
+
|
|
17
|
+
def initialize(self) -> bool:
|
|
18
|
+
return self.update()
|
|
19
|
+
|
|
20
|
+
def update(self) -> bool:
|
|
21
|
+
self.updated = False
|
|
22
|
+
|
|
23
|
+
filename = objects.path_of(
|
|
24
|
+
object_name=self.object_name,
|
|
25
|
+
filename="position.yaml",
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
if not file.exists(filename):
|
|
29
|
+
return True
|
|
30
|
+
|
|
31
|
+
self.updated, self.position = Position.load(self.object_name)
|
|
32
|
+
|
|
33
|
+
lock = FileLock(filename + ".lock")
|
|
34
|
+
|
|
35
|
+
with lock:
|
|
36
|
+
file.delete(filename)
|
|
37
|
+
|
|
38
|
+
return True
|
|
@@ -23,6 +23,7 @@ from bluer_ugv.swallow.session.classical.motor import (
|
|
|
23
23
|
ClassicalSteeringMotor,
|
|
24
24
|
)
|
|
25
25
|
from bluer_ugv.swallow.session.classical.setpoint.classes import ClassicalSetPoint
|
|
26
|
+
from bluer_ugv.swallow.session.classical.position import ClassicalPosition
|
|
26
27
|
from bluer_ugv.swallow.session.classical.ultrasonic_sensor.classes import (
|
|
27
28
|
ClassicalUltrasonicSensor,
|
|
28
29
|
)
|
|
@@ -82,6 +83,8 @@ class ClassicalSession:
|
|
|
82
83
|
leds=self.leds,
|
|
83
84
|
)
|
|
84
85
|
|
|
86
|
+
self.position = ClassicalPosition(object_name)
|
|
87
|
+
|
|
85
88
|
logger.info(
|
|
86
89
|
"wheel arrangement: {} + {}".format(
|
|
87
90
|
self.motor1.role,
|
|
@@ -163,6 +166,7 @@ class ClassicalSession:
|
|
|
163
166
|
self.motor1,
|
|
164
167
|
self.motor2,
|
|
165
168
|
self.camera,
|
|
169
|
+
self.position,
|
|
166
170
|
]
|
|
167
171
|
)
|
|
168
172
|
|
|
@@ -173,6 +177,7 @@ class ClassicalSession:
|
|
|
173
177
|
self.keyboard,
|
|
174
178
|
self.push_button,
|
|
175
179
|
self.camera,
|
|
180
|
+
self.position,
|
|
176
181
|
self.setpoint,
|
|
177
182
|
self.motor1,
|
|
178
183
|
self.motor2,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: bluer_ugv
|
|
3
|
-
Version: 7.
|
|
3
|
+
Version: 7.231.1
|
|
4
4
|
Summary: 🐬 AI x UGV.
|
|
5
5
|
Home-page: https://github.com/kamangir/bluer-ugv
|
|
6
6
|
Author: Arash Abadpour (Kamangir)
|
|
@@ -64,7 +64,7 @@ pip install bluer_ugv
|
|
|
64
64
|
|
|
65
65
|
[](https://github.com/kamangir/bluer-ugv/actions/workflows/pylint.yml) [](https://github.com/kamangir/bluer-ugv/actions/workflows/pytest.yml) [](https://github.com/kamangir/bluer-ugv/actions/workflows/bashtest.yml) [](https://pypi.org/project/bluer-ugv/) [](https://pypistats.org/packages/bluer-ugv)
|
|
66
66
|
|
|
67
|
-
built by 🌀 [`bluer README`](https://github.com/kamangir/bluer-objects/tree/main/bluer_objects/README), based on 🐬 [`bluer_ugv-7.
|
|
67
|
+
built by 🌀 [`bluer README`](https://github.com/kamangir/bluer-objects/tree/main/bluer_objects/README), based on 🐬 [`bluer_ugv-7.231.1`](https://github.com/kamangir/bluer-ugv).
|
|
68
68
|
|
|
69
69
|
|
|
70
70
|
built by 🌀 [`blueness-3.118.1`](https://github.com/kamangir/blueness).
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
bluer_ugv/__init__.py,sha256=
|
|
1
|
+
bluer_ugv/__init__.py,sha256=3BYV7rzyxKSpshdd9mzAzmuFVSWkgjPLTO2ljgcoahg,288
|
|
2
2
|
bluer_ugv/__main__.py,sha256=77TquqyMca7qHk0XtCixGVyzfW3_9ywnl5oXEPERlls,374
|
|
3
3
|
bluer_ugv/config.env,sha256=psiLmasSe300nOPkLqMurFalZTvNE43zAsBQLEEDp-k,949
|
|
4
4
|
bluer_ugv/env.py,sha256=asv-2OByZzf1c4ta3CHMZQDEcY8cd2WDUOa-_OCNYvU,1757
|
|
@@ -17,7 +17,7 @@ bluer_ugv/.abcli/swallow/debug.sh,sha256=JVjExhotePW3gZG2MUS6IzbXVQwMAefKYJiSP88
|
|
|
17
17
|
bluer_ugv/.abcli/swallow/env.sh,sha256=5rKCdZhrQa_9Lr96j1h7XrWBcf0YEeV3w3o0vLWGd0M,360
|
|
18
18
|
bluer_ugv/.abcli/swallow/keyboard.sh,sha256=RYR5vgV0C1SATqekQ_F6Lr6Ums0IAkH9THX2ZPcitoY,402
|
|
19
19
|
bluer_ugv/.abcli/swallow/select_target.sh,sha256=fwHmKbVcn_OEW4q-cjNc8Eyi6hOi1pMAb6x5tW8_lb0,183
|
|
20
|
-
bluer_ugv/.abcli/swallow/session.sh,sha256
|
|
20
|
+
bluer_ugv/.abcli/swallow/session.sh,sha256=sgshMG8KOeSePa9CELbf9eRD5lCXUXCU-oqASx0NAQ4,1558
|
|
21
21
|
bluer_ugv/.abcli/swallow/ultrasonic.sh,sha256=GqnVn4u-FFC8SVsCYHiwABBDkgALe4mgRMloitlfeP8,380
|
|
22
22
|
bluer_ugv/.abcli/swallow/dataset/combine.sh,sha256=OYS-9ONRhXuP41Z0z1A5-ay6bqLLSsLmVOUZNvwRnrk,965
|
|
23
23
|
bluer_ugv/.abcli/swallow/dataset/download.sh,sha256=4Br0hYqENIEYm15yTJGJeHFNfVNFozQf1qg6US8KYlY,587
|
|
@@ -119,8 +119,9 @@ bluer_ugv/swallow/session/classical/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQ
|
|
|
119
119
|
bluer_ugv/swallow/session/classical/leds.py,sha256=ElhE08rm-KLbQ59lJzStLWeNsfoO7tV2fPBMBXCKX_E,2241
|
|
120
120
|
bluer_ugv/swallow/session/classical/mode.py,sha256=6rFe1IIpfijuI7Xd-wcGKhYQ7EdQxG4mYGVliTjS118,117
|
|
121
121
|
bluer_ugv/swallow/session/classical/mousepad.py,sha256=LI7yvmtrZZaGUgPGpxNU7zcPkW8D5ykHlY_O-4H2STs,1871
|
|
122
|
+
bluer_ugv/swallow/session/classical/position.py,sha256=gNeNzNpUG8zkDrcwibxaYStPNKUN1_DV5RjHu_pHMIg,913
|
|
122
123
|
bluer_ugv/swallow/session/classical/push_button.py,sha256=s8sPart_dECjLK-gfsJi0UorRYcFYf3ofLqjmG8PoA8,2397
|
|
123
|
-
bluer_ugv/swallow/session/classical/session.py,sha256=
|
|
124
|
+
bluer_ugv/swallow/session/classical/session.py,sha256=ak1rLQL85AtNfKRA9hoZjGTTuwrIHCcI2vvE9kZIeuw,5373
|
|
124
125
|
bluer_ugv/swallow/session/classical/camera/__init__.py,sha256=KOehn6qHKj3EMbV5uGXKIfN_v4D5-E2xH9aCWqbNlAI,375
|
|
125
126
|
bluer_ugv/swallow/session/classical/camera/generic.py,sha256=xmztClNYkosYo2TcIS2Ax4Bessc8lx4hlt9LnMcobfU,1216
|
|
126
127
|
bluer_ugv/swallow/session/classical/camera/navigation.py,sha256=HoeTlifGEfnedb6o8P-O0TcP1bNDRJ0M7vWupQh1pL4,6790
|
|
@@ -150,8 +151,8 @@ bluer_ugv/swallow/session/classical/ultrasonic_sensor/pack.py,sha256=vMvmay2Gxg8
|
|
|
150
151
|
bluer_ugv/swallow/session/classical/ultrasonic_sensor/review.py,sha256=_iQmec2VSq-ORkTVpXSNJg08hrSz2M1O8LzNZEtoT9U,959
|
|
151
152
|
bluer_ugv/swallow/session/classical/ultrasonic_sensor/sensor.py,sha256=En-J8BRTiR8k9p2CBbW0cOUuw8nctD5DOXDm5uhCNO4,3987
|
|
152
153
|
bluer_ugv/swallow/session/classical/ultrasonic_sensor/testing.py,sha256=RIMHXmLXe1zXLvCNU163ymLI8XM6te9LXuCMnLuulbA,1515
|
|
153
|
-
bluer_ugv-7.
|
|
154
|
-
bluer_ugv-7.
|
|
155
|
-
bluer_ugv-7.
|
|
156
|
-
bluer_ugv-7.
|
|
157
|
-
bluer_ugv-7.
|
|
154
|
+
bluer_ugv-7.231.1.dist-info/licenses/LICENSE,sha256=ogEPNDSH0_dhiv_lT3ifVIdgIzHAqNA_SemnxUfPBJk,7048
|
|
155
|
+
bluer_ugv-7.231.1.dist-info/METADATA,sha256=hTh0OUT9BhCIMNGb6MwJJZ68ZnTeuK5ZmZM5Hf9i73E,5601
|
|
156
|
+
bluer_ugv-7.231.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
157
|
+
bluer_ugv-7.231.1.dist-info/top_level.txt,sha256=_MlDhFvIPpher9Zs7xyJTHgO2xJJTbfR1dzncz3LQnk,10
|
|
158
|
+
bluer_ugv-7.231.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|