Skip to content
Snippets Groups Projects
Commit 22b7aaf0 authored by Xiao Pan's avatar Xiao Pan
Browse files

Rename variable lanes to lane_id_strings

parent 9557ba38
No related branches found
No related tags found
No related merge requests found
......@@ -38,11 +38,13 @@ std::vector<std::uint64_t> ConvertFirstCustomTrafficCommandOfHostVehicleToRoute(
});
if (route_action_iterator != actions.cend())
{
// Convert comma separated string into a vector of lane ids
const auto& lanes = astas::service::utility::Split(route_action_iterator->custom_action().command());
std::transform(lanes.cbegin(), lanes.cend(), std::back_inserter(path), [](const auto& element) {
return std::stoull(element);
});
// Convert comma separated string into a vector of lane IDs
const auto& lane_id_strings =
astas::service::utility::Split(route_action_iterator->custom_action().command());
std::transform(
lane_id_strings.cbegin(), lane_id_strings.cend(), std::back_inserter(path), [](const auto& element) {
return std::stoull(element);
});
}
}
return path;
......
......@@ -10,7 +10,6 @@
#ifndef GTGEN_CORE_TESTS_TESTUTILS_CONVERTFIRSTCUSTOMTRAFFICCOMMANDOFHOSTVEHICLETOROUTE_H
#define GTGEN_CORE_TESTS_TESTUTILS_CONVERTFIRSTCUSTOMTRAFFICCOMMANDOFHOSTVEHICLETOROUTE_H
#include "Core/Service/Utility/string_utils.h"
#include "astas_osi_trafficcommand.pb.h"
#include <cstdint>
......
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