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);
 }
Beispiel #2
0
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();
  }
}