Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
lf-zhao committed May 10, 2024
1 parent 86ef996 commit 6db3fbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions predicators/envs/spot_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -1260,6 +1260,8 @@ def _fits_in_xy_classifier(state: State, objects: Sequence[Object]) -> bool:
for obj in objects:
obj_geom = object_to_top_down_geom(obj, state)
if isinstance(obj_geom, utils.Rectangle):
# DEBUG check default value - why radius not None by default?
# DEBUG fix the value
if obj is contained:
radius = max(obj_geom.width / 2, obj_geom.height / 2)
else:
Expand Down
1 change: 1 addition & 0 deletions predicators/spot_utils/skills/spot_find_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from bosdyn.client.math_helpers import SE3Pose
from bosdyn.client.sdk import Robot
from scipy.spatial import Delaunay
from rich import print

from predicators import utils
from predicators.spot_utils.perception.object_detection import detect_objects
Expand Down

0 comments on commit 6db3fbe

Please sign in to comment.