mirror of
				https://github.com/illiumst/marl-factory-grid.git
				synced 2025-10-31 04:37:25 +01:00 
			
		
		
		
	Fixed Parameter
This commit is contained in:
		| @@ -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}) | ||||
|   | ||||
| @@ -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 | ||||
|  | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Steffen Illium
					Steffen Illium