-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move async interaction from
Coordinator
to BaseSimulator
.
This change adds asynchronous interaction to all simulators (i.e. derived classes of `BaseSimulator`), making this type of interaction less specific about our specific usage in the `Coordinator`. This is an ongoing effort to separate the RL parts in AndroidEnv (mostly `AndroidEnv` and `TaskManager`) from the more generic parts like `BaseSimulator`. The interface of *derived* classes changed a little: instead of implementing `get_screenshot()` they now have to implement `_get_screenshot_impl()`. This change also contains a small fix to `BaseSimulator.__init__()` which instead of taking individual params, it now takes a single `SimulatorConfig`, making its initialization the same as other major components. This requires a small change to the `super().__init__()` call in derived classes, but it prepares them for future changes to `SimulatorConfig`. PiperOrigin-RevId: 684273378
- Loading branch information
1 parent
7ff414d
commit efc8e48
Showing
7 changed files
with
168 additions
and
222 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.