{"action":"created","issue":{"url":"https://api.github.com/repos/code-iai/iai_kinect2/issues/102","labels_url":"https://api.github.com/repos/code-iai/iai_kinect2/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/code-iai/iai_kinect2/issues/102/comments","events_url":"https://api.github.com/repos/code-iai/iai_kinect2/issues/102/events","html_url":"https://github.com/code-iai/iai_kinect2/issues/102","id":82060862,"number":102,"title":"OpenCV 3.0 Issues","user":{"login":"lakehanne","id":8429860,"avatar_url":"https://avatars.githubusercontent.com/u/8429860?v=3","gravatar_id":"","url":"https://api.github.com/users/lakehanne","html_url":"https://github.com/lakehanne","followers_url":"https://api.github.com/users/lakehanne/followers","following_url":"https://api.github.com/users/lakehanne/following{/other_user}","gists_url":"https://api.github.com/users/lakehanne/gists{/gist_id}","starred_url":"https://api.github.com/users/lakehanne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lakehanne/subscriptions","organizations_url":"https://api.github.com/users/lakehanne/orgs","repos_url":"https://api.github.com/users/lakehanne/repos","events_url":"https://api.github.com/users/lakehanne/events{/privacy}","received_events_url":"https://api.github.com/users/lakehanne/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":33,"created_at":"2015-05-28T18:10:52Z","updated_at":"2015-06-15T18:59:18Z","closed_at":null,"body":"This is a follow-up on issue [95] (https://github.com/code-iai/iai_kinect2/issues/95) which I raised couple of days ago. \r\nI have opencv 3.00 on my Ubuntu trusty and I sourced indigo which I am using as well as `rosdep init` and `rosdep update`. But I find that some member functions could not be rightly conbverted as the following shows: \r\n\r\n>lex@LEX~/catkin_ws$ catkin_make -DCMAKE_BUILD_TYPE=\"Release\"\r\nBase path: /home/lex/catkin_ws\r\nSource space: /home/lex/catkin_ws/src\r\nBuild space: /home/lex/catkin_ws/build\r\nDevel space: /home/lex/catkin_ws/devel\r\nInstall space: /home/lex/catkin_ws/install\r\n####\r\n#### Running command: \"cmake /home/lex/catkin_ws/src -DCMAKE_BUILD_TYPE=Release -DCATKIN_DEVEL_PREFIX=/home/lex/catkin_ws/devel -DCMAKE_INSTALL_PREFIX=/home/lex/catkin_ws/install -G Unix Makefiles\" in \"/home/lex/catkin_ws/build\"\r\n####\r\n-- Using CATKIN_DEVEL_PREFIX: /home/lex/catkin_ws/devel\r\n-- Using CMAKE_PREFIX_PATH: /opt/ros/indigo\r\n-- This workspace overlays: /opt/ros/indigo\r\n-- Using PYTHON_EXECUTABLE: /usr/bin/python\r\n-- Using Debian Python package layout\r\n-- Using empy: /usr/bin/empy\r\n-- Using CATKIN_ENABLE_TESTING: ON\r\n-- Call enable_testing()\r\n-- Using CATKIN_TEST_RESULTS_DIR: /home/lex/catkin_ws/build/test_results\r\n-- Found gtest sources under '/usr/src/gtest': gtests will be built\r\n-- Using Python nosetests: /usr/bin/nosetests-2.7\r\n-- catkin 0.6.14\r\n-- BUILD_SHARED_LIBS is on\r\n-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n-- ~~  traversing 5 packages in topological order:\r\n-- ~~  - iai_kinect2 (metapackage)\r\n-- ~~  - depth_registration\r\n-- ~~  - kinect2_bridge\r\n-- ~~  - kinect2_calibration\r\n-- ~~  - registration_viewer\r\n-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n-- +++ processing catkin metapackage: 'iai_kinect2'\r\n-- ==> add_subdirectory(iai_kinect2/iai_kinect2)\r\n-- +++ processing catkin package: 'depth_registration'\r\n-- ==> add_subdirectory(iai_kinect2/depth_registration)\r\n-- Eigen found (include: /usr/include/eigen3)\r\n-- Could NOT find OpenCL (missing:  OPENCL_INCLUDE_DIRS) \r\n-- CPU based depth registration enabled\r\n-- OpenCL based depth registration disabled\r\n-- +++ processing catkin package: 'kinect2_bridge'\r\n-- ==> add_subdirectory(iai_kinect2/kinect2_bridge)\r\n-- Using these message generators: gencpp;genlisp;genpy\r\n-- +++ processing catkin package: 'kinect2_calibration'\r\n-- ==> add_subdirectory(iai_kinect2/kinect2_calibration)\r\n-- Using these message generators: gencpp;genlisp;genpy\r\n-- +++ processing catkin package: 'registration_viewer'\r\n-- ==> add_subdirectory(iai_kinect2/registration_viewer)\r\n-- Using these message generators: gencpp;genlisp;genpy\r\n-- Boost version: 1.54.0\r\n-- Found the following Boost libraries:\r\n--   system\r\n--   filesystem\r\n--   thread\r\n--   date_time\r\n--   iostreams\r\n--   serialization\r\n-- checking for module 'openni-dev'\r\n--   package 'openni-dev' not found\r\n-- checking for module 'openni-dev'\r\n--   package 'openni-dev' not found\r\n-- checking for module 'openni-dev'\r\n--   package 'openni-dev' not found\r\n-- looking for PCL_COMMON\r\n-- looking for PCL_KDTREE\r\n-- looking for PCL_OCTREE\r\n-- looking for PCL_SEARCH\r\n-- looking for PCL_SURFACE\r\n-- looking for PCL_GEOMETRY\r\n-- looking for PCL_SAMPLE_CONSENSUS\r\n-- looking for PCL_FILTERS\r\n-- looking for PCL_FEATURES\r\n-- looking for PCL_SEGMENTATION\r\n-- looking for PCL_IO\r\n-- looking for PCL_REGISTRATION\r\n-- looking for PCL_KEYPOINTS\r\n-- looking for PCL_RECOGNITION\r\n-- looking for PCL_VISUALIZATION\r\n-- looking for PCL_PEOPLE\r\n-- looking for PCL_OUTOFCORE\r\n-- looking for PCL_TRACKING\r\n-- looking for PCL_APPS\r\n-- Configuring done\r\n-- Generating done\r\n-- Build files have been written to: /home/lex/catkin_ws/build\r\n####\r\n#### Running command: \"make -j8 -l8\" in \"/home/lex/catkin_ws/build\"\r\n####\r\n[ 16%] [ 33%] [ 50%] Building CXX object iai_kinect2/kinect2_calibration/CMakeFiles/kinect2_calibration.dir/src/kinect2_calibration.cpp.o\r\nBuilding CXX object iai_kinect2/depth_registration/CMakeFiles/depth_registration.dir/src/depth_registration.cpp.o\r\nBuilding CXX object iai_kinect2/depth_registration/CMakeFiles/depth_registration.dir/src/depth_registration_cpu.cpp.o\r\n[ 66%] Building CXX object iai_kinect2/registration_viewer/CMakeFiles/viewer.dir/src/viewer.cpp.o\r\nLinking CXX shared library /home/lex/catkin_ws/devel/lib/libdepth_registration.so\r\n[ 66%] Built target depth_registration\r\n[ 83%] [100%] Building CXX object iai_kinect2/kinect2_bridge/CMakeFiles/kinect2_bridge.dir/src/kinect2_bridge.cpp.o\r\nBuilding CXX object iai_kinect2/kinect2_bridge/CMakeFiles/kinect2_bridge_nodelet.dir/src/kinect2_bridge.cpp.o\r\n/home/lex/catkin_ws/src/iai_kinect2/kinect2_calibration/src/kinect2_calibration.cpp: In member function ‘void CameraCalibration::calibrateExtrinsics()’:\r\n/home/lex/catkin_ws/src/iai_kinect2/kinect2_calibration/src/kinect2_calibration.cpp:682:56: error: cannot convert ‘const cv::TermCriteria’ to ‘int’ for argument ‘13’ to ‘double cv::stereoCalibrate(cv::InputArrayOfArrays, cv::InputArrayOfArrays, cv::InputArrayOfArrays, cv::InputOutputArray, cv::InputOutputArray, cv::InputOutputArray, cv::InputOutputArray, cv::Size, cv::OutputArray, cv::OutputArray, cv::OutputArray, cv::OutputArray, int, cv::TermCriteria)’\r\n                                 cv::CALIB_FIX_INTRINSIC);\r\n                                                        ^\r\n/home/lex/catkin_ws/src/iai_kinect2/kinect2_calibration/src/kinect2_calibration.cpp: In member function ‘void DepthCalibration::getPlane(size_t, cv::Mat&, double&) const’:\r\n/home/lex/catkin_ws/src/iai_kinect2/kinect2_calibration/src/kinect2_calibration.cpp:969:138: error: ‘ITERATIVE’ is not a member of ‘cv’\r\n     cv::solvePnPRansac(board, points[index], cameraMatrix, distortion, rvec, translation, false, 300, 0.05, board.size(), cv::noArray(), cv::ITERATIVE);\r\n                                                                                                                                          ^\r\nmake[2]: *** [iai_kinect2/kinect2_calibration/CMakeFiles/kinect2_calibration.dir/src/kinect2_calibration.cpp.o] Error 1\r\nmake[1]: *** [iai_kinect2/kinect2_calibration/CMakeFiles/kinect2_calibration.dir/all] Error 2\r\nmake[1]: *** Waiting for unfinished jobs....\r\nIn file included from /usr/include/pcl-1.7/pcl/visualization/pcl_visualizer.h:52:0,\r\n                 from /usr/include/pcl-1.7/pcl/visualization/cloud_viewer.h:39,\r\n                 from /home/lex/catkin_ws/src/iai_kinect2/registration_viewer/src/viewer.cpp:32:\r\n/usr/include/pcl-1.7/pcl/visualization/area_picking_event.h: In member function ‘bool pcl::visualization::AreaPickingEvent::getPointsIndices(std::vector<int>&) const’:\r\n/usr/include/pcl-1.7/pcl/visualization/area_picking_event.h:64:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n           if (nb_points_ == -1)\r\n                              ^\r\nLinking CXX shared library /home/lex/catkin_ws/devel/lib/libkinect2_bridge_nodelet.so\r\n[100%] Built target kinect2_bridge_nodelet\r\nLinking CXX executable /home/lex/catkin_ws/devel/lib/kinect2_bridge/kinect2_bridge\r\n/usr/bin/ld: warning: libopencv_imgproc.so.3.0, needed by /home/lex/catkin_ws/devel/lib/libdepth_registration.so, may conflict with libopencv_imgproc.so.2.4\r\n[100%] Built target kinect2_bridge\r\nLinking CXX executable /home/lex/catkin_ws/devel/lib/registration_viewer/viewer\r\n/usr/bin/ld: warning: libopencv_objdetect.so.2.4, needed by /usr/lib/x86_64-linux-gnu/libopencv_contrib.so.2.4.8, may conflict with libopencv_objdetect.so.3.0\r\n[100%] Built target viewer\r\nmake: *** [all] Error 2\r\nInvoking \"make -j8 -l8\" failed\r\n"},"comment":{"url":"https://api.github.com/repos/code-iai/iai_kinect2/issues/comments/112173803","html_url":"https://github.com/code-iai/iai_kinect2/issues/102#issuecomment-112173803","issue_url":"https://api.github.com/repos/code-iai/iai_kinect2/issues/102","id":112173803,"user":{"login":"lakehanne","id":8429860,"avatar_url":"https://avatars.githubusercontent.com/u/8429860?v=3","gravatar_id":"","url":"https://api.github.com/users/lakehanne","html_url":"https://github.com/lakehanne","followers_url":"https://api.github.com/users/lakehanne/followers","following_url":"https://api.github.com/users/lakehanne/following{/other_user}","gists_url":"https://api.github.com/users/lakehanne/gists{/gist_id}","starred_url":"https://api.github.com/users/lakehanne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lakehanne/subscriptions","organizations_url":"https://api.github.com/users/lakehanne/orgs","repos_url":"https://api.github.com/users/lakehanne/repos","events_url":"https://api.github.com/users/lakehanne/events{/privacy}","received_events_url":"https://api.github.com/users/lakehanne/received_events","type":"User","site_admin":false},"created_at":"2015-06-15T18:59:18Z","updated_at":"2015-06-15T18:59:18Z","body":"Thank you! I've since finished the calibration actually. But everytime I do `rosrun registration_viewer viewer image`, I get `[rospack] Error: package 'registration_viewer' not found` even though my setup.bash files are properly sourced. Libfreenect2 rund fine though."}}