A transformation checker can stop the iteration depending on some conditions. More...
#include <PointMatcher.h>
Public Member Functions | |
virtual void | check (const TransformationParameters ¶meters, bool &iterate)=0 |
Set iterate to false if iteration should stop. | |
const StringVector & | getConditionVariableNames () const |
Return the names of variables involved in conditions to stop ICP loop. | |
const Vector & | getConditionVariables () const |
Return the values of variables involved in conditions to stop ICP loop. | |
const StringVector & | getLimitNames () const |
Return the names of limits involved in conditions to stop ICP loop. | |
const Vector & | getLimits () const |
Return the value of limits involved in conditions to stop ICP loop. | |
virtual void | init (const TransformationParameters ¶meters, bool &iterate)=0 |
Init, set iterate to false if iteration should stop. | |
TransformationChecker () | |
Construct without parameter. | |
TransformationChecker (const std::string &className, const ParametersDoc paramsDoc, const Parameters ¶ms) | |
Construct with parameters. | |
virtual | ~TransformationChecker () |
Destructor. | |
Protected Types | |
typedef std::vector< std::string > | StringVector |
a vector of strings | |
Static Protected Member Functions | |
static Vector | matrixToAngles (const TransformationParameters ¶meters) |
Extract the Euler angles from a rigid-transformation matrix. | |
Protected Attributes | |
StringVector | conditionVariableNames |
names of variables involved in conditions to stop ICP loop | |
Vector | conditionVariables |
values of variables involved in conditions to stop ICP loop | |
StringVector | limitNames |
names of limits involved in conditions to stop ICP loop | |
Vector | limits |
values of limits involved in conditions to stop ICP loop |
A transformation checker can stop the iteration depending on some conditions.
For example, a condition can be the number of times the loop was executed, or it can be related to the matching error. Because the modules can be chained, we defined that the relation between modules must agree through an OR-condition, while all AND-conditions are defined within a single module.
Definition at line 572 of file PointMatcher.h.
typedef std::vector<std::string> PointMatcher< T >::TransformationChecker::StringVector [protected] |
a vector of strings
Definition at line 575 of file PointMatcher.h.
PointMatcher< T >::TransformationChecker::TransformationChecker | ( | ) |
Construct without parameter.
Definition at line 41 of file TransformationChecker.cpp.
PointMatcher< T >::TransformationChecker::TransformationChecker | ( | const std::string & | className, |
const ParametersDoc | paramsDoc, | ||
const Parameters & | params | ||
) |
Construct with parameters.
Definition at line 46 of file TransformationChecker.cpp.
PointMatcher< T >::TransformationChecker::~TransformationChecker | ( | ) | [virtual] |
Destructor.
Definition at line 52 of file TransformationChecker.cpp.
virtual void PointMatcher< T >::TransformationChecker::check | ( | const TransformationParameters & | parameters, |
bool & | iterate | ||
) | [pure virtual] |
Set iterate to false if iteration should stop.
Implemented in TransformationCheckersImpl< T >::BoundTransformationChecker, TransformationCheckersImpl< T >::DifferentialTransformationChecker, and TransformationCheckersImpl< T >::CounterTransformationChecker.
const PointMatcher< T >::TransformationChecker::StringVector & PointMatcher< T >::TransformationChecker::getConditionVariableNames | ( | ) | const |
Return the names of variables involved in conditions to stop ICP loop.
Definition at line 78 of file TransformationChecker.cpp.
const PointMatcher< T >::Vector & PointMatcher< T >::TransformationChecker::getConditionVariables | ( | ) | const |
Return the values of variables involved in conditions to stop ICP loop.
Definition at line 64 of file TransformationChecker.cpp.
const PointMatcher< T >::TransformationChecker::StringVector & PointMatcher< T >::TransformationChecker::getLimitNames | ( | ) | const |
Return the names of limits involved in conditions to stop ICP loop.
Definition at line 71 of file TransformationChecker.cpp.
const PointMatcher< T >::Vector & PointMatcher< T >::TransformationChecker::getLimits | ( | ) | const |
Return the value of limits involved in conditions to stop ICP loop.
Definition at line 57 of file TransformationChecker.cpp.
virtual void PointMatcher< T >::TransformationChecker::init | ( | const TransformationParameters & | parameters, |
bool & | iterate | ||
) | [pure virtual] |
Init, set iterate to false if iteration should stop.
Implemented in TransformationCheckersImpl< T >::BoundTransformationChecker, TransformationCheckersImpl< T >::DifferentialTransformationChecker, and TransformationCheckersImpl< T >::CounterTransformationChecker.
PointMatcher< T >::Vector PointMatcher< T >::TransformationChecker::matrixToAngles | ( | const TransformationParameters & | parameters | ) | [static, protected] |
Extract the Euler angles from a rigid-transformation matrix.
Definition at line 85 of file TransformationChecker.cpp.
StringVector PointMatcher< T >::TransformationChecker::conditionVariableNames [protected] |
names of variables involved in conditions to stop ICP loop
Definition at line 579 of file PointMatcher.h.
Vector PointMatcher< T >::TransformationChecker::conditionVariables [protected] |
values of variables involved in conditions to stop ICP loop
Definition at line 577 of file PointMatcher.h.
StringVector PointMatcher< T >::TransformationChecker::limitNames [protected] |
names of limits involved in conditions to stop ICP loop
Definition at line 578 of file PointMatcher.h.
Vector PointMatcher< T >::TransformationChecker::limits [protected] |
values of limits involved in conditions to stop ICP loop
Definition at line 576 of file PointMatcher.h.