Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AdvRL19
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
flgw
AdvRL19
Commits
6622ef18
Commit
6622ef18
authored
Mar 27, 2019
by
Florian Gawrilowicz
Browse files
Options
Downloads
Patches
Plain Diff
thin wrapper around pre-trained roboschool agents
parent
5f49f0d2
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
hw1/roboschool_agents.py
+16
-0
16 additions, 0 deletions
hw1/roboschool_agents.py
with
16 additions
and
0 deletions
hw1/roboschool_agents.py
0 → 100644
+
16
−
0
View file @
6622ef18
import
RoboschoolAnt_v1_2017jul
import
RoboschoolAtlasForwardWalk_v1_2017jul
import
RoboschoolHumanoid_v1_2017jul
def
load_policy
(
env_name
,
env
):
pi
=
None
if
'
Ant
'
in
env_name
:
pi
=
RoboschoolAnt_v1_2017jul
.
ZooPolicyTensorflow
(
"
mymodel1
"
,
env
.
observation_space
,
env
.
action_space
)
if
'
Atlas
'
in
env_name
:
pi
=
RoboschoolAtlasForwardWalk_v1_2017jul
.
ZooPolicyTensorflow
(
"
mymodel1
"
,
env
.
observation_space
,
env
.
action_space
)
if
'
Human
'
in
env_name
:
pi
=
RoboschoolHumanoid_v1_2017jul
.
ZooPolicyTensorflow
(
"
mymodel1
"
,
env
.
observation_space
,
env
.
action_space
)
return
pi
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment