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
f2d8e10f
Commit
f2d8e10f
authored
Dec 10, 2017
by
Matthew Hausknecht
Committed by
GitHub
Dec 10, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #61 from DurgeshSamant/stamina
Stamina
parents
167bca8b
b2b47f11
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
.travis.yml
.travis.yml
+2
-2
doc/manual.tex
doc/manual.tex
+3
-2
src/highlevel_feature_extractor.cpp
src/highlevel_feature_extractor.cpp
+2
-1
No files found.
.travis.yml
View file @
f2d8e10f
...
@@ -15,7 +15,7 @@ install:
...
@@ -15,7 +15,7 @@ install:
brew install cartr/qt4/qt
brew install cartr/qt4/qt
;
;
fi
fi
-
sudo -H pip install --upgrade nose numpy
-
sudo -H pip
2
install --upgrade nose numpy
os
:
os
:
-
linux
-
linux
-
osx
-
osx
...
@@ -27,4 +27,4 @@ env:
...
@@ -27,4 +27,4 @@ env:
script
:
script
:
-
mkdir build && cd build
-
mkdir build && cd build
-
cmake -DCMAKE_BUILD_TYPE=RelwithDebInfo .. && make -j4 && make install
-
cmake -DCMAKE_BUILD_TYPE=RelwithDebInfo .. && make -j4 && make install
-
cd .. && pip install --user . && nosetests --exe -vd tests/test_basic.py
-
cd .. && pip
2
install --user . && nosetests --exe -vd tests/test_basic.py
doc/manual.tex
View file @
f2d8e10f
...
@@ -286,7 +286,7 @@ follows:
...
@@ -286,7 +286,7 @@ follows:
\subsubsection
{
High Level State Feature List
}
\subsubsection
{
High Level State Feature List
}
Let
$
T
$
denote the number of teammates in the HFO game and
$
O
$
the
Let
$
T
$
denote the number of teammates in the HFO game and
$
O
$
the
number of opponents. There are a total of
$
10
+
6
T
+
3
O
$
high-level
number of opponents. There are a total of
$
10
+
6
T
+
3
O
+
2
$
high-level
features.
features.
\begin{enumerate}
[noitemsep]
\begin{enumerate}
[noitemsep]
...
@@ -328,6 +328,7 @@ features.
...
@@ -328,6 +328,7 @@ features.
the last action taken was successful, either in accomplishing the
the last action taken was successful, either in accomplishing the
usual intent of the action or (primarily for the offense) in some other way such as
usual intent of the action or (primarily for the offense) in some other way such as
getting out of a goal-collision state. 1 for yes, -1 for no.
}
getting out of a goal-collision state. 1 for yes, -1 for no.
}
\item
[
$
+
1
$
]
{
\textbf
{
Stamina
}
Agent's Stamina: Low stamina slows movement.
}
\end{enumerate}
\end{enumerate}
\begin{figure}
[htp]
\begin{figure}
[htp]
...
@@ -468,7 +469,7 @@ the above categories. These features are referred to as \textit{other
...
@@ -468,7 +469,7 @@ the above categories. These features are referred to as \textit{other
\subsubsection
{
Low Level State Feature List
}
\subsubsection
{
Low Level State Feature List
}
Let
$
T
$
denote the number of teammates and
$
O
$
denote the number of
Let
$
T
$
denote the number of teammates and
$
O
$
denote the number of
opponents in the HFO game. Then there are a total of
$
58
+
9
T
+
9
O
$
opponents in the HFO game. Then there are a total of
$
58
+
9
T
+
9
O
+
1
$
low-level features:
low-level features:
\begin{enumerate}
[noitemsep]
\begin{enumerate}
[noitemsep]
...
...
src/highlevel_feature_extractor.cpp
View file @
f2d8e10f
...
@@ -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