new observation properties for testing of technical limitations

This commit is contained in:
Steffen Illium
2021-11-05 15:59:19 +01:00
parent b5c6105b7b
commit d69cf75c15
9 changed files with 424 additions and 263 deletions

View File

@ -1,7 +1,24 @@
from typing import NamedTuple
from enum import Enum
from typing import NamedTuple, Union
class AgentRenderOptions(object):
SEPERATE = 'each'
COMBINED = 'combined'
LEVEL = 'lvl'
NOT = 'not'
class MovementProperties(NamedTuple):
allow_square_movement: bool = True
allow_diagonal_movement: bool = False
allow_no_op: bool = False
class ObservationProperties(NamedTuple):
render_agents: AgentRenderOptions = AgentRenderOptions.SEPERATE
omit_agent_self: bool = True
additional_agent_placeholder: Union[None, str, int] = None
cast_shadows = True
frames_to_stack: int = 0
pomdp_r: int = 0