def __init__(self, **kwargs):
utils.EzPickle.__init__(self)
self.curr_seed = 0
self.screen = np.zeros((SCREEN_HEIGHT, SCREEN_WIDTH, 3), dtype=np.uint8)
self.closed = False
self.can_send_command = True
self.command_cond = Condition()
self.viewer = None
self.reward = 0
episode_time_length_secs = 7
frame_skip = 5
fps = 60
self.episode_length = episode_time_length_secs * fps / frame_skip
self.actions = [
'U', 'D', 'L', 'R',
'UR', 'DR', 'URA', 'DRB',
'A', 'B', 'RB', 'RA']
self.action_space = spaces.Discrete(len(self.actions))
self.frame = 0
# for communication with emulator
self.pipe_in = None
self.pipe_out = None
self.thread_incoming = None
self.rom_file_path = None
self.lua_interface_path = None
self.emulator_started = False
## ---------- gym.Env methods -------------
评论列表
文章目录