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
71946c3f
Commit
71946c3f
authored
Oct 20, 2015
by
Matthew Hausknecht
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added support for offense-on-ball flag.
parent
72d4278c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
bin/HFO
bin/HFO
+6
-4
bin/Trainer.py
bin/Trainer.py
+0
-1
No files found.
bin/HFO
View file @
71946c3f
...
...
@@ -50,12 +50,14 @@ def main(args, team1='left', team2='right', rng=numpy.random.RandomState()):
'server::synch_mode=
%
i server::hfo=1 '
\
'server::fullstate_l=
%
i server::fullstate_r=
%
i '
\
'server::coach_w_referee=1 server::hfo_max_trial_time=
%
i '
\
'server::hfo_max_trials=
%
i server::hfo_max_frames=
%
i'
\
'server::hfo_max_trials=
%
i server::hfo_max_frames=
%
i '
\
'server::hfo_offense_on_ball=
%
i'
\
%
(
server_port
,
coach_port
,
olcoach_port
,
args
.
logging
,
args
.
logging
,
args
.
logging
,
args
.
logDir
,
args
.
logDir
,
args
.
logDir
,
args
.
sync
,
args
.
fullstate
,
args
.
fullstate
,
args
.
maxFramesPerTrial
,
args
.
numTrials
,
args
.
numFrames
)
args
.
maxFramesPerTrial
,
args
.
numTrials
,
args
.
numFrames
,
args
.
offenseOnBall
)
# server::record_messages=on -- useful for debug
try
:
# Launch the Server
...
...
@@ -121,8 +123,8 @@ def parseArgs():
help
=
'Directory to store logs.'
)
p
.
add_argument
(
'--record'
,
dest
=
'record'
,
action
=
'store_true'
,
help
=
'Record logs of states and actions.'
)
p
.
add_argument
(
'--
agent-on-ball'
,
dest
=
'agent_on_b
all'
,
action
=
'store_true'
,
help
=
'
Agent
starts with the ball.'
)
p
.
add_argument
(
'--
offense-on-ball'
,
dest
=
'offenseOnB
all'
,
action
=
'store_true'
,
help
=
'
Offense
starts with the ball.'
)
p
.
add_argument
(
'--fullstate'
,
dest
=
'fullstate'
,
action
=
'store_true'
,
help
=
'Server provides full-state information to agents.'
)
p
.
add_argument
(
'--seed'
,
dest
=
'seed'
,
type
=
int
,
...
...
bin/Trainer.py
View file @
71946c3f
...
...
@@ -40,7 +40,6 @@ class Trainer(object):
self
.
_agentTeams
=
[]
# Names of the teams the agents are playing for
self
.
_agentNumInt
=
[]
# List of agents internal team numbers
self
.
_agentServerPort
=
args
.
port
# Base Port for agent's server
self
.
_agentOnBall
=
args
.
agent_on_ball
# If true, agent starts with the ball
# =============== MISC =============== #
self
.
_offenseTeamName
=
''
# Name of the offensive team
self
.
_defenseTeamName
=
''
# Name of the defensive team
...
...
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