| 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 |
no test coverage detected