Closed kunzel closed 9 years ago
When I go to https://github.com/kunzel/strands_tabletop_perception/ I get Error 404. Maybe because it is a private repo, but I'm sure I can normally access it since I can access the one it is forked from..
@hawesie do you know why this is happening. I tried to add a team to my repo (core developers), but it doesn't find it. I thought that I've merged things from private forks before...
You had a very different list of collaborators than the main repo. I changed them to match, so now @cburbridge should be able to see it.
Ok I can access it now but it won't compile. Your fork has not got some CATKIN_IGNORE, but still depends on strands_perception_msgs
: https://github.com/kunzel/strands_tabletop_perception/blob/hydro-devel/table_segmentation/package.xml
Ah yes, forgot about this. Should we move the Table.msg into this repo? I think this is the last message in strands_peception_msgs anyway. Or is it used anywhere else?
Moving it here makes sense, I don't think anything else used it.
Ok, I moved it here. Can you please try if it works for you. I did not rename the package. So, the package is still named 'strands_perception_msgs', because the stored messages have this signature.
Where do I get opencv_nonfree? I get this error
Building CXX object strands_tabletop_perception/singleview_object_recognizer/CMakeFiles/recognition_service.dir/src/recognition_service.cpp.o
[100%] Built target object_classifier_node
In file included from /home/chris/ros_ws/src/strands_tabletop_perception/singleview_object_recognizer/src/recognition_service.cpp:55:0:
/home/chris/ros_ws/src/v4r/v4r/ORFramework/opencv_sift_local_estimator.h:14:42: fatal error: opencv2/nonfree/features2d.hpp: No such file or directory
#include "opencv2/nonfree/features2d.hpp"
What I did on Bobl and also on my machine is the following: (see answer) http://stackoverflow.com/questions/27481849/include-nonfree-opencv-2-4-10-on-ubuntu?answertab=votes#tab-top
On Tue, 23 Jun 2015 at 14:32 Chris Burbridge notifications@github.com wrote:
Where do I get opencv_nonfree? I get this error
Building CXX object strands_tabletop_perception/singleview_object_recognizer/CMakeFiles/recognition_service.dir/src/recognition_service.cpp.o [100%] Built target object_classifier_node In file included from /home/chris/ros_ws/src/strands_tabletop_perception/singleview_object_recognizer/src/recognition_service.cpp:55:0: /home/chris/ros_ws/src/v4r/v4r/ORFramework/opencv_sift_local_estimator.h:14:42: fatal error: opencv2/nonfree/features2d.hpp: No such file or directory
include "opencv2/nonfree/features2d.hpp"
— Reply to this email directly or view it on GitHub https://github.com/strands-project/strands_tabletop_perception/pull/97#issuecomment-114504033 .
Ok I installed that, but now get this error:
[100%] Building CXX object strands_tabletop_perception/singleview_object_recognizer/CMakeFiles/recognition_service.dir/src/recognition_service.cpp.o
[100%] Built target object_classifier_node
In file included from /home/chris/ros_ws/src/v4r/v4r/ORFramework/opencv_sift_local_estimator.h:14:0,
from /home/chris/ros_ws/src/strands_tabletop_perception/singleview_object_recognizer/src/recognition_service.cpp:55:
/usr/include/opencv2/nonfree/features2d.hpp:73:21: error: ‘vector’ has not been declared
vector<KeyPoint>& keypoints) const;
^
/usr/include/opencv2/nonfree/features2d.hpp:73:27: error: expected ‘,’ or ‘...’ before ‘<’ token
vector<KeyPoint>& keypoints) const;
^
/usr/include/opencv2/nonfree/features2d.hpp:77:21: error: ‘vector’ has not been declared
vector<KeyPoint>& keypoints,
^
/usr/include/opencv2/nonfree/features2d.hpp:77:27: error: expected ‘,’ or ‘...’ before ‘<’ token
vector<KeyPoint>& keypoints,
^
/usr/include/opencv2/nonfree/features2d.hpp:76:10: error: ‘void cv::SIFT::operator()(cv::InputArray, cv::InputArray, int) const’ cannot be overloaded
void operator()(InputArray img, InputArray mask,
^
/usr/include/opencv2/nonfree/features2d.hpp:72:10: error: with ‘void cv::SIFT::operator()(cv::InputArray, cv::InputArray, int) const’
void operator()(InputArray img, InputArray mask,
^
/usr/include/opencv2/nonfree/features2d.hpp:81:5: error: ‘AlgorithmInfo’ does not name a type
AlgorithmInfo* info() const;
^
/usr/include/opencv2/nonfree/features2d.hpp:83:49: error: ‘vector’ has not been declared
void buildGaussianPyramid( const Mat& base, vector<Mat>& pyr, int nOctaves ) const;
^
/usr/include/opencv2/nonfree/features2d.hpp:83:55: error: expected ‘,’ or ‘...’ before ‘<’ token
void buildGaussianPyramid( const Mat& base, vector<Mat>& pyr, int nOctaves ) const;
^
/usr/include/opencv2/nonfree/features2d.hpp:84:33: error: ‘vector’ does not name a type
void buildDoGPyramid( const vector<Mat>& pyr, vector<Mat>& dogpyr ) const;
^
/usr/include/opencv2/nonfree/features2d.hpp:84:39: error: expected ‘,’ or ‘...’ before ‘<’ token
void buildDoGPyramid( const vector<Mat>& pyr, vector<Mat>& dogpyr ) const;
^
/usr/include/opencv2/nonfree/features2d.hpp:85:39: error: ‘vector’ does not name a type
void findScaleSpaceExtrema( const vector<Mat>& gauss_pyr, const vector<Mat>& dog_pyr,
^
/usr/include/opencv2/nonfree/features2d.hpp:85:45: error: expected ‘,’ or ‘...’ before ‘<’ token
void findScaleSpaceExtrema( const vector<Mat>& gauss_pyr, const vector<Mat>& dog_pyr,
^
/usr/include/opencv2/nonfree/features2d.hpp:89:40: error: ‘vector’ has not been declared
void detectImpl( const Mat& image, vector<KeyPoint>& keypoints, const Mat& mask=Mat() ) const;
^
/usr/include/opencv2/nonfree/features2d.hpp:89:46: error: expected ‘,’ or ‘...’ before ‘<’ token
void detectImpl( const Mat& image, vector<KeyPoint>& keypoints, const Mat& mask=Mat() ) const;
^
/usr/include/opencv2/nonfree/features2d.hpp:90:41: error: ‘vector’ has not been declared
void computeImpl( const Mat& image, vector<KeyPoint>& keypoints, Mat& descriptors ) const;
^
/usr/include/opencv2/nonfree/features2d.hpp:90:47: error: expected ‘,’ or ‘...’ before ‘<’ token
void computeImpl( const Mat& image, vector<KeyPoint>& keypoints, Mat& descriptors ) const;
^
/usr/include/opencv2/nonfree/features2d.hpp:125:28: error: ‘vector’ has not been declared
CV_OUT vector<KeyPoint>& keypoints) const;
^
/usr/include/opencv2/nonfree/features2d.hpp:125:34: error: expected ‘,’ or ‘...’ before ‘<’ token
CV_OUT vector<KeyPoint>& keypoints) const;
^
In file included from /home/chris/ros_ws/src/v4r/v4r/ORFramework/opencv_sift_local_estimator.h:14:0,
from /home/chris/ros_ws/src/strands_tabletop_perception/singleview_object_recognizer/src/recognition_service.cpp:55:
/usr/include/opencv2/nonfree/features2d.hpp:128:28: error: ‘vector’ has not been declared
CV_OUT vector<KeyPoint>& keypoints,
^
/usr/include/opencv2/nonfree/features2d.hpp:128:34: error: expected ‘,’ or ‘...’ before ‘<’ token
CV_OUT vector<KeyPoint>& keypoints,
^
/usr/include/opencv2/nonfree/features2d.hpp:127:10: error: ‘void cv::SURF::operator()(cv::InputArray, cv::InputArray, int) const’ cannot be overloaded
void operator()(InputArray img, InputArray mask,
^
In file included from /home/chris/ros_ws/src/v4r/v4r/ORFramework/opencv_sift_local_estimator.h:14:0,
from /home/chris/ros_ws/src/strands_tabletop_perception/singleview_object_recognizer/src/recognition_service.cpp:55:
/usr/include/opencv2/nonfree/features2d.hpp:124:10: error: with ‘void cv::SURF::operator()(cv::InputArray, cv::InputArray, int) const’
void operator()(InputArray img, InputArray mask,
^
In file included from /home/chris/ros_ws/src/v4r/v4r/ORFramework/opencv_sift_local_estimator.h:14:0,
from /home/chris/ros_ws/src/strands_tabletop_perception/singleview_object_recognizer/src/recognition_service.cpp:55:
/usr/include/opencv2/nonfree/features2d.hpp:132:5: error: ‘AlgorithmInfo’ does not name a type
AlgorithmInfo* info() const;
^
/usr/include/opencv2/nonfree/features2d.hpp:142:40: error: ‘vector’ has not been declared
void detectImpl( const Mat& image, vector<KeyPoint>& keypoints, const Mat& mask=Mat() ) const;
^
/usr/include/opencv2/nonfree/features2d.hpp:142:46: error: expected ‘,’ or ‘...’ before ‘<’ token
void detectImpl( const Mat& image, vector<KeyPoint>& keypoints, const Mat& mask=Mat() ) const;
^
/usr/include/opencv2/nonfree/features2d.hpp:143:41: error: ‘vector’ has not been declared
void computeImpl( const Mat& image, vector<KeyPoint>& keypoints, Mat& descriptors ) const;
^
/usr/include/opencv2/nonfree/features2d.hpp:143:47: error: expected ‘,’ or ‘...’ before ‘<’ token
void computeImpl( const Mat& image, vector<KeyPoint>& keypoints, Mat& descriptors ) const;
^
In file included from /home/chris/ros_ws/src/strands_tabletop_perception/singleview_object_recognizer/src/recognition_service.cpp:55:0:
/home/chris/ros_ws/src/v4r/v4r/ORFramework/opencv_sift_local_estimator.h: In member function ‘bool faat_pcl::rec_3d_framework::OpenCVSIFTLocalEstimation<PointInT, FeatureT>::estimate(const PointInTPtr&, faat_pcl::rec_3d_framework::OpenCVSIFTLocalEstimation<PointInT, FeatureT>::PointInTPtr&, faat_pcl::rec_3d_framework::OpenCVSIFTLocalEstimation<PointInT, FeatureT>::PointInTPtr&, faat_pcl::rec_3d_framework::OpenCVSIFTLocalEstimation<PointInT, FeatureT>::FeatureTPtr&)’:
/home/chris/ros_ws/src/v4r/v4r/ORFramework/opencv_sift_local_estimator.h:96:64: error: no match for call to ‘(cv::SIFT) (cv::Mat&, cv::Mat, std::vector<cv::KeyPoint>&, cv::Mat&, bool)’
(*sift_)(grayImage, cv::Mat(), ks, descriptors, false);
^
In file included from /home/chris/ros_ws/src/v4r/v4r/ORFramework/opencv_sift_local_estimator.h:14:0,
from /home/chris/ros_ws/src/strands_tabletop_perception/singleview_object_recognizer/src/recognition_service.cpp:55:
/usr/include/opencv2/nonfree/features2d.hpp:58:20: note: candidate is:
class CV_EXPORTS_W SIFT : public Feature2D
^
/usr/include/opencv2/nonfree/features2d.hpp:72:10: note: void cv::SIFT::operator()(cv::InputArray, cv::InputArray, int) const
void operator()(InputArray img, InputArray mask,
^
/usr/include/opencv2/nonfree/features2d.hpp:72:10: note: candidate expects 3 arguments, 5 provided
make[2]: *** [strands_tabletop_perception/singleview_object_recognizer/CMakeFiles/recognition_service.dir/src/recognition_service.cpp.o] Error 1
make[1]: *** [strands_tabletop_perception/singleview_object_recognizer/CMakeFiles/recognition_service.dir/all] Error 2
make: *** [all] Error 2
Invoking "make -j4 -l4" failed
Hmm, never had this one. Did you use 'Release' as build type? Can this make a difference? @ToMadoRe any idea?
I have never had this one either. I installed OpenCV 2.4.10 from source. Then you get nonfree libraries as well. Usually, I use RelWithDebInfo as build type but this shouldn't matter for this error. Could you try to compile it with 2.4.10 installed from source. And then doing catkin_make -DOpenCV_DIR=/yourOpenCV_build_dir
It compiles now. The problem was that in trying to get the non free before adding the ppa, I installed ros-indigo-opencv3. This interfered with opencv 2, also breaking the Python bindings to it.
So, provided the above PPA is installed and ros-indigo-opencv3 is not this will compile.
Don't merge as will collate everything together first.
@cburbridge can you please check if it works (compiles) for you?