Changed the default value of lane change record to match OpenDRIVE specification.

This commit is contained in:
Axel 2020-09-24 15:30:49 +02:00 committed by Marc Garcia Puig
parent 2fbae920b9
commit 6189aa59f6
1 changed files with 3 additions and 3 deletions

View File

@ -194,10 +194,10 @@ namespace road {
lc = RoadInfoMarkRecord::LaneChange::Increase; lc = RoadInfoMarkRecord::LaneChange::Increase;
} else if (lane_change == "decrease") { } else if (lane_change == "decrease") {
lc = RoadInfoMarkRecord::LaneChange::Decrease; lc = RoadInfoMarkRecord::LaneChange::Decrease;
} else if (lane_change == "both") { } else if (lane_change == "none") {
lc = RoadInfoMarkRecord::LaneChange::Both;
} else {
lc = RoadInfoMarkRecord::LaneChange::None; lc = RoadInfoMarkRecord::LaneChange::None;
} else {
lc = RoadInfoMarkRecord::LaneChange::Both;
} }
_temp_lane_info_container[lane].emplace_back(std::make_unique<RoadInfoMarkRecord>(s, road_mark_id, type, _temp_lane_info_container[lane].emplace_back(std::make_unique<RoadInfoMarkRecord>(s, road_mark_id, type,
weight, color, weight, color,