mirror of
https://github.com/illiumst/marl-factory-grid.git
synced 2025-05-23 07:16:44 +02:00
Fixed Parameter
This commit is contained in:
parent
a16d7e709e
commit
51fb73ebb8
@ -171,7 +171,7 @@ class BaseFactory(gym.Env):
|
|||||||
parsed_doors = np.pad(parsed_doors, self.obs_prop.pomdp_r, 'constant', constant_values=0)
|
parsed_doors = np.pad(parsed_doors, self.obs_prop.pomdp_r, 'constant', constant_values=0)
|
||||||
if np.any(parsed_doors):
|
if np.any(parsed_doors):
|
||||||
door_tiles = [floor.by_pos(tuple(pos)) for pos in np.argwhere(parsed_doors == c.OCCUPIED_CELL)]
|
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)
|
entity_kwargs=dict(context=floor)
|
||||||
)
|
)
|
||||||
self._entities.register_additional_items({c.DOORS: doors})
|
self._entities.register_additional_items({c.DOORS: doors})
|
||||||
|
@ -17,13 +17,14 @@ class MovementProperties(NamedTuple):
|
|||||||
|
|
||||||
|
|
||||||
class ObservationProperties(NamedTuple):
|
class ObservationProperties(NamedTuple):
|
||||||
|
# Todo: Add Description
|
||||||
render_agents: AgentRenderOptions = AgentRenderOptions.SEPERATE
|
render_agents: AgentRenderOptions = AgentRenderOptions.SEPERATE
|
||||||
omit_agent_self: bool = True
|
omit_agent_self: bool = True
|
||||||
additional_agent_placeholder: Union[None, str, int] = None
|
additional_agent_placeholder: Union[None, str, int] = None
|
||||||
cast_shadows: bool = True
|
cast_shadows: bool = True
|
||||||
frames_to_stack: int = 0
|
frames_to_stack: int = 0
|
||||||
pomdp_r: int = 0
|
pomdp_r: int = 0
|
||||||
indicate_door_area: bool = True
|
indicate_door_area: bool = False
|
||||||
show_global_position_info: bool = False
|
show_global_position_info: bool = False
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user