ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 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);