ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
You could do this in ROS Hydro PCL 1.7 if your mesh was a pcl::PolygonMesh:
const std::string meshFileName = "test.stl";
pcl::PolygonMesh testMesh;
pcl::io::loadPolygonFileSTL( meshFileName, testMesh );
pcl_conversions::fromPCL( testMesh.cloud, output );
2 | No.2 Revision |
You could do this in ROS Hydro PCL 1.7 if your mesh was a pcl::PolygonMesh:
#include <pcl/io/vtk_io.h>
const std::string meshFileName = pcl::PolygonMesh testMesh;
3 | No.3 Revision |
You could do this in ROS Hydro PCL 1.7 if your mesh was a pcl::PolygonMesh:
#include <pcl io="" vtk_lib_io.h="">
#include <pcl/io/vtk_io.h>
const std::string meshFileName = "test.stl";
pcl::PolygonMesh testMesh;
pcl::io::loadPolygonFileSTL( meshFileName, testMesh );
);
pcl_conversions::fromPCL( testMesh.cloud, output );