ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Made a minor change, now it works
pcl::PointCloud<pcl::PointXYZ> pcl_cloud;
pcl::fromROSMsg(cloud2_out, pcl_cloud);
writeCount++;
char filename[100];
sprintf(filename, "/home/ateator/catkin_ws/src/laser_assembler/src/outputpcd/output%dx.pcd", writeCount);
pcl::io::savePCDFileASCII (filename, pcl_cloud);