feat(perception): add diagnostic semantic SLAM replay
This commit is contained in:
@@ -315,6 +315,7 @@ def canonical_laboratory_adapters() -> dict[str, LaboratoryAdapter]:
|
||||
"canonical.e33-worker-shadow/v1": _run_e33,
|
||||
"canonical.e35-degradation-recovery/v1": _run_e35,
|
||||
"canonical.e46j-raw-fisheye-realtime/v1": _run_e46j,
|
||||
"experimental.e47-semantic-slam-shadow/v1": _run_e47,
|
||||
}
|
||||
|
||||
|
||||
@@ -375,6 +376,22 @@ def _run_e46j(request: LaboratoryRunRequest) -> LaboratoryAdapterResult:
|
||||
)
|
||||
|
||||
|
||||
def _run_e47(request: LaboratoryRunRequest) -> LaboratoryAdapterResult:
|
||||
from k1link.perception.semantic_slam_replay import build_semantic_slam_replay
|
||||
|
||||
result = build_semantic_slam_replay(
|
||||
repository_root=request.inputs["repository_root"],
|
||||
semantic_result_root=request.inputs["semantic_result_root"],
|
||||
threat_result_root=request.inputs["threat_result_root"],
|
||||
geometry_result_root=request.inputs["geometry_result_root"],
|
||||
output_root=request.output_root,
|
||||
)
|
||||
return LaboratoryAdapterResult(
|
||||
result_root=result.result_root,
|
||||
result_id=result.result_id,
|
||||
)
|
||||
|
||||
|
||||
def _validate_request(
|
||||
request: LaboratoryRunRequest,
|
||||
definition: LaboratoryExecutionDefinition,
|
||||
|
||||
Reference in New Issue
Block a user