mirror of
https://github.com/SikongJueluo/Mini-Nav.git
synced 2026-07-12 20:15:31 +08:00
refactor(sync): improve topdown rendering and make justfile adapt to windows
This commit is contained in:
@@ -107,21 +107,18 @@ def habitat_setup(HabitatSimulatorConfig, RoomNode, create_habitat_simulator, np
|
||||
def render_topdown(
|
||||
TopDownSceneElements,
|
||||
meters_per_pixel,
|
||||
mo,
|
||||
render_topdown_scene_map,
|
||||
room_nodes,
|
||||
sim,
|
||||
):
|
||||
from habitat.utils.visualizations import maps
|
||||
from matplotlib import pyplot as plt
|
||||
|
||||
render_topdown_scene_map(
|
||||
image = render_topdown_scene_map(
|
||||
pathfinder=sim.pathfinder,
|
||||
elements=TopDownSceneElements(room_nodes=room_nodes),
|
||||
meters_per_pixel=meters_per_pixel,
|
||||
maps_module=maps,
|
||||
plt_module=plt,
|
||||
)
|
||||
return
|
||||
mo.image(image)
|
||||
return (image,)
|
||||
|
||||
|
||||
@app.cell
|
||||
|
||||
Reference in New Issue
Block a user