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
589dc7b8
Commit
589dc7b8
authored
Dec 08, 2017
by
DurgeshSamant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added stamina to high level features
parent
167bca8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/highlevel_feature_extractor.cpp
src/highlevel_feature_extractor.cpp
+2
-1
No files found.
src/highlevel_feature_extractor.cpp
View file @
589dc7b8
...
@@ -16,7 +16,7 @@ HighLevelFeatureExtractor::HighLevelFeatureExtractor(int num_teammates,
...
@@ -16,7 +16,7 @@ HighLevelFeatureExtractor::HighLevelFeatureExtractor(int num_teammates,
assert
(
numOpponents
>=
0
);
assert
(
numOpponents
>=
0
);
numFeatures
=
num_basic_features
+
features_per_teammate
*
numTeammates
numFeatures
=
num_basic_features
+
features_per_teammate
*
numTeammates
+
features_per_opponent
*
numOpponents
;
+
features_per_opponent
*
numOpponents
;
numFeatures
+
+
;
// action status
numFeatures
+
=
2
;
// action status, stamina
feature_vec
.
resize
(
numFeatures
);
feature_vec
.
resize
(
numFeatures
);
}
}
...
@@ -185,6 +185,7 @@ HighLevelFeatureExtractor::ExtractFeatures(const rcsc::WorldModel& wm,
...
@@ -185,6 +185,7 @@ HighLevelFeatureExtractor::ExtractFeatures(const rcsc::WorldModel& wm,
}
else
{
}
else
{
addFeature
(
FEAT_MIN
);
addFeature
(
FEAT_MIN
);
}
}
addNormFeature
(
self
.
stamina
(),
0.
,
observedStaminaMax
);
assert
(
featIndx
==
numFeatures
);
assert
(
featIndx
==
numFeatures
);
// checkFeatures();
// checkFeatures();
...
...
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