Skip to content

Commit

Permalink
aruco_pose: make dynamic reconfigure generator work with newer versio…
Browse files Browse the repository at this point in the history
…ns of OpenCV (#495)
  • Loading branch information
okalachev committed Oct 14, 2023
1 parent 742d053 commit f0eacfc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion aruco_pose/cfg/Detector.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ PACKAGE = "aruco_pose"
from dynamic_reconfigure.parameter_generator_catkin import *
import cv2.aruco

p = cv2.aruco.DetectorParameters_create()
try:
p = cv2.aruco.DetectorParameters_create()
except AttributeError:
p = cv2.aruco.DetectorParameters()

gen = ParameterGenerator()

Expand Down

0 comments on commit f0eacfc

Please sign in to comment.