Fixed Parameter

This commit is contained in:
Steffen Illium 2022-01-18 13:10:04 +01:00
parent a16d7e709e
commit 51fb73ebb8
2 changed files with 3 additions and 2 deletions

View File

@ -171,7 +171,7 @@ class BaseFactory(gym.Env):
parsed_doors = np.pad(parsed_doors, self.obs_prop.pomdp_r, 'constant', constant_values=0)
if np.any(parsed_doors):
door_tiles = [floor.by_pos(tuple(pos)) for pos in np.argwhere(parsed_doors == c.OCCUPIED_CELL)]
doors = Doors.from_tiles(door_tiles, self._level_shape, have_area=self.doors_have_area,
doors = Doors.from_tiles(door_tiles, self._level_shape, have_area=self.obs_prop.indicate_door_area,
entity_kwargs=dict(context=floor)
)
self._entities.register_additional_items({c.DOORS: doors})

View File

@ -17,13 +17,14 @@ class MovementProperties(NamedTuple):
class ObservationProperties(NamedTuple):
# Todo: Add Description
render_agents: AgentRenderOptions = AgentRenderOptions.SEPERATE
omit_agent_self: bool = True
additional_agent_placeholder: Union[None, str, int] = None
cast_shadows: bool = True
frames_to_stack: int = 0
pomdp_r: int = 0
indicate_door_area: bool = True
indicate_door_area: bool = False
show_global_position_info: bool = False