Skip to content

Commit

Permalink
return floor plan if requested (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
lordcod99 authored Dec 18, 2024
1 parent 1f7c506 commit 48e14c0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/modal_functions/unav.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def planner(
floor: str = "",
place: str = "",
base_64_image: str = None,
get_floor_plan: bool = False,
):

import json
Expand Down Expand Up @@ -103,6 +104,10 @@ def planner(

scale = self.server.config["location"]["scale"]

if(get_floor_plan):
floorplan_base64 = pose["floorplan_base64"]
return json.dumps({"trajectory": trajectory, "scale": scale, "floorplan_base64" : floorplan_base64}) #return floor plan if requested

return json.dumps({"trajectory": trajectory, "scale": scale})

@method()
Expand Down

0 comments on commit 48e14c0

Please sign in to comment.