Commit 9e460ba0 authored by cshNtu's avatar cshNtu Committed by GitHub

Update lowlevel_feature_extractor.cpp

parent 309efb65
...@@ -105,16 +105,16 @@ LowLevelFeatureExtractor::ExtractFeatures(const rcsc::WorldModel& wm, ...@@ -105,16 +105,16 @@ LowLevelFeatureExtractor::ExtractFeatures(const rcsc::WorldModel& wm,
rcsc::Vector2D cornerBotLeft(0, pitchHalfWidth); rcsc::Vector2D cornerBotLeft(0, pitchHalfWidth);
addLandmarkFeatures(cornerBotLeft, self_pos, self_ang); addLandmarkFeatures(cornerBotLeft, self_pos, self_ang);
// Distances to the edges of the playable area // Distances to being out of bounds (OOB)
if (self.posValid()) { if (self.posValid()) {
// Distance to Left field line // Distance to being OOB over the Left field line
addDistFeature(self_pos.x, pitchHalfLength); addDistFeature(self_pos.x, (1.1*pitchHalfLength));
// Distance to Right field line // Distance to being OOB over the Right field line
addDistFeature(pitchHalfLength - self_pos.x, pitchHalfLength); addDistFeature(pitchHalfLength - self_pos.x, (1.1*pitchHalfLength));
// Distance to top field line // Distance to being OOB over the Top field line
addDistFeature(pitchHalfWidth + self_pos.y, pitchWidth); addDistFeature(pitchHalfWidth + self_pos.y, (1.05*pitchWidth));
// Distance to Bottom field line // Distance to being OOB over the Bottom field line
addDistFeature(pitchHalfWidth - self_pos.y, pitchWidth); addDistFeature(pitchHalfWidth - self_pos.y, (1.05*pitchWidth));
} else { } else {
addFeature(0); addFeature(0);
addFeature(0); addFeature(0);
......
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