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
9df16499
Commit
9df16499
authored
Jul 18, 2017
by
drallensmith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add ability to have .hfo log but not (larger) rcg/rcl logs
parent
07016ae3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
bin/HFO
bin/HFO
+8
-2
example/base_long_2v2.sh
example/base_long_2v2.sh
+3
-1
No files found.
bin/HFO
View file @
9df16499
...
@@ -53,7 +53,11 @@ def launch(cmd, name = 'Unknown', necessary = True, suppressOutput = True):
...
@@ -53,7 +53,11 @@ def launch(cmd, name = 'Unknown', necessary = True, suppressOutput = True):
def
main
(
args
):
def
main
(
args
):
"""Sets up the teams, launches the server and monitor, starts the trainer.
"""Sets up the teams, launches the server and monitor, starts the trainer.
"""
"""
if
args
.
logging
and
not
os
.
path
.
exists
(
args
.
logDir
):
if
args
.
logging
:
args
.
hfo_logging
=
True
if
not
os
.
path
.
exists
(
args
.
logDir
):
os
.
makedirs
(
args
.
logDir
)
elif
args
.
hfo_logging
and
not
os
.
path
.
exists
(
args
.
logDir
):
os
.
makedirs
(
args
.
logDir
)
os
.
makedirs
(
args
.
logDir
)
num_agents
=
args
.
offenseAgents
+
args
.
defenseAgents
num_agents
=
args
.
offenseAgents
+
args
.
defenseAgents
binary_dir
=
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
))
binary_dir
=
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
))
...
@@ -77,7 +81,7 @@ def main(args):
...
@@ -77,7 +81,7 @@ def main(args):
'server::say_msg_size=
%
i '
\
'server::say_msg_size=
%
i '
\
'server::record_messages=
%
i'
\
'server::record_messages=
%
i'
\
%
(
server_port
,
coach_port
,
olcoach_port
,
%
(
server_port
,
coach_port
,
olcoach_port
,
args
.
logging
,
args
.
logging
,
args
.
logging
,
args
.
logging
,
args
.
logging
,
args
.
hfo_
logging
,
args
.
logDir
,
args
.
logDir
,
args
.
logDir
,
args
.
logDir
,
args
.
logDir
,
args
.
logDir
,
args
.
sync
,
args
.
fullstate
,
args
.
fullstate
,
args
.
sync
,
args
.
fullstate
,
args
.
fullstate
,
args
.
maxFramesPerTrial
,
args
.
numTrials
,
args
.
numFrames
,
args
.
maxFramesPerTrial
,
args
.
numTrials
,
args
.
numFrames
,
...
@@ -166,6 +170,8 @@ def parseArgs():
...
@@ -166,6 +170,8 @@ def parseArgs():
'incrementally allocated the following ports.'
)
'incrementally allocated the following ports.'
)
p
.
add_argument
(
'--no-logging'
,
dest
=
'logging'
,
action
=
'store_false'
,
p
.
add_argument
(
'--no-logging'
,
dest
=
'logging'
,
action
=
'store_false'
,
default
=
True
,
help
=
'Disable rcssserver logging.'
)
default
=
True
,
help
=
'Disable rcssserver logging.'
)
p
.
add_argument
(
'--hfo-logging'
,
dest
=
'hfo_logging'
,
action
=
'store_true'
,
default
=
False
,
help
=
"Do .hfo logging even if no other logging"
)
p
.
add_argument
(
'--log-dir'
,
dest
=
'logDir'
,
default
=
'log/'
,
p
.
add_argument
(
'--log-dir'
,
dest
=
'logDir'
,
default
=
'log/'
,
help
=
'Directory to store logs. Default: log/'
)
help
=
'Directory to store logs. Default: log/'
)
p
.
add_argument
(
'--record'
,
dest
=
'record'
,
action
=
'store_true'
,
p
.
add_argument
(
'--record'
,
dest
=
'record'
,
action
=
'store_true'
,
...
...
example/base_long_2v2.sh
View file @
9df16499
#!/bin/bash
#!/bin/bash
./bin/HFO
--offense-npcs
=
2
--defense-npcs
=
2
--trials
5000
--headless
--seed
=
1500348586
--no-logging
&
# Be sure to change/remove the seed for different experiments!
./bin/HFO
--offense-npcs
=
2
--defense-npcs
=
2
--trials
5000
--headless
--seed
=
1500348586
--no-logging
--hfo-logging
&
# The magic line
# The magic line
# $$ holds the PID for this script
# $$ holds the PID for this script
...
...
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