Closed BrendanAndrade closed 11 years ago
Call cr in box function at line 290 even if cr contains no contours.
[ERROR] [WallTime: 1371755145.479386] bad callback: <bound method miabot_tracker.imageCallback of <main.miabot_tracker instance at 0xb768e4c>> Traceback (most recent call last): File "/opt/ros/groovy/lib/python2.7/dist-packages/rospy/topics.py", line 683, in _invoke_callback cb(msg) File "/home/bandrade/groovy-workspace/src/dcslROS/dcsl_vision_tracker/src/dcsl_vision_tracker/dcsl_miabot_tracker.py", line 71, in imageCallback measurements, image_poses, contours = self.tracker.get_poses(working_image, self.current_states, 0) File "/home/bandrade/groovy-workspace/src/dcslROS/dcsl_vision_tracker/src/dcsl_vision_tracker/dcsl_vision_tracker_API.py", line 93, in get_poses sensed_image = self.get_image_poses(contours) File "/home/bandrade/groovy-workspace/src/dcslROS/dcsl_vision_tracker/src/dcsl_vision_tracker/dcsl_vision_tracker_API.py", line 290, in get_image_poses box = cv.MinAreaRect2(cr, cv.CreateMemStorage()) error: arr != 0 && contour_header != 0 && block != 0
Call cr in box function at line 290 even if cr contains no contours.
[ERROR] [WallTime: 1371755145.479386] bad callback: <bound method miabot_tracker.imageCallback of <main.miabot_tracker instance at 0xb768e4c>> Traceback (most recent call last): File "/opt/ros/groovy/lib/python2.7/dist-packages/rospy/topics.py", line 683, in _invoke_callback cb(msg) File "/home/bandrade/groovy-workspace/src/dcslROS/dcsl_vision_tracker/src/dcsl_vision_tracker/dcsl_miabot_tracker.py", line 71, in imageCallback measurements, image_poses, contours = self.tracker.get_poses(working_image, self.current_states, 0) File "/home/bandrade/groovy-workspace/src/dcslROS/dcsl_vision_tracker/src/dcsl_vision_tracker/dcsl_vision_tracker_API.py", line 93, in get_poses sensed_image = self.get_image_poses(contours) File "/home/bandrade/groovy-workspace/src/dcslROS/dcsl_vision_tracker/src/dcsl_vision_tracker/dcsl_vision_tracker_API.py", line 290, in get_image_poses box = cv.MinAreaRect2(cr, cv.CreateMemStorage()) error: arr != 0 && contour_header != 0 && block != 0