Skip to content

Commit a48104d

Browse files
committed
fix(map_loader): fix differential visualizer CI issues
Signed-off-by: N-Iemura <nagayoshi.iemura.2@tier4.jp>
1 parent db674d8 commit a48104d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

map/autoware_map_loader/src/pointcloud_map_loader/differential_map_loader_module.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@
1919
#include <algorithm>
2020
#include <chrono>
2121
#include <cstring>
22+
#include <memory>
2223
#include <map>
2324
#include <string>
25+
#include <unordered_set>
2426
#include <utility>
2527
#include <vector>
2628

@@ -231,7 +233,6 @@ void DifferentialMapLoaderModule::rebuild_merged_cloud_for_visualization()
231233
for (const auto & c : snapshot) {
232234
if (c && !c->fields.empty() && c->point_step != 0U) {
233235
merged = *c;
234-
merged.data = std::move(reusable_data);
235236
has_any = true;
236237
break;
237238
}
@@ -245,6 +246,8 @@ void DifferentialMapLoaderModule::rebuild_merged_cloud_for_visualization()
245246
return;
246247
}
247248

249+
merged.data = std::move(reusable_data);
250+
248251
size_t total = 0;
249252
for (const auto & c : snapshot) {
250253
if (!c) continue;

0 commit comments

Comments
 (0)