Skip to content

Commit 0241ba3

Browse files
committed
(fix) adapt to new labelspace api
1 parent 05115ba commit 0241ba3

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/common/global_info.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,11 +207,12 @@ SharedDsgInfo::Ptr GlobalInfo::createSharedDsg() const {
207207

208208
const spark_dsg::Labelspace labelspace(getLabelToNameMap());
209209
if (labelspace) {
210-
labelspace.save(graph, "mesh");
210+
labelspace.save(graph, "mesh", false);
211211
for (const auto& layer_name : config_.semantic_layers) {
212-
const auto key = graph.getLayerKey(layer_name);
213-
if (key) {
214-
labelspace.save(graph, key->layer, key->partition);
212+
if (graph.layer_names().count(layer_name)) {
213+
labelspace.save(graph, layer_name);
214+
} else {
215+
LOG(WARNING) << "Skipping saving labelspace for unknown '" << layer_name << "'";
215216
}
216217
}
217218
}

0 commit comments

Comments
 (0)