-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from beyretb/dev-v0.4
merge Dev v0.4 to master
- Loading branch information
Showing
22 changed files
with
191 additions
and
702 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,4 @@ env/* | |
__pycache__/ | ||
UnitySDK.log | ||
/venv | ||
testDevs.py | ||
testDevs.yaml | ||
.DS_Store | ||
/dev |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
from animalai.envs.brain import BrainInfo | ||
|
||
class Agent(object): | ||
|
||
def __init__(self, configuration_to_load: str): | ||
|
||
""" | ||
Load your agent here and initialize anything needed | ||
:param configuration_to_load: path to your model to lead | ||
""" | ||
pass | ||
|
||
def step(self, brain_info: BrainInfo) -> list[float]: | ||
|
||
""" | ||
A single step the agent should take based on the current | ||
:param brain_info: a single BrainInfo containing the observations and reward for a single step for one agent | ||
:return: a list of actions to execute (of size 2) | ||
""" | ||
|
||
self.action = [] | ||
|
||
return self.action | ||
|
||
def destroy(self): | ||
|
||
pass |
37 changes: 19 additions & 18 deletions
37
animalai/communicator_objects/arena_parameters_proto_pb2.py
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.