ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org
Ask Your Question
0

turtlebot3 : Traffic Sign Detection Problem

asked 2022-06-03 08:28:47 -0500

BENBEY gravatar image

updated 2022-06-03 10:14:27 -0500

ljaniec gravatar image

Hi, I'm following the steps of Autonomous Driving and I've a problem with Traffic Sign Detection, when i launch this command:

roslaunch turtlebot3_autorace_detect detect_sign.launch mission:=SELECT_MISSION

(and i got it with all missions, intersection for example)

I got this error :


 roslaunch turtlebot3_autorace_detect detect_sign.launch mission:=intersection

... logging to /home/islam/.ros/log/c1a5f2be-e33d-11ec-94f8-af2ee1c316ed/roslaunch-islam-12287.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://10.42.0.1:40681/

SUMMARY
========

PARAMETERS
 * /rosdistro: noetic
 * /rosversion: 1.15.14

NODES
  /
    detect_intersection_sign (turtlebot3_autorace_detect/detect_intersection_sign)

ROS_MASTER_URI=http://10.42.0.1:11311

process[detect_intersection_sign-1]: started with pid [12301]
Traceback (most recent call last):
  File "/home/islam/catkin_ws/devel/lib/turtlebot3_autorace_detect/detect_intersection_sign", line 15, in <module>
    exec(compile(fh.read(), python_script, 'exec'), context)
  File "/home/islam/catkin_ws/src/turtlebot3_autorace_2020/turtlebot3_autorace_detect/nodes/detect_intersection_sign", line 246, in <module>
    node = DetectSign()
  File "/home/islam/catkin_ws/src/turtlebot3_autorace_2020/turtlebot3_autorace_detect/nodes/detect_intersection_sign", line 33, in __init__
    self.fnPreproc()
  File "/home/islam/catkin_ws/src/turtlebot3_autorace_2020/turtlebot3_autorace_detect/nodes/detect_intersection_sign", line 62, in fnPreproc
    self.sift = cv2.SIFT_create()
AttributeError: module 'cv2' has no attribute 'SIFT_create'
[detect_intersection_sign-1] process has died [pid 12301, exit code 1, cmd /home/islam/catkin_ws/devel/lib/turtlebot3_autorace_detect/detect_intersection_sign /detect/image_input:=/camera/image_compensated /detect/image_input/compressed:=/camera/image_compensated/compressed /detect/image_output:=/detect/image_traffic_sign /detect/image_output/compressed:=/detect/image_traffic_sign/compressed __name:=detect_intersection_sign __log:=/home/islam/.ros/log/c1a5f2be-e33d-11ec-94f8-af2ee1c316ed/detect_intersection_sign-1.log].
log file: /home/islam/.ros/log/c1a5f2be-e33d-11ec-94f8-af2ee1c316ed/detect_intersection_sign-1*.log
all processes on machine have died, roslaunch will exit
shutting down processing monitor...
... shutting down processing monitor complete
done

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-06-03 10:21:29 -0500

ljaniec gravatar image

updated 2022-06-03 10:22:40 -0500

You probably installed cv2 via pip, which does not contain any non-free modules.

This topic is discussed there:

https://stackoverflow.com/questions/3...

People propose the use of:

  • Uninstall:

pip3 uninstall opencv-contrib-python

pip3 uninstall opencv-python

  • And then install:

pip3 install opencv-contrib-python

pip3 install opencv-python

edit flag offensive delete link more

Comments

1

That solved it, Thank you

BENBEY gravatar image BENBEY  ( 2022-06-04 09:10:07 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2022-06-03 08:28:47 -0500

Seen: 44 times

Last updated: Jun 03