wsh32 / airhockey

PIE Final - Air Hockey Playing Robot
2 stars 0 forks source link

Puck tracker errors out #69

Closed wsh32 closed 3 years ago

wsh32 commented 3 years ago

AND pytest doesnt catch it

[ERROR] [1636765967.015986]: bad callback: <bound method PuckTrackingNode.image_callback of <airhockey_vision.puck_tracking_node.PuckTrackingNode object at 0x7f6bfb3e5f70>>
Traceback (most recent call last):
  File "/opt/ros/noetic/lib/python3/dist-packages/rospy/topics.py", line 750, in _invoke_callback
    cb(msg)
  File "/home/wsh32/airhockey/src/airhockey_vision/src/airhockey_vision/puck_tracking_node.py", line 64, in image_callback
    puck_position = self.puck_tracker.detect_puck(frame)
  File "/home/wsh32/airhockey/src/airhockey_vision/src/airhockey_vision/puck_tracking_node.py", line 24, in detect_puck
    mask = cv2.inRange(hsv, self.lower, self.upper)
cv2.error: OpenCV(4.5.4-dev) :-1: error: (-5:Bad argument) in function 'inRange'
> Overload resolution failed:
>  - lowerb is not a numerical tuple
>  - Expected Ptr<cv::UMat> for argument 'lowerb'