Errors with OpenCV packages in Kinetic
Hello all;
I am using ROS Kinetic in Ubuntu 16.04 x64, and the only packages I have installed relating to OpenCV are the ones Kinetic installs:
ros-kinetic-opencv3
ros-kinetic-vision-opencv
ros-kinetic-image-geometry
ros-kinetic-cv-bridge
In my CMakeLists I have added the dependecies needed by OpenCV:
find_package(OpenCV REQUIRED)
include_directories(
include
include/depth_skeleton_tracker
${orocos_kdl_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
${catkin_INCLUDE_DIRS}
)
target_link_libraries(depth_sensor_publisher_node nuitrack ${catkin_LIBRARIES} ${OpenCV_LIBRARIES})
In my node code, I have just declared a cv::Mat object for testing purposes:
cv::Mat frame = cv::Mat::zeros(frameHeight, frameWidth, CV_8U);
Everything compiles just fine, but when executing the node with a rosrun command, I face the following error:
OpenCV Error: The function/feature is not implemented (Unknown/unsupported array type) in type, file /tmp/binarydeb/ros-kinetic-opencv3-3.3.1/modules/core/src/matrix.cpp, line 2034
terminate called after throwing an instance of 'cv::Exception'
what(): /tmp/binarydeb/ros-kinetic-opencv3-3.3.1/modules/core/src/matrix.cpp:2034: error: (-213) Unknown/unsupported array type in function type
Aborted (core dumped)
I have found some very similar errors with other ROS KInetic packages, but I still do not find a good solution for this. Does anyone have a clue for this? Thank you very much in advance.
Hey, did you find the solution for this issue, I am having the issue as well ?