-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce policy classes and policy manager (#475)
* init policy manager * init test script * fix a bug * add some todo * no bug * runnable * finish the step * bug free * format * add some scripts * runnable * WIP (I can't set the target speed right now!) * bug free * WIP Runnable but some bugs exist * WIP * WIP * format * fix many tests * format
- Loading branch information
PENG Zhenghao
committed
Jul 29, 2021
1 parent
a21c684
commit 577f8c8
Showing
28 changed files
with
1,157 additions
and
549 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
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
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from pgdrive.utils.object import Object | ||
|
||
|
||
class BasePolicy(Object): | ||
def __init__(self, name=None, random_seed=None): | ||
super(BasePolicy, self).__init__(name=name, random_seed=random_seed) | ||
|
||
def destroy(self): | ||
pass | ||
|
||
def reset(self): | ||
pass | ||
|
||
def before_step(self, *args, **kwargs): | ||
pass | ||
|
||
def after_step(self, *args, **kwargs): | ||
pass | ||
|
||
def step(self, *args, **kwargs): | ||
pass |
Oops, something went wrong.