Commit 309efb65 authored by cshNtu's avatar cshNtu Committed by GitHub

Update highlevel_feature_extractor.cpp

parent b8bf22c5
...@@ -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.pitchHalfWidth() * SP.pitchHalfWidth()); + SP.pitchWidth() * SP.pitchWidth());
// 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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment