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
7cd4fc56
Commit
7cd4fc56
authored
Mar 09, 2015
by
Matthew Hausknecht
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated readme and comments.
parent
7a4eddf1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
9 deletions
+3
-9
README.md
README.md
+1
-7
example/hfo_example_agent.cpp
example/hfo_example_agent.cpp
+1
-1
example/hfo_example_agent.py
example/hfo_example_agent.py
+1
-1
No files found.
README.md
View file @
7cd4fc56
...
...
@@ -23,10 +23,4 @@ By default if your agent takes longer then two seconds to select an action it wi
`patch your_path/rcssserver-15.2.2/src/stadium.cpp < stadium.patch`
## Run
```
bash
./bin/start.py
```
and in a seperate terminal
```
bash
./examples/hfo_example_agent
```
To start the HFO server
`./bin/start.py`
then start the agent
`./example/hfo_example_agent`
or start them both at the same time:
`(./bin/start.py &) && ./example/hfo_example_agent`
.
example/hfo_example_agent.cpp
View file @
7cd4fc56
...
...
@@ -19,7 +19,7 @@ int main() {
const
std
::
vector
<
float
>&
feature_vec
=
hfo
.
getState
();
// Create a dash action
Action
a
=
{
DASH
,
100.
,
0.
};
// Perform the dash and recieve the
reward
// Perform the dash and recieve the
current game status
status
=
hfo
.
act
(
a
);
}
// Check what the outcome of the episode was
...
...
example/hfo_example_agent.py
View file @
7cd4fc56
...
...
@@ -25,7 +25,7 @@ if __name__ == '__main__':
while
status
==
HFO_Status
.
IN_GAME
:
# Grab the state features from the environment
features
=
hfo
.
getState
()
# Take an action and get the
reward
# Take an action and get the
current game status
status
=
hfo
.
act
((
HFO_Actions
.
KICK
,
100
,
12.3
))
print
'Episode'
,
episode
,
'ended with'
,
# Check what the outcome of the episode was
...
...
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