Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix binary reading problem of PCD format #18982

Merged
merged 1 commit into from
Mar 27, 2020
Merged

Fix binary reading problem of PCD format #18982

merged 1 commit into from
Mar 27, 2020

Conversation

HTLife
Copy link
Contributor

@HTLife HTLife commented Mar 26, 2020

PCD binary format could look like this:

# .PCD v0.7 - Point Cloud Data file format
VERSION 0.7
FIELDS x y z _ intensity ring _
SIZE 4 4 4 1 4 2 1
TYPE F F F U F U U
COUNT 1 1 1 4 1 1 10
WIDTH 22539
HEIGHT 1
VIEWPOINT 0 0 0 1 0 0 0
POINTS 22539
DATA binary

The correct field size is SIZE * COUNT.

PCD binary format could look like this:
```
# .PCD v0.7 - Point Cloud Data file format
VERSION 0.7
FIELDS x y z _ intensity ring _
SIZE 4 4 4 1 4 2 1
TYPE F F F U F U U
COUNT 1 1 1 4 1 1 10
WIDTH 22539
HEIGHT 1
VIEWPOINT 0 0 0 1 0 0 0
POINTS 22539
DATA binary
```
The correct field size is SIZE * COUNT.
@mrdoob mrdoob added this to the r116 milestone Mar 27, 2020
@mrdoob mrdoob merged commit 5c962e7 into mrdoob:dev Mar 27, 2020
@mrdoob
Copy link
Owner

mrdoob commented Mar 27, 2020

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants