| 10 | bool finish = false; |
| 11 | |
| 12 | void cloudCallback(const sensor_msgs::PointCloud2& msg) { |
| 13 | pcl::PointCloud<pcl::PointXYZ> cloud; |
| 14 | pcl::fromROSMsg(msg, cloud); |
| 15 | pcl::io::savePCDFileASCII("/home/boboyu/Downloads/tmp.pcd", cloud); |
| 16 | |
| 17 | cout << "map saved." << endl; |
| 18 | finish = true; |
| 19 | } |
| 20 | |
| 21 | int main(int argc, char** argv) { |
| 22 | ros::init(argc, argv, "map_recorder"); |
nothing calls this directly
no outgoing calls
no test coverage detected