Skip to content

Commit

Permalink
Add method to create MapDefinition object from path and rectangle inf…
Browse files Browse the repository at this point in the history
…ormation
  • Loading branch information
ll7 committed Mar 28, 2024
1 parent f08f22f commit 605fb27
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion robot_sf/nav/svg_map_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ def _get_svg_info(self):
self.rect_info = rect_info

def _info_to_mapdefintion(self) -> MapDefinition:

"""
Create a MapDefinition object from the path and rectangle information.
"""
width: float = float(self.svg_root.attrib.get('width'))
height: float = float(self.svg_root.attrib.get('height'))
obstacles: List[Obstacle] = []
Expand Down

0 comments on commit 605fb27

Please sign in to comment.