Skip to content

Commit 82d42dd

Browse files
committed
feat: make bodypix debug default
1 parent a688166 commit 82d42dd

File tree

1 file changed

+4
-3
lines changed
  • common/vision/lasr_vision_bodypix/src/lasr_vision_bodypix

1 file changed

+4
-3
lines changed

common/vision/lasr_vision_bodypix/src/lasr_vision_bodypix/bodypix.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,15 @@ def load_model_cached(dataset: str) -> None:
5252

5353

5454
def detect(
55-
request: BodyPixDetectionRequest, debug_publisher: rospy.Publisher | None
55+
request: BodyPixDetectionRequest,
56+
debug_publisher: rospy.Publisher = rospy.Publisher(
57+
"/bodypix/debug", SensorImage, queue_size=1
58+
),
5659
) -> BodyPixDetectionResponse:
5760
"""
5861
Run BodyPix inference on given detection request
5962
"""
6063

61-
debug_publisher = rospy.Publisher("/bodypix/debug", SensorImage, queue_size=1)
62-
6364
# decode the image
6465
rospy.loginfo("Decoding")
6566
img = cv2_img.msg_to_cv2_img(request.image_raw)

0 commit comments

Comments
 (0)