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
83672616
Commit
83672616
authored
Sep 11, 2018
by
Matthew Hausknecht
Committed by
GitHub
Sep 11, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #70 from CoolPhilChen/master
Thanks for the bugfix!
parents
269c6b69
3b2966b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/feature_extractor.cpp
src/feature_extractor.cpp
+3
-3
No files found.
src/feature_extractor.cpp
View file @
83672616
...
...
@@ -29,8 +29,8 @@ FeatureExtractor::FeatureExtractor(int num_teammates,
penaltyAreaWidth
=
SP
.
penaltyAreaWidth
();
// Maximum possible radius in HFO
maxHFO
Radius
=
sqrtf
(
pitchHalfLength
*
pitchHalfLength
+
pitch
HalfWidth
*
pitchHalf
Width
);
maxHFO
Dist
=
sqrtf
(
pitchHalfLength
*
pitchHalfLength
+
pitch
Width
*
pitch
Width
);
}
FeatureExtractor
::~
FeatureExtractor
()
{}
...
...
@@ -68,7 +68,7 @@ void FeatureExtractor::addLandmarkFeatures(const rcsc::Vector2D& landmark,
}
else
{
Vector2D
vec_to_landmark
=
landmark
-
self_pos
;
addAngFeature
(
vec_to_landmark
.
th
()
-
self_ang
);
addDistFeature
(
vec_to_landmark
.
r
(),
maxHFO
Radius
);
addDistFeature
(
vec_to_landmark
.
r
(),
maxHFO
Dist
);
}
}
...
...
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