bool AbstractOccupancyOcTree::readBinary(const std::string& filename){ std::ifstream binary_infile( filename.c_str(), std::ios_base::binary); if (!binary_infile.is_open()){ OCTOMAP_ERROR_STR("Filestream to "<< filename << " not open, nothing read."); return false; } return readBinary(binary_infile); }
void OcTreePCL::readBinary(const std::string& filename){ std::ifstream binary_infile( filename.c_str(), std::ios_base::binary); if (!binary_infile.is_open()){ std::cerr << "ERROR: Filestream to "<< filename << " not open, nothing read.\n"; return; } else { readBinary(binary_infile); binary_infile.close(); } }