Skip to content

Class nebula::drivers::io::PcdReader

ClassList > nebula > drivers > io > PcdReader

PCD file reader supporting ASCII and binary formats.

  • #include <pcd.hpp>

Public Static Functions

Type Name
PointCloud< PointT > read (const std::string & filename)
Read a PCD file into a PointCloud .

Public Static Functions Documentation

function read

Read a PCD file into a PointCloud .

template<typename PointT>
static inline PointCloud < PointT > nebula::drivers::io::PcdReader::read (
    const std::string & filename
) 

Template parameters:

  • PointT The target point type (must have a static fields() method)

Parameters:

  • filename Path to the PCD file

Returns:

The loaded point cloud

Exception:

  • std::runtime_error if the file cannot be opened, the header/data are malformed, the data is truncated, or the PCD DATA format is unsupported.
  • std::invalid_argument if numeric tokens in header/data cannot be parsed.
  • std::out_of_range if numeric tokens in header/data exceed target numeric range.


The documentation for this class was generated from the following file src/nebula_core/nebula_core_common/include/nebula_core_common/io/pcd.hpp