pyrobosim.gui.world_canvas.WorldCanvas.__init__
- WorldCanvas.__init__(main_window: PyRoboSimMainWindow, world: World, show: bool = True, options: WorldCanvasOptions = WorldCanvasOptions(dpi=100, animation_dt=0.1, show_collision_polygons=False, show_room_names=True, show_object_names=True, show_location_names=True, show_robot_names=True)) None
Creates an instance of a PyRoboSim figure canvas.
- Parameters:
main_window – The main window object, needed for bookkeeping.
world – World object to attach.
show – If true (default), shows the GUI. Otherwise runs headless for testing.
options – An options dataclass instance.