change made to line32

This commit is contained in:
Adrien LASSERRE 2022-11-27 17:17:31 +01:00
parent 9d73b7d914
commit 2629113a5d
1 changed files with 1 additions and 1 deletions

View File

@ -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)){ 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; obstacle_present=true;
//break; break;
} }
else{ else{
obstacle_present=false; obstacle_present=false;