How to write pointcloud in .vtk file using libpointmatcher?

asked 2016-10-17 02:04:44 -0500

snehal gravatar image

Hi I am new in pcl and libpointmatcher. In PCL ,1st i subscribe the PointCloud2 msg from kinect and in callback i covert it into PointCloud using fromRosMsg(), then i save this msg in .pcd file using savePCDFile(). Its working. But my question is simply how can i store pointcloud in .vtk file using libpointmatcher library. rosMsgToPointMatcherCloud(const sensor_msgs::PointCloud2& rosMsg) This is the API's to convert ros msg to Pointmatcher. but i am confused how can i use in callback function?

edit retag flag offensive close merge delete