We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05115ba commit 0241ba3Copy full SHA for 0241ba3
1 file changed
src/common/global_info.cpp
@@ -207,11 +207,12 @@ SharedDsgInfo::Ptr GlobalInfo::createSharedDsg() const {
207
208
const spark_dsg::Labelspace labelspace(getLabelToNameMap());
209
if (labelspace) {
210
- labelspace.save(graph, "mesh");
+ labelspace.save(graph, "mesh", false);
211
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);
+ if (graph.layer_names().count(layer_name)) {
+ labelspace.save(graph, layer_name);
+ } else {
215
+ LOG(WARNING) << "Skipping saving labelspace for unknown '" << layer_name << "'";
216
}
217
218
0 commit comments