Skip to content

Commit

Permalink
Add an AprilTag option for svg
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyZe committed Feb 26, 2024
1 parent 82597ff commit 0478139
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aslam_cv/aslam_cameras_april/src/createTargetPDF.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ def generateCheckerboard(canvas, n_cols, n_rows, size_cols, size_rows):
parser.add_argument('--csy', type=float, default=0.03, dest='chessSzY', help='The size of one chessboard square in y direction [m] (default: %(default)s)')

parser.add_argument('--eps', action='store_true', dest='do_eps', help='Also output an EPS file', required=False)
parser.add_argument('--svg', action='store_true', dest='do_svg', help='Also output an SVG file', required=False)

#Parser the argument list
try:
Expand All @@ -195,6 +196,8 @@ def generateCheckerboard(canvas, n_cols, n_rows, size_cols, size_rows):

if parsed.do_eps:
c.writeEPSfile(parsed.output)
if parsed.do_svg:
c.writeSVGfile(parsed.output)

os.system("evince " + parsed.output + ".pdf &")

Expand Down

0 comments on commit 0478139

Please sign in to comment.