Public Member Functions | Protected Member Functions
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:
Inheritance graph
[legend]

List of all members.

Public Member Functions

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

Protected Member Functions

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.
std::string localToGlobalFileName (const std::string &path, const std::string &fileName)
 Join parentPath and fileName and return the result as a global path.

Detailed Description

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

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

Definition at line 197 of file IO.h.


Constructor & Destructor Documentation

template<typename T >
PointMatcherIO< T >::FileInfoVector::FileInfoVector ( )

Definition at line 172 of file pointmatcher/IO.cpp.

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".

Definition at line 191 of file pointmatcher/IO.cpp.


Member Function Documentation

template<typename T >
bool PointMatcherIO< T >::FileInfoVector::findTransform ( const PointMatcherSupport::CsvElements data,
const std::string &  prefix,
unsigned  dim 
) [protected]

Return whether there is a valid transformation named prefix in data.

Definition at line 309 of file pointmatcher/IO.cpp.

template<typename T >
PointMatcherIO< T >::TransformationParameters PointMatcherIO< T >::FileInfoVector::getTransform ( const PointMatcherSupport::CsvElements data,
const std::string &  prefix,
unsigned  dim,
unsigned  line 
) [protected]

Return the transformation named prefix from data.

Definition at line 326 of file pointmatcher/IO.cpp.

template<typename T >
std::string PointMatcherIO< T >::FileInfoVector::localToGlobalFileName ( const std::string &  path,
const std::string &  fileName 
) [protected]

Join parentPath and fileName and return the result as a global path.

Definition at line 291 of file pointmatcher/IO.cpp.


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


libpointmatcher
Author(s):
autogenerated on Mon Sep 14 2015 02:59:07