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
0f0a2ce5
You need to sign in or sign up before continuing.
Commit
0f0a2ce5
authored
Jun 07, 2015
by
Matthew Hausknecht
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug in goal detection.
parent
46abc1fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
bin/Trainer.py
bin/Trainer.py
+1
-1
No files found.
bin/Trainer.py
View file @
0f0a2ce5
...
@@ -430,7 +430,7 @@ class Trainer(object):
...
@@ -430,7 +430,7 @@ class Trainer(object):
def
isGoal
(
self
):
def
isGoal
(
self
):
""" Returns true if a goal has been scored. """
""" Returns true if a goal has been scored. """
return
(
self
.
_ballPosition
[
0
]
>
self
.
_allowedBallX
[
1
])
\
return
(
self
.
_ballPosition
[
0
]
>
self
.
_allowedBallX
[
1
])
\
and
(
numpy
.
abs
(
self
.
_ballPosition
[
1
])
<
self
.
_SP
[
'goal_width'
])
and
(
numpy
.
abs
(
self
.
_ballPosition
[
1
])
<
=
0.5
*
self
.
_SP
[
'goal_width'
])
def
isOOB
(
self
):
def
isOOB
(
self
):
""" Returns true if the ball is out of bounds. """
""" Returns true if the ball is out of bounds. """
...
...
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