Closed sunghoon031 closed 8 years ago
After few hours of struggle, I realized the solution was quite simple. Simply go to opencv-2.4.12 folder then cd build (where I run sudo make install). Then run "sudo make uninstall" By doing this, I am only left with "ros-provided-version" of opencv 2.4.8. Then I rebuilt dpptam, and works perfectly well.
When I do "rosrun dpptam dpptam" and "rosbag play lab_unizar.bag" I can see movie starting to play in the current frame (/dpptam/camera/image) But sometime in the middle (before any map is generated in rviz), I get this error:
OpenCV Error: Assertion failed ((type()==0) || (DataType<_Tp>::type == type())) in push_back, file /usr/local/include/opencv2/core/mat.hpp, line 687 terminate called after throwing an instance of 'cv::Exception' what(): /usr/local/include/opencv2/core/mat.hpp:687: error: (-215) (type()==0) || (DataType<_Tp>::type == type()) in function push_back
Aborted (core dumped)
I have opencv 2.4.12 and ros jade. With my current set-up, I have run many other ros SLAM projects (ORB-SLAM, LSD-SLAM, SVO, REMODE...) and this is the first time getting this error.
Can you please tell me how I can fix this issue? or is there any workaround?
(edit: I have tried again by uninstalling/reinstalling opencv 2.4.12 & with ros indigo. I still get the same error)