libpointmatcher  1.3.1
Public Member Functions | Protected Member Functions | List of all members
PointMatcherIO< T >::FileInfoVector Struct Reference

A vector of file info, to be used in batch processing. More...

#include <IO.h>

Inheritance diagram for PointMatcherIO< T >::FileInfoVector:

Public Member Functions

 FileInfoVector (const std::string &fileName, std::string dataPath="", std::string configPath="")
 Load a vector of FileInfo from a CSV file. More...
 

Protected Member Functions

std::string localToGlobalFileName (const std::string &path, const std::string &fileName)
 Join parentPath and fileName and return the result as a global path.
 
bool findTransform (const PointMatcherSupport::CsvElements &data, const std::string &prefix, unsigned dim)
 Return whether there is a valid transformation named prefix in data.
 
TransformationParameters getTransform (const PointMatcherSupport::CsvElements &data, const std::string &prefix, unsigned dim, unsigned line)
 Return the transformation named prefix from data.
 

Detailed Description

template<typename T>
struct PointMatcherIO< T >::FileInfoVector

A vector of file info, to be used in batch processing.

Constructor & Destructor Documentation

◆ FileInfoVector()

template<typename T >
PointMatcherIO< T >::FileInfoVector::FileInfoVector ( const std::string &  fileName,
std::string  dataPath = "",
std::string  configPath = "" 
)

Load a vector of FileInfo from a CSV file.

Parameters
fileNamename of the CSV file
dataPathpath relative to which the point cloud CSV or VTK will be resolved
configPathpath relative to which the yaml configuration files will be resolved

The first line of the CSV file must contain a header. The supported tags are:

  • reading: file name of the reading point cloud
  • reference: file name of the reference point cloud
  • config: file name of the YAML configuration of the ICP chain
  • iTxy: initial transformation, coordinate x,y
  • gTxy: ground-truth transformation, coordinate x,y Note that the header must at least contain "reading".

The documentation for this struct was generated from the following files: