diff --git a/src/project_file.cpp b/src/project_file.cpp index 9828537..03be234 100644 --- a/src/project_file.cpp +++ b/src/project_file.cpp @@ -29,7 +29,7 @@ void obstacleCallback(const sensor_msgs::LaserScan& message){ if( (message.ranges[count] >=thresh_min && message.ranges[count]<= thresh_max) || (message.ranges[359-count] >=thresh_min && message.ranges[359-count]<= thresh_max)){ obstacle_present=true; - //break; + break; } else{ obstacle_present=false;