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
57f30d7f
Commit
57f30d7f
authored
9 years ago
by
Matthew Hausknecht
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed default server port in examples to 6000.
parent
adf0a8d2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
example/hfo_example_agent.cpp
example/hfo_example_agent.cpp
+1
-1
hfo/hfo.py
hfo/hfo.py
+1
-1
No files found.
example/hfo_example_agent.cpp
View file @
57f30d7f
...
...
@@ -11,7 +11,7 @@ int main() {
// Create the HFO environment
HFOEnvironment
hfo
;
// Connect the agent's server
hfo
.
connectToAgentServer
(
600
8
);
hfo
.
connectToAgentServer
(
600
0
);
// Play 5 episodes
for
(
int
episode
=
0
;
episode
<
5
;
episode
++
)
{
hfo_status_t
status
=
IN_GAME
;
...
...
This diff is collapsed.
Click to expand it.
hfo/hfo.py
View file @
57f30d7f
...
...
@@ -27,7 +27,7 @@ class HFOEnvironment(object):
self
.
numFeatures
=
None
# Given by the server in handshake
self
.
features
=
None
# The state features
def
connectToAgentServer
(
self
,
server_port
=
600
8
):
def
connectToAgentServer
(
self
,
server_port
=
600
0
):
'''Connect to the server that controls the agent on the specified port. '''
self
.
socket
=
socket
.
socket
(
socket
.
AF_INET
,
socket
.
SOCK_STREAM
)
print
'[Agent Client] Connecting to Agent Server on port'
,
server_port
...
...
This diff is collapsed.
Click to expand it.
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