PointCloudLibrary/pcl

Add PCLPointCloud2 Header fields (Stamp, Seq, Frame_id) to PCDWriter/PCDReader

Open

#2.287 geöffnet am 20. Apr. 2018

Auf GitHub ansehen
 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C++ (4.506 Forks)batch import
good first issuekind: todomodule: io

Repository-Metriken

Stars
 (9.023 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 8T 7h) (3 gemergte PRs in 30 T)

Beschreibung

The PCDWriter/PCDReader combination deals with PCLPointClouds2. However it does not include the header fields in the file format(Stamp, Seq, Frame_id).

Your Environment

  • Operating System and version: Ubuntu 17.10
  • Compiler: GNU GCC
  • PCL Version: trunk

Context

The newest trunk allows serialization to an iostream, allowing an easy way to use the PCD format over the network. However the header fields are not stored in the PCD format. It could also be useful for figuring out metadata of the PCD at a later time.

Expected Behavior

Converting a PCLPointCloud2 to PCD Format and back results in the header field in PCLPointCloud2 being identical to the pointcloud before conversion.

Current Behavior

Converting a PCLPointCloud2 to PCD Format and back results in an empty header.

Possible Solution

I propose adding three fields to the header STAMP (Time since epoch in microseconds, header.stamp) FRAME (Frame name, header.frame_id) SEQ (Sequence id, header.seq)

Contributor Guide