MCPcopy Create free account
hub / github.com/OctoMap/octomap / writeBinaryConst

Method writeBinaryConst

octomap/src/AbstractOccupancyOcTree.cpp:60–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58 }
59
60 bool AbstractOccupancyOcTree::writeBinaryConst(const std::string& filename) const{
61 std::ofstream binary_outfile( filename.c_str(), std::ios_base::binary);
62
63 if (!binary_outfile.is_open()){
64 OCTOMAP_ERROR_STR("Filestream to "<< filename << " not open, nothing written.");
65 return false;
66 }
67 writeBinaryConst(binary_outfile);
68 binary_outfile.close();
69 return true;
70 }
71
72 bool AbstractOccupancyOcTree::writeBinary(std::ostream &s){
73 // convert to max likelihood first, this makes efficient pruning on binary data possible

Callers 1

Calls 3

getTreeTypeMethod · 0.45
sizeMethod · 0.45
getResolutionMethod · 0.45

Tested by

no test coverage detected