ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Problem when compile rgbdslam

asked 2015-03-13 22:29:40 -0600

maxtom0 gravatar image

When I compile the rgbdslam in indigo, I meet the problem as below.

Built target rgbdslam_generate_messages
[ 46%] Built target RosAria
[ 47%] [ 49%] [ 50%] [ 52%] Building CXX object rgbdslam/CMakeFiles/rgbdslam.dir/src/feature_adjuster.o
Building CXX object rgbdslam/CMakeFiles/rgbdslam.dir/src/sift_gpu_wrapper.o
Building CXX object rgbdslam/CMakeFiles/rgbdslam.dir/src/features.o
Building CXX object rgbdslam/CMakeFiles/rgbdslam.dir/src/aorb.o
/program/Pioneer/src/rgbdslam/src/feature_adjuster.cpp: In member function ‘virtual bool VideoGridAdaptedFeatureDetector::empty() const’:
/program/Pioneer/src/rgbdslam/src/feature_adjuster.cpp:203:14: error: ‘detector’ does not name a type
     for(auto detector : detectors){
/program/Pioneer/src/rgbdslam/src/feature_adjuster.cpp:206:5: error: expected ‘;’ before ‘return’
     return false;
/program/Pioneer/src/rgbdslam/src/feature_adjuster.cpp:206:5: error: expected primary-expression before ‘return’
/program/Pioneer/src/rgbdslam/src/feature_adjuster.cpp:206:5: error: expected ‘;’ before ‘return’
/program/Pioneer/src/rgbdslam/src/feature_adjuster.cpp:206:5: error: expected primary-expression before ‘return’
/program/Pioneer/src/rgbdslam/src/feature_adjuster.cpp:206:5: error: expected ‘)’ before ‘return’
make[2]: *** [rgbdslam/CMakeFiles/rgbdslam.dir/src/feature_adjuster.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [rgbdslam/CMakeFiles/rgbdslam.dir/all] Error 2
make: *** [all] Error 2
Invoking "make -j8 -l8" failed

Do any body have the same problem with me, how to fix it?

edit retag flag offensive close merge delete


As the wiki says, rgbd slam is for fuerte and rgbdslam v2 is for hydro (stated as beta).

kokirits gravatar image kokirits  ( 2015-03-14 17:54:04 -0600 )edit

Hey buddy did u find out a solution for that problem?

kargas gravatar image kargas  ( 2015-06-05 09:23:40 -0600 )edit

1 Answer

Sort by » oldest newest most voted

answered 2015-06-08 05:57:26 -0600

kokirits gravatar image

You could comment out the for loop with "auto detector" and replace with the following block.

 for(size_t i=0;i<detectors.size();++i)
     if(>empty()) return true;
 return false;

Let me know if this solution is ok for you.

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


Asked: 2015-03-13 22:29:40 -0600

Seen: 435 times

Last updated: Jun 08 '15