Follow googlecartographer/cartographer#1424 (#1014)

master
Christoph Schütte 2018-09-19 11:37:01 +02:00 committed by gaschler
parent aa8a62e82f
commit 578b5df9ce
1 changed files with 2 additions and 3 deletions

View File

@ -162,9 +162,8 @@ void MapBuilderBridge::RunFinalOptimization() {
bool MapBuilderBridge::SerializeState(const std::string& filename,
const bool include_unfinished_submaps) {
cartographer::io::ProtoStreamWriter writer(filename);
map_builder_->SerializeState(include_unfinished_submaps, &writer);
return writer.Close();
return map_builder_->SerializeStateToFile(include_unfinished_submaps,
filename);
}
void MapBuilderBridge::HandleSubmapQuery(