遇到的问题: 原因,在发布点云的时候没有给定frame_id. pointcloud2.header.frame_id = "map"; //加入这句话 pub_.publish(pointcloud2); 然后错误解决!