Action space thoughts
This commit is contained in:
@@ -35,7 +35,6 @@ class DesktopEnv(gym.Env):
|
||||
print("Initializing...")
|
||||
self._start_emulator()
|
||||
self.controller = PythonController(http_server=self.host)
|
||||
|
||||
# todo: define the action space and the observation space as gym did
|
||||
|
||||
def _start_emulator(self):
|
||||
@@ -87,6 +86,7 @@ class DesktopEnv(gym.Env):
|
||||
return observation
|
||||
|
||||
def step(self, action):
|
||||
# todo: support both the action space of our-designed space and the executable code space in pyautogui
|
||||
# Our action space is the set of all possible python commands insides `pyautogui`
|
||||
self.controller.execute_python_command(action)
|
||||
observation = self._get_obs()
|
||||
|
||||
Reference in New Issue
Block a user