Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
Seminar-HFO
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shashank Suhas
Seminar-HFO
Commits
372d87a9
Commit
372d87a9
authored
Jun 01, 2015
by
Matthew Hausknecht
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added an option for getting full-state information.
parent
e074f351
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
bin/start.py
bin/start.py
+4
-0
No files found.
bin/start.py
View file @
372d87a9
...
@@ -56,6 +56,8 @@ def main(args, team1='left', team2='right', rng=numpy.random.RandomState()):
...
@@ -56,6 +56,8 @@ def main(args, team1='left', team2='right', rng=numpy.random.RandomState()):
args
.
logDir
,
args
.
logDir
)
args
.
logDir
,
args
.
logDir
)
if
args
.
sync
:
if
args
.
sync
:
serverOptions
+=
' server::synch_mode=on'
serverOptions
+=
' server::synch_mode=on'
if
args
.
fullstate
:
serverOptions
+=
' server::fullstate_l=on server::fullstate_r=on'
team1
,
team1Cmd
=
getAgentDirCmd
(
binary_dir
,
team1
,
server_port
,
coach_port
,
team1
,
team1Cmd
=
getAgentDirCmd
(
binary_dir
,
team1
,
server_port
,
coach_port
,
args
.
logDir
,
args
.
record
)
args
.
logDir
,
args
.
record
)
team2
,
team2Cmd
=
getAgentDirCmd
(
binary_dir
,
team2
,
server_port
,
coach_port
,
team2
,
team2Cmd
=
getAgentDirCmd
(
binary_dir
,
team2
,
server_port
,
coach_port
,
...
@@ -123,6 +125,8 @@ def parseArgs(args=None):
...
@@ -123,6 +125,8 @@ def parseArgs(args=None):
help
=
'Record logs of states and actions.'
)
help
=
'Record logs of states and actions.'
)
p
.
add_argument
(
'--agent-on-ball'
,
dest
=
'agent_on_ball'
,
action
=
'store_true'
,
p
.
add_argument
(
'--agent-on-ball'
,
dest
=
'agent_on_ball'
,
action
=
'store_true'
,
help
=
'Agent starts with the ball.'
)
help
=
'Agent starts with the ball.'
)
p
.
add_argument
(
'--fullstate'
,
dest
=
'fullstate'
,
action
=
'store_true'
,
help
=
'Server provides full-state information to agents.'
)
return
p
.
parse_args
(
args
=
args
)
return
p
.
parse_args
(
args
=
args
)
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment