Skip to content

Commit e869963

Browse files
committed
replaced stray object to Object type
1 parent 959b596 commit e869963

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

dimos/manipulation/planning/monitor/world_monitor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
WorldSpec,
4343
)
4444
from dimos.msgs.vision_msgs import Detection3D
45+
from dimos.perception.detection.type.detection3d.object import Object
4546

4647
logger = setup_logger()
4748

@@ -233,7 +234,7 @@ def get_perception_status(self) -> dict[str, int]:
233234
return self._obstacle_monitor.get_perception_status()
234235
return {"cached": 0, "added": 0}
235236

236-
def get_cached_objects(self) -> list[object]:
237+
def get_cached_objects(self) -> list[Object]:
237238
"""Get cached Object instances from perception."""
238239
if self._obstacle_monitor is not None:
239240
return self._obstacle_monitor.get_cached_objects()

dimos/manipulation/planning/monitor/world_obstacle_monitor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ def refresh_obstacles(self, min_duration: float = 0.0) -> list[dict[str, Any]]:
454454
from dimos.perception.detection.type.detection3d.object import Object
455455

456456
# Step 1: snapshot eligible objects under lock (fast)
457-
eligible: list[tuple[str, object]] = []
457+
eligible: list[tuple[str, Object]] = []
458458
with self._lock:
459459
for oid, (obj, first_seen, last_seen) in self._object_cache.items():
460460
if not isinstance(obj, Object):
@@ -464,7 +464,7 @@ def refresh_obstacles(self, min_duration: float = 0.0) -> list[dict[str, Any]]:
464464
eligible.append((oid, obj))
465465

466466
# Step 2: compute obstacles OUTSIDE lock (convex hull can be slow)
467-
prepared: list[tuple[str, object, Obstacle]] = []
467+
prepared: list[tuple[str, Object, Obstacle]] = []
468468
for oid, obj in eligible:
469469
obstacle = self._object_to_obstacle(obj)
470470
prepared.append((oid, obj, obstacle))

0 commit comments

Comments
 (0)