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

rosbag or PCD to .bin format #7

Open
bsridatta opened this issue Feb 24, 2019 · 4 comments
Open

rosbag or PCD to .bin format #7

bsridatta opened this issue Feb 24, 2019 · 4 comments

Comments

@bsridatta
Copy link

How can we convert PCD or rosbag to the format this tool need?

@Renataaa
Copy link

have you solved this question?

@bsridatta
Copy link
Author

bsridatta commented May 25, 2019

Hey if you want to convert PCD to binary, you could use PCL library to do that. This is a script to do for multiple PCDs. Hope this helps.

https://gist.github.com/bsridatta/e1e0964b5c6b424549c12d8c4156bb4b

@ziliHarvey
Copy link

FYI, pypcd also helps and is much easier.

@kentaroy47
Copy link

I converted the point cloud files to numpy as

points = [N, 4]
points[0] = x,y,z,intensity

then, just dumping as binary worked fine.

data.astype("float32").tofile("binary.bin"

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

No branches or pull requests

4 participants