feat(deps): aggiungi front_camera() e tab_right_arm_cfg()
This commit is contained in:
1 parent
04cc5fc345
commit
757eb01200
2 files changed
+34
No files matched your search
@@ -26,6 +26,12 @@ def nuwa() -> NuwaClient:
|
||||
return NuwaClient(c["base_url"], timeout_s=c.get("timeout_s", 5.0), api_key=c.get("api_key"))
|
||||
|
||||
|
||||
def front_camera() -> NuwaClient:
|
||||
"""Camera depth montata sulla fronte del robot (servizio Nuwa-like in docker)."""
|
||||
c = _svc(get_config(), "front_camera")
|
||||
return NuwaClient(c["base_url"], timeout_s=c.get("timeout_s", 5.0))
|
||||
|
||||
|
||||
def marker() -> MarkerClient:
|
||||
c = _svc(get_config(), "marker_finder")
|
||||
return MarkerClient(c["base_url"], timeout_s=c.get("timeout_s", 5.0))
|
||||
@@ -132,3 +138,8 @@ def samples_file_path(side: str | None = None) -> Path:
|
||||
def depth_correction_path() -> Path:
|
||||
"""Where the depth-bias correction state (params + samples) is persisted."""
|
||||
return data_dir() / "depth_correction.json"
|
||||
|
||||
|
||||
def tab_right_arm_cfg() -> dict[str, Any]:
|
||||
"""Blocco di config per la tab Braccio DX. Restituisce {} se mancante."""
|
||||
return get_config().get("tab_right_arm", {}) or {}
|
||||
Reference in new issue
Block a user