Skip to content

Commit

Permalink
Fixes road builder when using multilane. (#859)
Browse files Browse the repository at this point in the history
Signed-off-by: Franco Cipollone <[email protected]>
  • Loading branch information
francocipollone authored Jan 9, 2023
1 parent 4f732e1 commit 91d2ee8
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/roads/road_builder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -77,25 +77,20 @@ std::unique_ptr<maliput::api::RoadNetwork> CreateDragway(const std::string& name

std::unique_ptr<maliput::api::RoadNetwork> CreateMultilaneFromFile(const std::string& file_path) {
const std::map<std::string, std::string> parameters{
{"road_network_source", "yaml"},
{"yaml_file", file_path},
};
return maliput::plugin::CreateRoadNetwork("maliput_multilane", parameters);
}

std::unique_ptr<maliput::api::RoadNetwork> CreateMultilaneFromDescription(const std::string& yaml_description) {
const std::map<std::string, std::string> parameters{
{"road_network_source", "yaml"},
{"yaml_description", yaml_description},
};
return maliput::plugin::CreateRoadNetwork("maliput_multilane", parameters);
}

std::unique_ptr<maliput::api::RoadNetwork> CreateOnRamp() {
const std::map<std::string, std::string> parameters{
{"road_network_source", "on_ramp_merge"},
};
return maliput::plugin::CreateRoadNetwork("maliput_multilane", parameters);
return maliput::plugin::CreateRoadNetwork("maliput_multilane_on_ramp", {});
}

std::unique_ptr<maliput::api::RoadNetwork> CreateMalidriveFromXodr(const std::string& name,
Expand Down

0 comments on commit 91d2ee8

Please sign in to comment.