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
5fd31bbc
Commit
5fd31bbc
authored
Nov 08, 2017
by
Matthew Hausknecht
Committed by
GitHub
Nov 08, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #54 from wbwatkinson/add-y-params
Add ball y parameters for HFORef::resetField()
parents
b7aa50ea
1797aa11
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
CMakeLists.txt
CMakeLists.txt
+1
-1
bin/HFO
bin/HFO
+10
-2
No files found.
CMakeLists.txt
View file @
5fd31bbc
bin/HFO
View file @
5fd31bbc
...
...
@@ -78,6 +78,8 @@ def main(args):
'server::hfo_max_untouched_time=
%
i '
\
'server::hfo_min_ball_pos_x=
%
f '
\
'server::hfo_max_ball_pos_x=
%
f '
\
'server::hfo_min_ball_pos_y=
%
f '
\
'server::hfo_max_ball_pos_y=
%
f '
\
'server::say_msg_size=
%
i '
\
'server::record_messages=
%
i'
\
%
(
server_port
,
coach_port
,
olcoach_port
,
...
...
@@ -86,7 +88,9 @@ def main(args):
args
.
sync
,
args
.
fullstate
,
args
.
fullstate
,
args
.
maxFramesPerTrial
,
args
.
numTrials
,
args
.
numFrames
,
args
.
offenseOnBall
,
args
.
seed
,
args
.
maxUntouchedTime
,
args
.
min_ball_x
,
args
.
max_ball_x
,
args
.
messageSize
,
args
.
min_ball_x
,
args
.
max_ball_x
,
args
.
min_ball_y
,
args
.
max_ball_y
,
args
.
messageSize
,
args
.
verbose
)
try
:
...
...
@@ -192,6 +196,10 @@ def parseArgs():
help
=
'Ball initialization min x position: [0,1]. Default: 0'
)
p
.
add_argument
(
'--ball-x-max'
,
dest
=
'max_ball_x'
,
type
=
float
,
default
=
0.2
,
help
=
'Ball initialization max x position: [0,1]. Default: .2'
)
p
.
add_argument
(
'--ball-y-min'
,
dest
=
'min_ball_y'
,
type
=
float
,
default
=-
0.8
,
help
=
'Ball initialization min y position: [-1,1]. Default: -0.8'
)
p
.
add_argument
(
'--ball-y-max'
,
dest
=
'max_ball_y'
,
type
=
float
,
default
=
0.8
,
help
=
'Ball initialization max y position: [-1,1]. Default: 0.8'
)
p
.
add_argument
(
'--verbose'
,
dest
=
'verbose'
,
action
=
'store_true'
,
default
=
False
,
help
=
'Print verbose output.'
)
args
=
p
.
parse_args
()
...
...
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