change made to line32
This commit is contained in:
parent
9d73b7d914
commit
2629113a5d
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue