Skip to content

Commit

Permalink
fixed some little bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Benteng Ma committed Jul 3, 2024
1 parent 42e6e02 commit 3a2a429
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion skills/src/lasr_skills/adjust_camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def __init__(
"GET_IMAGE",
GetCroppedImage(
object_name="person",
method="centered",
method="closest",
use_mask=True,
),
transitions={
Expand Down
5 changes: 4 additions & 1 deletion skills/src/lasr_skills/vision/get_cropped_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ def execute(self, userdata) -> str:
# self._debug_pub.publish(cropped_msg)
userdata.img_msg = cropped_image
return "succeeded"
except rospy.ServiceException as e:
# except rospy.ServiceException as e:
# rospy.logerr(f"Service call failed: {e}")
# return "failed"
except Exception as e: # Got some errors that is not rospy.
rospy.logerr(f"Service call failed: {e}")
return "failed"

Expand Down

0 comments on commit 3a2a429

Please sign in to comment.