Skip to content

Commit

Permalink
Prediction: change onlane logic
Browse files Browse the repository at this point in the history
  • Loading branch information
HongyiSun authored and Jiangtao Hu committed Dec 13, 2018
1 parent 7a9af2a commit 7148c6b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/prediction/container/obstacles/obstacle.cc
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,7 @@ bool Obstacle::IsStill() {
bool Obstacle::IsOnLane() const {
if (feature_history_.size() > 0) {
if (feature_history_.front().has_lane() &&
(feature_history_.front().lane().current_lane_feature_size() > 0 ||
feature_history_.front().lane().nearby_lane_feature_size() > 0)) {
feature_history_.front().lane().current_lane_feature_size() > 0) {
ADEBUG << "Obstacle [" << id_ << "] is on lane.";
return true;
}
Expand Down

0 comments on commit 7148c6b

Please sign in to comment.