Skip to content

Commit

Permalink
checks
Browse files Browse the repository at this point in the history
  • Loading branch information
NishanthJKumar committed Jul 17, 2023
1 parent 18c45d0 commit f991a9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions predicators/envs/spot_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,8 @@ def _build_observation(self,
object_names_in_view_by_camera_apriltag)
# Additionally, if we're using SAM, then update using that.
if CFG.spot_grasp_use_sam:
object_names_in_view_by_camera_sam = self._spot_interface.get_objects_in_view_by_camera(
from_apriltag=True)
object_names_in_view_by_camera_sam = self._spot_interface.\
get_objects_in_view_by_camera(from_apriltag=True)
# Combine these together to get all objects in view.
for k, v in object_names_in_view_by_camera.items():
v.update(object_names_in_view_by_camera_sam[k])
Expand Down
1 change: 0 additions & 1 deletion predicators/spot_utils/spot_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,6 @@ def get_camera_images(self) -> Dict[str, Image]:
"""Get all camera images."""
camera_images: Dict[str, Image] = {}
for source_name in CAMERA_NAMES:
# TODO: convert to RGB - should be correct
img, _ = self.get_single_camera_image(source_name, to_rgb=True)
camera_images[source_name] = img
return camera_images
Expand Down

0 comments on commit f991a9b

Please sign in to comment.