ROS Resources: Documentation | Support | Discussion Forum | Service Status | Q&A answers.ros.org
Ask Your Question
0

Error in CameraNode and StereoNode

asked 2015-11-09 09:11:25 -0600

DanROS gravatar image

Hi

I'm using ROS Indigo on Fedora 22.

I paste the ueye folder on my catkin workspace (/home/doliveira/catkin_ws/src/), but when I run catkin_make on catkin_ws I get the follow error on files CameraNode.cpp and StereoNode.cpp.

/home/doliveira/catkin_ws/src/ueye/src/CameraNode.cpp: In member function ‘sensor_msgs::ImagePtr ueye::CameraNode::processFrame(IplImage*, sensor_msgs::CameraInfoPtr&)’:
/home/doliveira/catkin_ws/src/ueye/src/CameraNode.cpp:368:20: error: no match for ‘operator=’ (operand types are ‘cv::Mat’ and ‘IplImage* {aka _IplImage*}’)
   converter_.image = frame;
                    ^
In file included from /usr/local/include/opencv2/core/mat.hpp:3396:0,
                 from /usr/local/include/opencv2/core.hpp:59,
                 from /usr/local/include/opencv2/core/core.hpp:48,
                 from /home/doliveira/catkin_ws/src/vision_opencv-indigo/cv_bridge/include/cv_bridge/cv_bridge.h:42,
                 from /home/doliveira/catkin_ws/src/ueye/include/ueye/CameraNode.h:44,
                 from /home/doliveira/catkin_ws/src/ueye/src/CameraNode.cpp:35:
/usr/local/include/opencv2/core/mat.inl.hpp:560:6: note: candidate: cv::Mat& cv::Mat::operator=(const cv::Mat&)
 Mat& Mat::operator = (const Mat& m)
      ^
/usr/local/include/opencv2/core/mat.inl.hpp:560:6: note:   no known conversion for argument 1 from ‘IplImage* {aka _IplImage*}’ to ‘const cv::Mat&’
In file included from /usr/local/include/opencv2/core/mat.hpp:3396:0,
                 from /usr/local/include/opencv2/core.hpp:59,
                 from /usr/local/include/opencv2/core/core.hpp:48,
                 from /home/doliveira/catkin_ws/src/vision_opencv-indigo/cv_bridge/include/cv_bridge/cv_bridge.h:42,
                 from /home/doliveira/catkin_ws/src/ueye/include/ueye/CameraNode.h:44,
                 from /home/doliveira/catkin_ws/src/ueye/src/CameraNode.cpp:35:
/usr/local/include/opencv2/core/mat.inl.hpp:2878:6: note: candidate: cv::Mat& cv::Mat::operator=(const cv::MatExpr&)
 Mat& Mat::operator = (const MatExpr& e)
      ^
/usr/local/include/opencv2/core/mat.inl.hpp:2878:6: note:   no known conversion for argument 1 from ‘IplImage* {aka _IplImage*}’ to ‘const cv::MatExpr&’
In file included from /usr/local/include/opencv2/core.hpp:59:0,
                 from /usr/local/include/opencv2/core/core.hpp:48,
                 from /home/doliveira/catkin_ws/src/vision_opencv-indigo/cv_bridge/include/cv_bridge/cv_bridge.h:42,
                 from /home/doliveira/catkin_ws/src/ueye/include/ueye/CameraNode.h:44,
                 from /home/doliveira/catkin_ws/src/ueye/src/CameraNode.cpp:35:
/usr/local/include/opencv2/core/mat.hpp:1102:10: note: candidate: cv::Mat& cv::Mat::operator=(const Scalar&)
     Mat& operator = (const Scalar& s);
          ^
/usr/local/include/opencv2/core/mat.hpp:1102:10: note:   no known conversion for argument 1 from ‘IplImage* {aka _IplImage*}’ to ‘const Scalar& {aka const cv::Scalar_<double>&}’
ueye/CMakeFiles/ueye_nodelets.dir/build.make:110: recipe for target 'ueye/CMakeFiles/ueye_nodelets.dir/src/CameraNode.cpp.o' failed
make[2]: *** [ueye/CMakeFiles/ueye_nodelets.dir/src/CameraNode.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 82%] Built target beginner_tutorials_generate_messages
/home/doliveira/catkin_ws/src/ueye/src/StereoNode.cpp: In member function ‘sensor_msgs::ImagePtr ueye::StereoNode::processFrame(IplImage*, ueye::Camera&, cv_bridge::CvImage&, sensor_msgs::CameraInfoPtr&, sensor_msgs::CameraInfo&)’:
/home/doliveira/catkin_ws/src/ueye/src/StereoNode.cpp:465:19: error: no match for ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2015-11-09 22:46:56 -0600

kmhallen gravatar image

Issue: https://bitbucket.org/kmhallen/ueye/i...

Problem: Build fails when compiled with OpenCV 3

Solution: Don't use OpenCV

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-11-09 09:08:31 -0600

Seen: 350 times

Last updated: Nov 09 '15