Browse Source

change tool/map_lanetoxodr.fix straight contact error.

yuchuli 3 years ago
parent
commit
76fb34f064
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/tool/map_lanetoxodr/autoroadcontact.cpp

+ 2 - 2
src/tool/map_lanetoxodr/autoroadcontact.cpp

@@ -88,7 +88,7 @@ int AutoRoadContact::CalcContact(Road *pRoad1, Road *pRoad2,int & contacttype,in
         from_hdg = road1_end_hdg ;
         from_hdg = road1_end_hdg ;
         to_hdg = road2_start_hdg;
         to_hdg = road2_start_hdg;
         pLS1 = pRoad1->GetLastLaneSection();
         pLS1 = pRoad1->GetLastLaneSection();
-        pLS2 = pRoad1->GetLaneSection(0);
+        pLS2 = pRoad2->GetLaneSection(0);
         break;
         break;
     case 3:
     case 3:
         from_x = road1_end_x;
         from_x = road1_end_x;
@@ -98,7 +98,7 @@ int AutoRoadContact::CalcContact(Road *pRoad1, Road *pRoad2,int & contacttype,in
         from_hdg = road1_end_hdg ;
         from_hdg = road1_end_hdg ;
         to_hdg = road2_end_hdg + M_PI;
         to_hdg = road2_end_hdg + M_PI;
         pLS1 = pRoad1->GetLastLaneSection();
         pLS1 = pRoad1->GetLastLaneSection();
-        pLS2 = pRoad1->GetLastLaneSection();
+        pLS2 = pRoad2->GetLastLaneSection();
         break;
         break;
     default:
     default:
         break;
         break;