参考大佬的博客https://blog.csdn.net/AdamShan/article/details/84569000,按照里面的步骤已经跑通了。
后面在学校采集了一个关于相机和激光雷达的数据包
需要更改pcl_test_core.cpp
PclTestCore::PclTestCore(ros::NodeHandle &nh)
{
sub_point_cloud_ = nh.subscribe("/lidar_on_roof", 10, &PclTestCore::point_cb, this);#将点云话题/lidar_on_roof更改为自己的点云话题
pub_ground_ = nh.advertise<sensor_msgs::PointCloud2