浏览代码

change driver_map_xodrlaod.

yuchuli 2 年之前
父节点
当前提交
137c88df75
共有 1 个文件被更改,包括 6 次插入6 次删除
  1. 6 6
      src/driver/driver_map_xodrload/globalplan.cpp

+ 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);
             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);
             pp.mfCurvature = pRoad->GetRoadCurvature(pp.mS);