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

Convert lidar csv files to pcds #26

Closed
Liumouliu opened this issue Jun 3, 2021 · 3 comments
Closed

Convert lidar csv files to pcds #26

Liumouliu opened this issue Jun 3, 2021 · 3 comments

Comments

@Liumouliu
Copy link

Hi,

Thank you very much for the datasets. Can you please give detailed codes (write a script) to show how to convert lidar csv files to pcds?

I have tried my best. But due to my poor ros knowledge, I failed.

Thank you!

Best,
liu

@Liumouliu
Copy link
Author

Finally, I am able to do it. The details are listed below for the reference of other people who may want to do the same job.

  1. roslaunch ford_demo multi_lidar_convert.launch

By the time (2021/6/4), you need to revise the file multi_lidar_convert.launch following #10

If you want to skip the long replies, the ready-to-use file is attached (change the name to multi_lidar_convert.launch). multi_lidar_convert.txt

  1. Follow Velodyne data to pcd2 conversion #21

install the pcl_ros library.

However, before install the library, plz change the line (https://answers.ros.org/question/331779/missing-ros-message-while-running-pointcloud-to-pcd/):

sub_ = nh_.subscribe (cloud_topic_, 1, &PointCloudToPCD::cloud_cb, this);

to

sub_ = nh_.subscribe (cloud_topic_, 100, &PointCloudToPCD::cloud_cb, this);

in file pointcloud_to_pcd.cpp

  1. rosrun pcl_ros pointcloud_to_pcd put:=/lidar_blue_pointcloud

As I want to record the lidar blue pointclouds

  1. slow play the rosbag, otherwise you will lost pcds

rosbag play ~/Sample-Data.bag -r 0.1

@ankitvora7
Copy link
Contributor

Some of these changes should be in the master branch!

@ankitvora7
Copy link
Contributor

Closing this issue

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

2 participants