Publish fresh front perception before supplementary neural views
This commit is contained in:
@@ -739,6 +739,8 @@ class ComposedInference:
|
||||
dict(calibration=calibration, boxes=boxes, surface=surface)])
|
||||
for view in detection_views:
|
||||
view_calibration = view["calibration"]
|
||||
if "lens_depths" in view:
|
||||
self.source.lens_depths = view["lens_depths"]
|
||||
_, du, dv, seen = project(points, view_calibration, self.source)
|
||||
ground_pixels = np.zeros(len(points), dtype=bool)
|
||||
ground_pixels[seen] = view["surface"][self.source.indices(du[seen], dv[seen])]
|
||||
@@ -757,6 +759,9 @@ class ComposedInference:
|
||||
detection_evidence.append({"box": [x1, y1, x2, y2],
|
||||
**({"object": objects[box_index]} if objects else {}),
|
||||
"view_yaw_degrees": view_calibration.get("view_yaw_degrees", 0), **association})
|
||||
if hasattr(self.source, "lens_depths"):
|
||||
self.source.lens_depths = inputs.get(
|
||||
"source.camera.lens-depths", self.source.lens_depths)
|
||||
if intent["state"] in {"stuck", "goal-reached", "unstable"}:
|
||||
reason = intent["state"]
|
||||
elif self.goal is None and not (arrival_candidate or body_goal_query or orientation or recovering):
|
||||
|
||||
Reference in New Issue
Block a user