Skip to content

Commit

Permalink
ref(traffic_simulator): apply solar changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dmoszynski committed Jan 7, 2025
1 parent 2645a65 commit c35aed6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ struct Configuration

explicit Configuration(
const Pathname & map_path, const Pathname & scenario_path,
const std::set<std::uint8_t> auto_sink_entity_types = {})
const std::set<std::uint8_t> & auto_sink_entity_types = {})
: auto_sink_entity_types(auto_sink_entity_types),
map_path(assertMapPath(map_path)),
lanelet2_map_file(findLexicographicallyFirstFilenameOf(map_path, ".osm")),
Expand All @@ -80,7 +80,7 @@ struct Configuration

explicit Configuration(
const Pathname & map_path, const Filename & lanelet2_map_file, const Pathname & scenario_path,
const std::set<std::uint8_t> auto_sink_entity_types = {})
const std::set<std::uint8_t> & auto_sink_entity_types = {})
: auto_sink_entity_types(auto_sink_entity_types),
map_path(assertMapPath(map_path)),
lanelet2_map_file(lanelet2_map_file),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class GermanRoadShoulderPassableVehicle : public lanelet::traffic_rules::GermanV
return {};
}

auto startsWith = [](const std::string & str, const std::string & substr) {
auto startsWith = [](std::string_view str, std::string_view substr) {
return str.compare(0, substr.size(), substr) == 0;
};
return lanelet::utils::anyOf(participants->second, [this, startsWith](auto & participant) {
Expand Down

0 comments on commit c35aed6

Please sign in to comment.