Comments (1)
Resolved first issue by putting ${OpenCV_LIBRARIES} before ${catkin_LIBRARIES}.
However, this causes:
Errors << chapter9_tutorials:make /home/osean/dev/catkin_ws/logs/chapter9_tutorials/build.make.037.log
In file included from /usr/include/opencv2/nonfree/nonfree.hpp:46:0,
from /home/osean/dev/catkin_ws/src/ros_book/chapter9_tutorials/src/homography.cpp:16:
/usr/include/opencv2/nonfree/features2d.hpp:73:21: error: ‘vector’ has not been declared
vector& keypoints) const;
^
/usr/include/opencv2/nonfree/features2d.hpp:73:27: error: expected ‘,’ or ‘...’ before ‘<’ token
vector& keypoints) const;
^
/usr/include/opencv2/nonfree/features2d.hpp:77:21: error: ‘vector’ has not been declared
vector& keypoints,
^
/usr/include/opencv2/nonfree/features2d.hpp:77:27: error: expected ‘,’ or ‘...’ before ‘<’ token
vector& 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& pyr, int nOctaves ) const;
^
/usr/include/opencv2/nonfree/features2d.hpp:83:55: error: expected ‘,’ or ‘...’ before ‘<’ token
void buildGaussianPyramid( const Mat& base, vector& pyr, int nOctaves ) const;
^
/usr/include/opencv2/nonfree/features2d.hpp:84:33: error: ‘vector’ does not name a type
void buildDoGPyramid( const vector& pyr, vector& dogpyr ) const;
^
/usr/include/opencv2/nonfree/features2d.hpp:84:39: error: expected ‘,’ or ‘...’ before ‘<’ token
void buildDoGPyramid( const vector& pyr, vector& dogpyr ) const;
^
/usr/include/opencv2/nonfree/features2d.hpp:85:39: error: ‘vector’ does not name a type
void findScaleSpaceExtrema( const vector& gauss_pyr, const vector& dog_pyr,
^
/usr/include/opencv2/nonfree/features2d.hpp:85:45: error: expected ‘,’ or ‘...’ before ‘<’ token
void findScaleSpaceExtrema( const vector& gauss_pyr, const vector& dog_pyr,
^
/usr/include/opencv2/nonfree/features2d.hpp:89:40: error: ‘vector’ has not been declared
void detectImpl( const Mat& image, vector& 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& 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& keypoints, Mat& descriptors ) const;
^
/usr/include/opencv2/nonfree/features2d.hpp:90:47: error: expected ‘,’ or ‘...’ before ‘<’ token
void computeImpl( const Mat& image, vector& keypoints, Mat& descriptors ) const;
^
/usr/include/opencv2/nonfree/features2d.hpp:125:28: error: ‘vector’ has not been declared
CV_OUT vector& keypoints) const;
^
/usr/include/opencv2/nonfree/features2d.hpp:125:34: error: expected ‘,’ or ‘...’ before ‘<’ token
CV_OUT vector& keypoints) const;
^
In file included from /usr/include/opencv2/nonfree/nonfree.hpp:46:0,
from /home/osean/dev/catkin_ws/src/ros_book/chapter9_tutorials/src/homography.cpp:16:
/usr/include/opencv2/nonfree/features2d.hpp:128:28: error: ‘vector’ has not been declared
CV_OUT vector& keypoints,
^
/usr/include/opencv2/nonfree/features2d.hpp:128:34: error: expected ‘,’ or ‘...’ before ‘<’ token
CV_OUT vector& 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 /usr/include/opencv2/nonfree/nonfree.hpp:46:0,
from /home/osean/dev/catkin_ws/src/ros_book/chapter9_tutorials/src/homography.cpp:16:
/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 /usr/include/opencv2/nonfree/nonfree.hpp:46:0,
from /home/osean/dev/catkin_ws/src/ros_book/chapter9_tutorials/src/homography.cpp:16:
/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& 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& 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& keypoints, Mat& descriptors ) const;
^
/usr/include/opencv2/nonfree/features2d.hpp:143:47: error: expected ‘,’ or ‘...’ before ‘<’ token
void computeImpl( const Mat& image, vector& keypoints, Mat& descriptors ) const;
^
/home/osean/dev/catkin_ws/src/ros_book/chapter9_tutorials/src/homography.cpp: In constructor ‘Homography::Homography()’:
/home/osean/dev/catkin_ws/src/ros_book/chapter9_tutorials/src/homography.cpp:40:21: error: ‘create’ is not a member of ‘cv::FeatureDetector {aka cv::Feature2D}’
detector_ = cv::FeatureDetector::create(feature_detector_);
^
/home/osean/dev/catkin_ws/src/ros_book/chapter9_tutorials/src/homography.cpp:48:22: error: ‘create’ is not a member of ‘cv::DescriptorExtractor {aka cv::Feature2D}’
extractor_ = cv::DescriptorExtractor::create(descriptor_extractor_);
^
make[2]: *** [CMakeFiles/homography.dir/src/homography.cpp.o] Error 1
make[1]: *** [CMakeFiles/homography.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [all] Error 2
Vector is included in header and non-free uses it's namespace. I'm not sure what linker is causing this error. I've remade OpenCV 2.4.9 on my system and same issue.
from effective_robotics_programming_with_ros.
Related Issues (20)
- there are two excutable "example4" , catkin_make failed . HOT 2
- error : "undefined reference to `cv::ocl::integral(cv::ocl::oclMat const&, cv::ocl::oclMat&)" in chapter 9 HOT 1
- Endless loop when running wstool up -j8
- Inconsistent LaserScan data
- chapter 6: Waiting on transform from /base_footprint to /map to become available before running costmap, tf error: HOT 3
- error of the catkin_make under the directory of "chapter4_tutorials/robot1_description" HOT 2
- Example close-loop control algorithm with PID HOT 1
- chapter 7.5.5 pkg "moveit_simple_grasps" catkin_make have error info HOT 5
- Question about the Robot communication in Chapter 4 HOT 1
- Chapter 5 tutorials HOT 1
- chapter 6: Timed out waiting for transform from base_footprint to map to become available before running costmap, tf error: Could not find a connection between 'map' and 'base_footprint' because they are not part of the same tree.Tf has two or more unconnected trees.. HOT 1
- Chapter7:Nothing happens when run pick_and_place.py
- The Installation HOT 2
- Unable to transform from frame '' to frame '/base_link'. Returning entity HOT 2
- setup " rosdep install --from-paths src -iy " error HOT 4
- File robot_model_with_ motors.launch is missed HOT 1
- The launch file doesn't match the book content in page 301. The section is for c8_robot_with_motors_w_twist.ino example. HOT 3
- Is there a way to install "moveit_simple_grasps" in mint? HOT 1
- Chapter 6: Creating a launch file for the navigation stack error: tf error: canTransform: target_frame map does not exist HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from effective_robotics_programming_with_ros.