antioch-py 2.2.2__py3-none-any.whl → 2.2.4__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.
Potentially problematic release.
This version of antioch-py might be problematic. Click here for more details.
- antioch/session/objects/pir_sensor.py +5 -1
- {antioch_py-2.2.2.dist-info → antioch_py-2.2.4.dist-info}/METADATA +1 -1
- {antioch_py-2.2.2.dist-info → antioch_py-2.2.4.dist-info}/RECORD +7 -7
- common/rome/client.py +9 -4
- {antioch_py-2.2.2.dist-info → antioch_py-2.2.4.dist-info}/WHEEL +0 -0
- {antioch_py-2.2.2.dist-info → antioch_py-2.2.4.dist-info}/entry_points.txt +0 -0
- {antioch_py-2.2.2.dist-info → antioch_py-2.2.4.dist-info}/top_level.txt +0 -0
|
@@ -57,7 +57,11 @@ class PirSensor(SessionContainer):
|
|
|
57
57
|
:return: Detection status with is_detected, signal_strength, and per-sensor details.
|
|
58
58
|
"""
|
|
59
59
|
|
|
60
|
-
return
|
|
60
|
+
return self._session.query_sim_rpc(
|
|
61
|
+
endpoint="pir_sensor/get_status",
|
|
62
|
+
payload={"path": self._path},
|
|
63
|
+
response_type=PirStatus,
|
|
64
|
+
)
|
|
61
65
|
|
|
62
66
|
def set_debug_mode(self, enabled: bool) -> None:
|
|
63
67
|
"""
|
|
@@ -26,7 +26,7 @@ antioch/session/objects/ground_plane.py,sha256=o82nW9Ndhw-AiwiSKUrr1IhspFmdah7BY
|
|
|
26
26
|
antioch/session/objects/imu.py,sha256=vx59MutAg1HOEvZESqOmxlQocrnXEW1B5rqD7LBzLwM,1602
|
|
27
27
|
antioch/session/objects/joint.py,sha256=_mqXq1IDvzQ9FnvCpKXGa0YNh8f9zCtmskC8UP4QgNI,1476
|
|
28
28
|
antioch/session/objects/light.py,sha256=Sl0zPIiCnocCCLUaaJaiDLbHVhAJ-ZnIr9IOueIrc_g,3831
|
|
29
|
-
antioch/session/objects/pir_sensor.py,sha256=
|
|
29
|
+
antioch/session/objects/pir_sensor.py,sha256=gAHZRmuQXSsOdTKiEFDnBxOwGnOJ-IctfbU0DuUV7vU,3514
|
|
30
30
|
antioch/session/objects/radar.py,sha256=BXl8OzngiY_urBRBB7kAlBHvtpR9aosWv7nuYcKSeWo,1930
|
|
31
31
|
antioch/session/objects/rigid_body.py,sha256=TuJ04vG0eyzg4lFAVp7ZE0YTzOjhlcqLoNaeW2sZM0E,6294
|
|
32
32
|
antioch/session/objects/xform.py,sha256=VkSDIfFEuutrDVuKO2F5sI4zKsGa0xZzxFeH-tRMjp0,3237
|
|
@@ -67,7 +67,7 @@ common/message/types.py,sha256=k2wtbozsyd4HhMBoDfPFMLyCAGmTxaOvVhzIr-wx3N0,480
|
|
|
67
67
|
common/message/vector.py,sha256=IrREGUi2zKTUmp5PG4YNiJKEM1zRXLl0fK9QuF7I06o,20302
|
|
68
68
|
common/message/velocity.py,sha256=vHcFH_nMNBgobwY7dLeBaHJNvNiJxsQaPxImUh3GjHY,205
|
|
69
69
|
common/rome/__init__.py,sha256=hfwUw5wbT-Ph-OFwGhiqw3XEeWaZwmLAs66LOYKqfzU,210
|
|
70
|
-
common/rome/client.py,sha256=
|
|
70
|
+
common/rome/client.py,sha256=jhF4BEwtvJ3cIaT-M0ZxOljEHD9QJnO8b_QnIvu1-Wk,15797
|
|
71
71
|
common/rome/error.py,sha256=oW8yI81o3hQghop4omFcMkXx4IbacGye38Iyw2VKihQ,294
|
|
72
72
|
common/session/__init__.py,sha256=S6DsgJbRwFHaEcqe2CNrR_KI2811B1auLv-VX4g5JVU,643
|
|
73
73
|
common/session/config.py,sha256=IxNK4uGRVmruLq9eFktBu8opyc_ACg1kysgkvCb5lho,17874
|
|
@@ -78,8 +78,8 @@ common/utils/comms.py,sha256=1lpnb9ra5I3xv-Eo0GFZ7nR4TjKseOeDNf9QMWQZbds,17283
|
|
|
78
78
|
common/utils/logger.py,sha256=VcZ4dduWut8xWPs-F5ye8RRrNdBehSSG3r1LAWc-IBY,3389
|
|
79
79
|
common/utils/time.py,sha256=kGDzObbaqWOep4vT1Y2W-BheunxdjYBI4V3Nfp4Ck3Q,790
|
|
80
80
|
common/utils/usd.py,sha256=to4VPtnamMDIQK-pwDIVfiuzUnNzEImj5szOar1NHiE,253
|
|
81
|
-
antioch_py-2.2.
|
|
82
|
-
antioch_py-2.2.
|
|
83
|
-
antioch_py-2.2.
|
|
84
|
-
antioch_py-2.2.
|
|
85
|
-
antioch_py-2.2.
|
|
81
|
+
antioch_py-2.2.4.dist-info/METADATA,sha256=ahK5PzztFRLcl8Gd7-cp_EGRRYsegqHdf-Qzr6BqHpc,3485
|
|
82
|
+
antioch_py-2.2.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
83
|
+
antioch_py-2.2.4.dist-info/entry_points.txt,sha256=1bLTH5BXCOsQkS8k6L_wJ6Nj62j4aoU9Ey_PhWzsRRM,59
|
|
84
|
+
antioch_py-2.2.4.dist-info/top_level.txt,sha256=GtzNccsep3YdBt9VXQ7-ZFsFJFffr4hyZvqg0YqRqtw,15
|
|
85
|
+
antioch_py-2.2.4.dist-info/RECORD,,
|
common/rome/client.py
CHANGED
|
@@ -11,10 +11,15 @@ from common.ark import ArkReference, AssetReference
|
|
|
11
11
|
from common.core.task import TaskCompletion, TaskOutcome
|
|
12
12
|
from common.rome.error import RomeAuthError, RomeError, RomeNetworkError
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
# File transfer settings
|
|
15
|
+
DOWNLOAD_CHUNK_SIZE = 8 * 1024 * 1024 # 8MB for efficient streaming downloads
|
|
16
|
+
UPLOAD_CHUNK_SIZE = 8 * 1024 # 8KB for streaming uploads (matches server read buffer)
|
|
16
17
|
FILE_TRANSFER_UNIT_DIVISOR = 1024
|
|
17
18
|
|
|
19
|
+
# HTTP timeout settings (10 minutes for large file uploads)
|
|
20
|
+
HTTP_TIMEOUT_SECONDS = 600
|
|
21
|
+
HTTP_REQUEST_TIMEOUT = 30 # Timeout for regular API requests
|
|
22
|
+
|
|
18
23
|
|
|
19
24
|
class RomeClient:
|
|
20
25
|
"""
|
|
@@ -271,7 +276,7 @@ class RomeClient:
|
|
|
271
276
|
try:
|
|
272
277
|
url = f"{self._api_url}{endpoint}"
|
|
273
278
|
headers = {"Authorization": f"Bearer {self._token}", "Content-Type": "application/json"}
|
|
274
|
-
response = requests.request(method, url, json=json, params=params, headers=headers, timeout=
|
|
279
|
+
response = requests.request(method, url, json=json, params=params, headers=headers, timeout=HTTP_REQUEST_TIMEOUT)
|
|
275
280
|
self._check_response_errors(response)
|
|
276
281
|
|
|
277
282
|
if return_content:
|
|
@@ -392,7 +397,7 @@ class RomeClient:
|
|
|
392
397
|
url = f"{self._api_url}{endpoint}"
|
|
393
398
|
headers = {"Authorization": f"Bearer {self._token}", "Content-Type": content_type}
|
|
394
399
|
stream_data = self._upload_file_stream(Path(file_path), show_progress)
|
|
395
|
-
with httpx.Client(timeout=
|
|
400
|
+
with httpx.Client(timeout=httpx.Timeout(timeout=HTTP_TIMEOUT_SECONDS, connect=60.0)) as client:
|
|
396
401
|
response = client.post(url, params={"task_id": task_id}, content=stream_data, headers=headers)
|
|
397
402
|
self._check_response_errors(response)
|
|
398
403
|
except httpx.HTTPError as e:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|