From 0478139c0b96db1203a457d3657dc3db5a465da1 Mon Sep 17 00:00:00 2001 From: AndyZe Date: Mon, 26 Feb 2024 15:57:17 -0600 Subject: [PATCH] Add an AprilTag option for svg --- aslam_cv/aslam_cameras_april/src/createTargetPDF.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aslam_cv/aslam_cameras_april/src/createTargetPDF.py b/aslam_cv/aslam_cameras_april/src/createTargetPDF.py index 99c678c6d..9103c9769 100755 --- a/aslam_cv/aslam_cameras_april/src/createTargetPDF.py +++ b/aslam_cv/aslam_cameras_april/src/createTargetPDF.py @@ -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: @@ -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 &")