Make up missing getters and metrics; Update VLC scripts; Start to work on Chrome, update examples instructions
This commit is contained in:
@@ -35,7 +35,10 @@ def _execute_command(command: List[str]) -> None:
|
||||
|
||||
|
||||
class DesktopEnv(gym.Env):
|
||||
"""DesktopEnv with OpenAI Gym interface."""
|
||||
"""
|
||||
DesktopEnv with OpenAI Gym interface.
|
||||
Fixme: refactor the logic when implementing the multi-process version
|
||||
"""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
@@ -81,6 +84,10 @@ class DesktopEnv(gym.Env):
|
||||
self.controller = PythonController(http_server=self.host)
|
||||
self.setup_controller = SetupController(http_server=self.host, cache_dir=self.cache_dir)
|
||||
|
||||
# Meta info of the VM
|
||||
self.vm_platform = self.controller.get_vm_platform()
|
||||
self.vm_screen_size = self.controller.get_vm_screen_size()
|
||||
|
||||
# mode: human or machine
|
||||
assert action_space in ["computer_13", "pyautogui"]
|
||||
self.action_space = action_space
|
||||
|
||||
Reference in New Issue
Block a user