Skip to content

Commit

Permalink
removed condition for inference to pass images,
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishaan-Datta committed Dec 7, 2024
1 parent fdddef3 commit 3e8416e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions ros2_ws/src/python_workspace/python_workspace/inference_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,12 @@ def image_callback(self, msg):
confidences_msg = Float32MultiArray()
bounding_boxes.data = []
confidences_msg.data = []
if len(boxes) != 0:
bounding_boxes.data = boxes
confidences_msg.data = confidences
output_msg.bounding_boxes = bounding_boxes
output_msg.confidences = confidences_msg

# if len(boxes) != 0:
bounding_boxes.data = boxes
confidences_msg.data = confidences
output_msg.bounding_boxes = bounding_boxes
output_msg.confidences = confidences_msg
self.box_publisher.publish(output_msg)

self.get_logger().info(f"Inference: {(toc-tic)/1e6} ms")
Expand Down

0 comments on commit 3e8416e

Please sign in to comment.