Skip to content

Commit

Permalink
Merge pull request #673 from AndyZe/write_svg
Browse files Browse the repository at this point in the history
Add an AprilTag option for svg
  • Loading branch information
goldbattle authored Mar 8, 2024
2 parents 82597ff + 0478139 commit 1f60227
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 1f60227

Please sign in to comment.