Skip to content
Snippets Groups Projects
Commit d22e5ea2 authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Removed the left lane from the connection roads.

parent da877069
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,7 @@ unsigned int create_junction_road(RoadTree *road_tree, OpenDrive *open_drive,uns ...@@ -33,7 +33,7 @@ unsigned int create_junction_road(RoadTree *road_tree, OpenDrive *open_drive,uns
junction=open_drive->GetJunction(junction_index); junction=open_drive->GetJunction(junction_index);
connection=junction->GetJunctionConnection(connection_index); connection=junction->GetJunctionConnection(connection_index);
lane_link=connection->GetJunctionLaneLink(lane_link_index); lane_link=connection->GetJunctionLaneLink(lane_link_index);
name << "juntion_" << connection->GetIncomingRoad() << "_" << lane_link->GetFrom() << "_" << connection->GetConnectingRoad() << "_" << lane_link->GetTo(); name << "junction_" << connection->GetIncomingRoad() << "_" << lane_link->GetFrom() << "_" << connection->GetConnectingRoad() << "_" << lane_link->GetTo();
roads=open_drive->GetRoadVector(); roads=open_drive->GetRoadVector();
for(unsigned int i=0;i<roads->size();i++) for(unsigned int i=0;i<roads->size();i++)
{ {
...@@ -420,7 +420,7 @@ unsigned int create_junction_road(RoadTree *road_tree, OpenDrive *open_drive,uns ...@@ -420,7 +420,7 @@ unsigned int create_junction_road(RoadTree *road_tree, OpenDrive *open_drive,uns
// add lane section // add lane section
// RIGHT // RIGHT
center_lane_index=new_lane_section.AddLane(0,0,"driving", false); center_lane_index=new_lane_section.AddLane(0,0,"driving", false);
left_lane_index=new_lane_section.AddLane(1,1,"driving", false); //left_lane_index=new_lane_section.AddLane(1,1,"driving", false);
right_lane_index=new_lane_section.AddLane(-1,-1,"driving", false); right_lane_index=new_lane_section.AddLane(-1,-1,"driving", false);
lane=new_lane_section.GetLastAddedLane(); lane=new_lane_section.GetLastAddedLane();
right_lane_width_index=lane->AddWidthRecord(0.0,lane_start_width,0.0,0.0,0.0); right_lane_width_index=lane->AddWidthRecord(0.0,lane_start_width,0.0,0.0,0.0);
...@@ -431,7 +431,7 @@ unsigned int create_junction_road(RoadTree *road_tree, OpenDrive *open_drive,uns ...@@ -431,7 +431,7 @@ unsigned int create_junction_road(RoadTree *road_tree, OpenDrive *open_drive,uns
(*lane_section)=new_lane_section; (*lane_section)=new_lane_section;
road_tree->AddLaneSection(road_index,0, false); road_tree->AddLaneSection(road_index,0, false);
road_tree->AddLaneCenter(road_index,0,center_lane_index, false); road_tree->AddLaneCenter(road_index,0,center_lane_index, false);
road_tree->AddLaneLeft(road_index,0,left_lane_index, false); // road_tree->AddLaneLeft(road_index,0,left_lane_index, false);
road_tree->AddLaneRight(road_index,0,right_lane_index, false); road_tree->AddLaneRight(road_index,0,right_lane_index, false);
road_tree->AddLaneWidth(road_index,0,right_lane_index,right_lane_width_index, false); road_tree->AddLaneWidth(road_index,0,right_lane_index,right_lane_width_index, false);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment