Program Listing for File layer_io.h¶
↰ Return to documentation for file (voxblox/include/voxblox/io/layer_io.h
)
#ifndef VOXBLOX_IO_LAYER_IO_H_
#define VOXBLOX_IO_LAYER_IO_H_
#include <string>
#include <glog/logging.h>
#include "voxblox/core/common.h"
#include "voxblox/core/layer.h"
namespace voxblox {
namespace io {
template <typename VoxelType>
bool LoadBlocksFromFile(
const std::string& file_path,
typename Layer<VoxelType>::BlockMergingStrategy strategy,
Layer<VoxelType>* layer_ptr);
template <typename VoxelType>
bool LoadBlocksFromFile(
const std::string& file_path,
typename Layer<VoxelType>::BlockMergingStrategy strategy,
bool multiple_layer_support, Layer<VoxelType>* layer_ptr);
template <typename VoxelType>
bool LoadBlocksFromStream(
const size_t num_blocks, typename Layer<VoxelType>::BlockMergingStrategy strategy,
std::fstream* proto_file_ptr, Layer<VoxelType>* layer_ptr,
uint32_t* tmp_byte_offset_ptr);
template <typename VoxelType>
bool LoadLayer(const std::string& file_path,
typename Layer<VoxelType>::Ptr* layer_ptr);
template <typename VoxelType>
bool LoadLayer(const std::string& file_path, const bool multiple_layer_support,
typename Layer<VoxelType>::Ptr* layer_ptr);
template <typename VoxelType>
bool SaveLayer(const Layer<VoxelType>& layer, const std::string& file_path,
bool clear_file = true);
template <typename VoxelType>
bool SaveLayerSubset(const Layer<VoxelType>& layer,
const std::string& file_path,
const BlockIndexList& blocks_to_include,
bool include_all_blocks);
} // namespace io
} // namespace voxblox
#include "voxblox/io/layer_io_inl.h"
#endif // VOXBLOX_IO_LAYER_IO_H_