pcl::writer error

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
Report Content as Inappropriate

pcl::writer error

I have installed PCL 1.8 with the PLC-All-in-One Installer- great work!
I use Win10 MSVC14 x64. I write a verry simple Programme to show the problem (see code)

All worke fine. Compilation: OK no Errors. The Program starting. The points are added to the Pointcloud. Only the writer producees an error with the message:
[pcl::PLYWriter::writeASCII] Error during opening (└¿«2­)!

The filename change from "C:\\test\\test.ply" to a name like "└¿«2­)". In debug mode i finde that the write function ply_io.h get the right parameter. Between this parameter and the really write the pointcloud with the name, the string  changes. Maybe a string operation are wrong. If you run this code do you have a Pointcloud? I think it has nothing to do with the PCL maybe with msvc14. If you have a idear it would be great - thank you for the answer

#include <iostream>
#include <pcl/io/ply_io.h>
pcl::PointCloud<pcl::PointXYZ>::Ptr Testcloud(new pcl::PointCloud<pcl::PointXYZ>);
std::string myTest("C:\\Test\\xx.ply");
pcl::PLYWriter testwriter;
int main(int argc, char *argv[])
                //add 3 Points
            pcl::PointXYZ myCorner;
                myCorner.x = 10;
                myCorner.y = 10;
                myCorner.z = 10;

                myCorner.x = 1;
                myCorner.y = 1;
                myCorner.z = 1;

                myCorner.x = 5;
                myCorner.y = 6;
                myCorner.z = 5;
                //Write Points to PLY - File
                testwriter.write(myTest, *Testcloud);
                return 1;
Reply | Threaded
Open this post in threaded view
Report Content as Inappropriate

Re: pcl::writer error

It would be verry helpfull if someone can test the code with Win 10 MSVC2015 update 3 IDE x64 console/subsystem. I have search many, many hours to find a solution without succsess - thank you