process has died,terminate called after throwing an instance of 'std::runtime_error' ,what(): Unsupported type of detector SURF

asked 2020-07-29 06:12:00 -0600

updated 2020-11-02 15:23:07 -0600

After I run:

roslaunch tiago_opencv_tutorial keypoint_tutorial.launch

The error Tips:

... logging to /home/dell/.ros/log/44ec5218-d183-11ea-b335-54353005d2aa/roslaunch-skdr-5443.log Checking log directory for disk usage. This may take a while. Press Ctrl-C to interrupt Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://skdr:44807/

SUMMARY

PARAMETERS * /rosdistro: melodic * /rosversion: 1.14.6

NODES / gui (tiago_opencv_tutorial/gui_find_keypoints.py) vision_code (tiago_opencv_tutorial/find_keypoints)

ROS_MASTER_URI=http://localhost:11311

process[gui-1]: started with pid [5474] process[vision_code-2]: started with pid [5475] terminate called after throwing an instance of 'std::runtime_error' what(): Unsupported type of detector SURF [vision_code-2] process has died [pid 5475, exit code -6, cmd /home/dell/tiago_dual_public_ws/devel/lib/tiago_opencv_tutorial/find_keypoints __name:=vision_code __log:=/home/dell/.ros/log/44ec5218-d183-11ea-b335-54353005d2aa/vision_code-2.log]. log file: /home/dell/.ros/log/44ec5218-d183-11ea-b335-54353005d2aa/vision_code-2*.log ^C[gui-1] killing on exit shutting down processing monitor... ... shutting down processing monitor complete done

Here is my launch File:

<launch> <node name="gui" pkg="tiago_opencv_tutorial" type="gui_find_keypoints.py"/> <node name="vision_code" pkg="tiago_opencv_tutorial" type="find_keypoints" output="screen"/> </launch>

edit retag flag offensive close merge delete

Comments

this is unfortunately not an opencv error (and we usually can't help with ROS problems, -- different universe ;(

however, please show your code here (or link us to the tutorial), we cannot do anything without.

then, SURF is usually disabled (nonfree), and you have build the contrib modules using the -DOPENCV_ENABLE_NONFREE=ON cmake flag

opencv version ?

berak gravatar imageberak ( 2020-07-29 06:37:25 -0600 )edit

if it's actually this, you could try with another keypoint detector, like "ORB"

berak gravatar imageberak ( 2020-07-29 07:02:28 -0600 )edit