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:
Inheritance graph
[legend]

Public Member Functions

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

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. More...
 
TransformationParameters getTransform (const PointMatcherSupport::CsvElements &data, const std::string &prefix, unsigned dim, unsigned line)
 Return the transformation named prefix from data. More...
 
std::string localToGlobalFileName (const std::string &path, const std::string &fileName)
 Join parentPath and fileName and return the result as a global path. More...
 

Detailed Description

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

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

Definition at line 245 of file IO.h.

Constructor & Destructor Documentation

◆ FileInfoVector() [1/2]

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

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

◆ FileInfoVector() [2/2]

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 199 of file pointmatcher/IO.cpp.

Member Function Documentation

◆ findTransform()

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 317 of file pointmatcher/IO.cpp.

◆ getTransform()

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 334 of file pointmatcher/IO.cpp.

◆ localToGlobalFileName()

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 299 of file pointmatcher/IO.cpp.


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


libpointmatcher
Author(s):
autogenerated on Mon Sep 16 2024 02:24:11