[pdal-commits] [PDAL/PDAL] b24232: Add native PCD I/O (removing reader/writer from PC...

chambbj noreply at github.com
Fri Jul 19 09:57:14 PDT 2019


  Branch: refs/heads/pcd-io
  Home:   https://github.com/PDAL/PDAL
  Commit: b24232831a62e4f3b1f7c5c4bb0de20b0fcce399
      https://github.com/PDAL/PDAL/commit/b24232831a62e4f3b1f7c5c4bb0de20b0fcce399
  Author: Bradley J Chambers <brad.chambers at gmail.com>
  Date:   2019-07-19 (Fri, 19 Jul 2019)

  Changed paths:
    M doc/stages/readers.pcd.rst
    M doc/stages/writers.pcd.rst
    A io/PcdHeader.cpp
    A io/PcdHeader.hpp
    A io/PcdReader.cpp
    A io/PcdReader.hpp
    A io/PcdWriter.cpp
    A io/PcdWriter.hpp
    A io/point_types.hpp
    M plugins/pcl/CMakeLists.txt
    R plugins/pcl/io/PcdCommon.hpp
    R plugins/pcl/io/PcdHeader.cpp
    R plugins/pcl/io/PcdHeader.hpp
    R plugins/pcl/io/PcdReader.cpp
    R plugins/pcl/io/PcdReader.hpp
    R plugins/pcl/io/PcdWriter.cpp
    R plugins/pcl/io/PcdWriter.hpp
    R plugins/pcl/io/point_types.hpp
    A test/data/pcd/missingheader.pcd
    A test/data/pcd/utm17_comma.pcd
    A test/data/pcd/utm17_space.pcd
    A test/data/pcd/utm17_tab.pcd
    M test/unit/CMakeLists.txt
    A test/unit/io/PcdReaderTest.cpp
    A test/unit/io/PcdWriterTest.cpp

  Log Message:
  -----------
  Add native PCD I/O (removing reader/writer from PCL plugin)

- Supports reading and writing ASCII
- Supports reading and writing binary
- Readers are streamable, while writers are not
- Does NOT yet support binary compressed
- Removes need for PcdCommon header
- Adds rudimentary tests for PCD reader/writer

A note about the PCD writer. Similar to other writers, the PCD writer can
output a subset of the dimensions if keep_unspecified is set to false. In that
case, only the dimensions specified in the order parameter are written in the
output. The dimension type ("F", "I", or "U") and size (in bytes) can also be
specified, along with precision in the case of ASCII output.

This native driver for PCD will remove a long-standing issue with the previous
PCL-backed drivers, which required a conversion to a fixed, single-precision
point schema, that resulted in loss of extra dimensions (beyond XYZRGBA) and
confusion surrounding subtraction of offsets to avoid loss of precision for
certain coordinate systems.




More information about the pdal-commits mailing list