Skip to content

Commit

Permalink
Add SVG map example code
Browse files Browse the repository at this point in the history
  • Loading branch information
ll7 committed Mar 27, 2024
1 parent c34f2db commit 3ff3bf9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions examples/svg_map_example.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from loguru import logger

from robot_sf.nav.svg_map_parser import SvgMapConverter

SVG_FILE = "maps/svg_maps/02_simple_maps.svg"

logger.info("Converting SVG map to MapDefinition object.")
logger.info(f"SVG file: {SVG_FILE}")

converter = SvgMapConverter(SVG_FILE)

logger.info("MapDefinition object created.")

0 comments on commit 3ff3bf9

Please sign in to comment.