We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b59dff commit 78e3879Copy full SHA for 78e3879
modules/aruco/misc/pattern_generator/MarkerPrinter.py
@@ -123,7 +123,15 @@ def __DrawBlock(context,
123
if((squareLength is None) or (markerLength is None)):
124
raise ValueError("lenght is None")
125
126
- if((( blockX % 2 == 0 ) == ( blockY % 2 == 0 )) or mode == "ARUCOGRID"):
+ dawMarkerBlock = False
127
+ if ((mode == "ARUCO") or (mode == "ARUCOGRID")):
128
+ dawMarkerBlock = True
129
+ elif(chessboardSize[1] % 2 == 0):
130
+ dawMarkerBlock = (( blockX % 2 == 0 ) == ( blockY % 2 == 0 ))
131
+ else:
132
+ dawMarkerBlock = (( blockX % 2 == 0 ) != ( blockY % 2 == 0 ))
133
+
134
+ if(dawMarkerBlock):
135
if (mode != "CHESS"):
136
if(dictionary is None):
137
raise ValueError("dictionary is None")
0 commit comments