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
4b702be9
Commit
4b702be9
authored
Mar 07, 2016
by
Matthew Hausknecht
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Constexpr updates for c++11.
parent
603077ea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
src/chain_action/tackle_generator.cpp
src/chain_action/tackle_generator.cpp
+1
-1
src/feature_extractor.h
src/feature_extractor.h
+9
-9
No files found.
src/chain_action/tackle_generator.cpp
View file @
4b702be9
...
...
@@ -68,7 +68,7 @@ const int ANGLE_DIVS = 40;
*/
struct
DeflectingEvaluator
{
static
const
double
not_shoot_ball_eval
=
10000
;
constexpr
static
const
double
not_shoot_ball_eval
=
10000
;
double
operator
()(
const
WorldModel
&
wm
,
TackleGenerator
::
TackleResult
&
result
)
const
...
...
src/feature_extractor.h
View file @
4b702be9
...
...
@@ -110,21 +110,21 @@ protected:
void
checkFeatures
();
protected:
const
static
float
RAD_T_DEG
=
180.0
/
M_PI
;
const
static
float
ALLOWED_PITCH_FRAC
=
0.33
;
const
expr
static
float
RAD_T_DEG
=
180.0
/
M_PI
;
const
expr
static
float
ALLOWED_PITCH_FRAC
=
0.33
;
int
featIndx
;
std
::
vector
<
float
>
feature_vec
;
// Contains the current features
const
static
float
FEAT_MIN
=
-
1
;
const
static
float
FEAT_MAX
=
1
;
const
static
float
FEAT_INVALID
=
-
2
;
const
expr
static
float
FEAT_MIN
=
-
1
;
const
expr
static
float
FEAT_MAX
=
1
;
const
expr
static
float
FEAT_INVALID
=
-
2
;
int
numFeatures
;
// Total number of features
// Observed values of some parameters.
const
static
float
observedSelfSpeedMax
=
0.46
;
const
static
float
observedPlayerSpeedMax
=
0.75
;
const
static
float
observedStaminaMax
=
8000.
;
const
static
float
observedBallSpeedMax
=
5.0
;
const
expr
static
float
observedSelfSpeedMax
=
0.46
;
const
expr
static
float
observedPlayerSpeedMax
=
0.75
;
const
expr
static
float
observedStaminaMax
=
8000.
;
const
expr
static
float
observedBallSpeedMax
=
5.0
;
float
maxHFORadius
;
// Maximum possible distance in HFO playable region
// Useful measures defined by the Server Parameters
float
pitchLength
,
pitchWidth
,
pitchHalfLength
,
pitchHalfWidth
,
...
...
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