The node /apriltag_detector will launch with no errors or warnings. I ssh into a Raspberry Pi and view the camera image with the package web_video_ server via the topic /tag_detection_image. Once I place an apriltag in view of the camera the apriltag_detector node crashes and gives this error:
OpenCV Error: Assertion failed (mtype == type0 || (((((mtype) & ((512 - 1) << 3)) >> 3) + 1) == 1 && ((1 << type0) & fixedDepthMask) != 0)) in create, file /tmp/binarydeb/ros-kinetic-opencv3-3.3.1/modules/core/src/matrix.cpp, line 2542 terminate called after throwing an instance of 'cv::Exception' what(): /tmp/binarydeb/ros-kinetic-opencv3-3.3.1/modules/core/src/matrix.cpp:2542: error: (-215) mtype == type0 || (((((mtype) & ((512 - 1) << 3)) >> 3)
- == 1 && ((1 << type0) & fixedDepthMask) != 0) in function create
[apriltag_detector-1] process has died [pid 2075, exit code -6, cmd /home/pi/catkin_ws/devel/lib/apriltags_ros/apriltag_detector_node image_rect:=usb_cam/image_raw camera_info:=usb_cam/camera_info __name:=apriltag_detector __log:=/home/pi/.ros/log/943615a2-fb0c-11e7-91d7-b827eb550879/apriltag_detector-1.log]. log file: /home/pi/.ros/log/943615a2-fb0c-11e7-91d7-b827eb550879/apriltag_detector-1*.log all processes on machine have died, roslaunch will exit shutting down processing monitor... ... shutting down processing monitor complete done
This node used to work before complications with calibrating the camera. I resolved the calibration problem and the camera is calibrated. Initially I thought I may have messed something up trying to fix the calibration problem but am now led to believe it may have happened after an update/upgrade.
My attempts to downgrade openCV3 using sudo apt-get failed. I thought of commenting out the line of code causing the error but the error list a temporary directory that no longer exists. Any thoughts or advice would be appreciated. Thank you in advance.
Originally posted by dpoiesz on ROS Answers with karma: 43 on 2018-01-16
Post score: 3
Original comments
Comment by deksprime on 2018-01-22:
We are also having the exact same problem. It works with the opencv-3.2 but not with the 3.3.1 thus we've deduced that it is due to the opencv update on ros but no solution yet
Comment by dpoiesz on 2018-01-27:
@deksprime, were you able to revert back to opencv-3.2? My attempts failed because the source was not available, could you share how you downgraded?