Эх сурвалжийг харах

change driver_map_xodrlaod.

yuchuli 2 жил өмнө
parent
commit
137c88df75

+ 6 - 6
src/driver/driver_map_xodrload/globalplan.cpp

@@ -1404,13 +1404,13 @@ std::vector<PlanPoint> GetPoint(pathsection xpath,const double fspace = 0.1)
         {
             PlanPoint pp = xvectorPP.at(j);
 
-            double foffset = pRoad->GetLaneOffsetValue(pp.mS);
+//            double foffset = pRoad->GetLaneOffsetValue(pp.mS);
 
-            if(fabs(foffset)>0.001)
-            {
-                pp.x = pp.x + foffset * cos(pp.hdg + M_PI/2.0);
-                pp.y = pp.y + foffset * sin(pp.hdg + M_PI/2.0);
-            }
+//            if(fabs(foffset)>0.001)
+//            {
+//                pp.x = pp.x + foffset * cos(pp.hdg + M_PI/2.0);
+//                pp.y = pp.y + foffset * sin(pp.hdg + M_PI/2.0);
+//            }
 
             pp.mfCurvature = pRoad->GetRoadCurvature(pp.mS);