supereight
Loading...
Searching...
No Matches
Functions
point_cloud_io.hpp File Reference
#include <Eigen/Geometry>
#include <fstream>
#include <se/image/image.hpp>
#include <string>
#include "impl/point_cloud_io_impl.hpp"
Include dependency graph for point_cloud_io.hpp:

Go to the source code of this file.

Functions

int save_point_cloud_vtk (se::Image< Eigen::Vector3f > &point_cloud, const std::string &filename, const Eigen::Isometry3f &T_WC)
 Save a point cloud as a VTK file.
 

Function Documentation

◆ save_point_cloud_vtk()

int save_point_cloud_vtk ( se::Image< Eigen::Vector3f > &  point_cloud,
const std::string &  filename,
const Eigen::Isometry3f &  T_WC 
)

Save a point cloud as a VTK file.

Documentation for the VTK file format available here https://vtk.org/wp-content/uploads/2015/04/file-formats.pdf.

Parameters
[in]point_cloudThe pointcloud to save.
[in]filenameThe name of the PCD file to create.
[in]T_WCThe pose from which the point cloud was observed.
Returns
0 on success, nonzero on error.