Skip to content

Commit 73c2fac

Browse files
committed
fix: floor filter in ronly frame tracks t[2] drift so cut plane doesn't rise as camera moves
1 parent d593c30 commit 73c2fac

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

dimos/perception/stereo_point_cloud/module.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,8 @@ def _on_depth(self, img: Image) -> None: # noqa: C901
257257
vk_r = np.floor(xyz_ronly / self.config.vox_size).astype(np.int32)
258258
_, first_r = np.unique(_pack(vk_r), return_index=True)
259259
xyz_vox_r = xyz_ronly[first_r]
260-
xyz_for_map = xyz_vox_r[xyz_vox_r[:, 2] > self._world_floor_z + self.config.global_floor_margin]
260+
floor_z_ronly = self._world_floor_z - t[2]
261+
xyz_for_map = xyz_vox_r[xyz_vox_r[:, 2] > floor_z_ronly + self.config.global_floor_margin]
261262

262263
pts_snap = None
263264
with self._lock:

0 commit comments

Comments
 (0)