Skip to content

Commit

Permalink
[Debug] fix pcd io small probability bug
Browse files Browse the repository at this point in the history
  • Loading branch information
GCaptainNemo committed Sep 3, 2024
1 parent 4900f66 commit 267d493
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions io/src/pcd_io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -325,13 +325,14 @@ pcl::PCDReader::readHeader (std::istream &fs, pcl::PCLPointCloud2 &cloud,
// Read the header + comments line by line until we get to <DATA>
if (line_type.substr (0, 4) == "DATA")
{
data_idx = static_cast<int> (fs.tellg ());
if (st.at (1).substr (0, 17) == "binary_compressed")
data_type = 2;
else
if (st.at (1).substr (0, 6) == "binary")
data_type = 1;
continue;
else
continue;
data_idx = static_cast<int> (fs.tellg ());
}
break;
}
Expand Down

0 comments on commit 267d493

Please sign in to comment.