diff --git a/src/opendrive_road_segment.cpp b/src/opendrive_road_segment.cpp index a1370fef4df5612c1ae73a4bcea2766abb5dfa0f..4a4bd780c39b4f0c05c854230727d07a1620efd9 100644 --- a/src/opendrive_road_segment.cpp +++ b/src/opendrive_road_segment.cpp @@ -207,7 +207,7 @@ void COpendriveRoadSegment::add_nodes(OpenDRIVE::road_type &road_info) new_node->set_parent_segment(this); } this->lanes[i]->add_node(new_node); - lane_offset-=this->lanes[i]->get_width(); + lane_offset-=this->lanes[i]->width; } } } @@ -238,7 +238,7 @@ void COpendriveRoadSegment::add_nodes(OpenDRIVE::road_type &road_info) new_node->set_parent_segment(this); } this->lanes[i]->add_node(new_node); - lane_offset+=this->lanes[i]->get_width(); + lane_offset+=this->lanes[i]->width; } } } @@ -301,12 +301,14 @@ void COpendriveRoadSegment::link_neightbour_lanes(lanes::laneSection_type &lane_ else this->lanes[i]->right_mark=OD_MARK_NONE; } +/* if(this->lanes.find(1)!=this->lanes.end() && this->lanes.find(-1)!=this->lanes.end()) { this->lanes[-1]->left_mark=center_mark; this->lanes[1]->right_mark=center_mark; this->lanes[-1]->link_neightbour_lane(this->lanes[1]); } +*/ } void COpendriveRoadSegment::link_segment(COpendriveRoadSegment &segment)