concepts.benchmark.namo.namo_polygon.namo_polygon_map_creator.NamoMapCreator#

class NamoMapCreator[source]#

Bases: object

Methods

encode_map()

Encode the map as a dictionary.

encode_map_image()

Encode the map as an image.

mainloop()

Attributes

__init__(mode='poly', edit=None, width=800, height=800)[source]#
__new__(**kwargs)#
encode_map()[source]#

Encode the map as a dictionary.

encode_map_image()[source]#

Encode the map as an image.

Return type:

ndarray

mainloop()[source]#
AVAILABLE_MODES = ('poly', 'rect')#
COLOR_FREE = (255, 255, 255)#
COLOR_OBSTACLE = (255, 128, 128)#
COLOR_REMOVING = (128, 128, 255)#
COLOR_WALL = (0, 0, 0)#
KEY_BINDINGS_DESCRIPTION = "\nKey bindings:\n\n- 'q': quit the current drawing process and enter the idle status.\n- 'a': start drawing an obstacle.\n- 'w': start drawing a wall.\n- 'd': start removing.\n- 'z': set the start position.\n- 'x': set the goal position.\n- 'f': finish the current drawing.\n- ESC: quit the program.\n"#