From 3ff3bf97fa3de9bba2aeeadecaa63297439c2393 Mon Sep 17 00:00:00 2001 From: ll7 Date: Wed, 27 Mar 2024 12:52:15 +0100 Subject: [PATCH] Add SVG map example code --- examples/svg_map_example.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 examples/svg_map_example.py diff --git a/examples/svg_map_example.py b/examples/svg_map_example.py new file mode 100644 index 0000000..0ace574 --- /dev/null +++ b/examples/svg_map_example.py @@ -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.")