Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Christoph Schütte authored and gaschler committed Sep 19, 2018
1 parent aa8a62e commit 578b5df
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cartographer_ros/cartographer_ros/map_builder_bridge.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 578b5df

Please sign in to comment.