cpp-toolbox  0.0.1
A toolbox library for C++
Loading...
Searching...
No Matches
pcd_impl.hpp File Reference

此文件包含 pcd_format_t 的模板实现/This file contains the template implementations for pcd_format_t More...

#include <cpp-toolbox/io/formats/pcd.hpp>
#include <algorithm>
#include <cmath>
#include <cstdint>
#include <cstring>
#include <fstream>
#include <iomanip>
#include <limits>
#include <map>
#include <memory>
#include <sstream>
#include <stdexcept>
#include <type_traits>
#include <variant>
#include <vector>
#include <cpp-toolbox/file/memory_mapped_file.hpp>
#include <cpp-toolbox/logger/thread_logger.hpp>
Include dependency graph for pcd_impl.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  toolbox
 
namespace  toolbox::io
 < 用于列出目录下的文件/For listing files in a directory
 

Macros

#define READ_BINARY_CASE(PCDType)
 

Functions

template<typename T >
CPP_TOOLBOX_EXPORT std::unique_ptr< toolbox::types::point_cloud_t< T > > toolbox::io::read_pcd (const std::string &path)
 从文件中读取 PCD 点云数据的独立函数。/Standalone function to read PCD point cloud data from a file.
 
template<typename T >
CPP_TOOLBOX_EXPORT bool toolbox::io::write_pcd (const std::string &path, const toolbox::types::point_cloud_t< T > &cloud, bool binary)
 将点云数据写入 PCD 文件的独立函数。/Standalone function to write point cloud data to a PCD file.
 

Detailed Description

此文件包含 pcd_format_t 的模板实现/This file contains the template implementations for pcd_format_t

该文件应该只被 pcd.hpp 包含/It should only be included by pcd.hpp

Macro Definition Documentation

◆ READ_BINARY_CASE

#define READ_BINARY_CASE (   PCDType)
Value:
case sizeof(PCDType): \
if (!read_binary_field_value<T, PCDType>( \
point_ptr, info.offset, out_val)) { \
LOG_ERROR_S << "pcd_format_t: Failed binary read (offset " \
<< info.offset << ", size " << sizeof(PCDType) << ")"; \
return false; \
} \
break
#define LOG_ERROR_S
ERROR级别流式日志的宏 / Macro for ERROR level stream logging.
Definition thread_logger.hpp:1332