Explorar el Código

modify avoid pro

zhangjia hace 3 años
padre
commit
5495f58b7e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/decition/decition_brain_sf/decition/decide_gps_00.cpp

+ 1 - 1
src/decition/decition_brain_sf/decition/decide_gps_00.cpp

@@ -4308,7 +4308,7 @@ int iv::decition::DecideGps00::computeBackDistance(iv::LidarGridPtr lidarGridPtr
 //                        return 0;
     if(front_car_id>0)
     {
-        if((front_car.avoidX==0)&&(front_car.vehState==0)&&(front_car.front_car_dis<150)&&(vehState==normalRun))
+        if((front_car.avoidX==0)&&(front_car.vehState==0)&&(front_car.front_car_dis<150)&&(vehState==normalRun)&&(obs_cur_distance>15))
         {
             if(PathPoint+300<gpsMapLine.size()){
                 for(int k=PathPoint;k<PathPoint+300;k++){