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
309efb65
Commit
309efb65
authored
Mar 28, 2019
by
cshNtu
Committed by
GitHub
Mar 28, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update highlevel_feature_extractor.cpp
parent
b8bf22c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/highlevel_feature_extractor.cpp
src/highlevel_feature_extractor.cpp
+1
-1
No files found.
src/highlevel_feature_extractor.cpp
View file @
309efb65
...
@@ -33,7 +33,7 @@ HighLevelFeatureExtractor::ExtractFeatures(const rcsc::WorldModel& wm,
...
@@ -33,7 +33,7 @@ HighLevelFeatureExtractor::ExtractFeatures(const rcsc::WorldModel& wm,
const
PlayerPtrCont
&
teammates
=
wm
.
teammatesFromSelf
();
const
PlayerPtrCont
&
teammates
=
wm
.
teammatesFromSelf
();
const
PlayerPtrCont
&
opponents
=
wm
.
opponentsFromSelf
();
const
PlayerPtrCont
&
opponents
=
wm
.
opponentsFromSelf
();
float
maxR
=
sqrtf
(
SP
.
pitchHalfLength
()
*
SP
.
pitchHalfLength
()
float
maxR
=
sqrtf
(
SP
.
pitchHalfLength
()
*
SP
.
pitchHalfLength
()
+
SP
.
pitch
HalfWidth
()
*
SP
.
pitchHalf
Width
());
+
SP
.
pitch
Width
()
*
SP
.
pitch
Width
());
// features about self pos
// features about self pos
// Allow the agent to go 10% over the playfield in any direction
// Allow the agent to go 10% over the playfield in any direction
float
tolerance_x
=
.1
*
SP
.
pitchHalfLength
();
float
tolerance_x
=
.1
*
SP
.
pitchHalfLength
();
...
...
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