This code is about .pcd to .bin converting tool.
PointCloud(.pcd) file includes x, y, z, intensity, (ring, time)
data.
You can convert all the .pcd files (sorted in ascending order by file name) in the directory.
Python 2.7
$ pip install numpy
$ pip install argparse
$ pip install pypcd
$ pip install tqdm
$ python pcd2bin.py --pcd_path={path of input pcd file directory} --bin_path={path of output bin file directory} --file_name={name of bin file}
Name | Description | Default value |
---|---|---|
pcd_path | .pcd file path | "/home/user/lidar_pcd" |
bin_path | .bin file path | "/home/user/lidar_bin" |
file_name | .bin file name | "file_name" |