g2o
|
create robust kernels based on their human readable name More...
#include <robust_kernel_factory.h>
Public Member Functions | |
void | registerRobustKernel (const std::string &tag, AbstractRobustKernelCreator *c) |
void | unregisterType (const std::string &tag) |
RobustKernel * | construct (const std::string &tag) const |
AbstractRobustKernelCreator * | creator (const std::string &tag) const |
void | fillKnownKernels (std::vector< std::string > &types) const |
Static Public Member Functions | |
static RobustKernelFactory * | instance () |
return the instance More... | |
static void | destroy () |
free the instance More... | |
Protected Types | |
typedef std::map< std::string, AbstractRobustKernelCreator * > | CreatorMap |
Protected Member Functions | |
RobustKernelFactory () | |
~RobustKernelFactory () | |
Protected Attributes | |
CreatorMap | _creator |
look-up map for the existing creators More... | |
Static Private Attributes | |
static RobustKernelFactory * | factoryInstance = 0 |
create robust kernels based on their human readable name
Definition at line 68 of file robust_kernel_factory.h.
|
protected |
Definition at line 105 of file robust_kernel_factory.h.
|
protected |
Definition at line 38 of file robust_kernel_factory.cpp.
|
protected |
Definition at line 42 of file robust_kernel_factory.cpp.
RobustKernel * g2o::RobustKernelFactory::construct | ( | const std::string & | tag | ) | const |
construct a robust kernel based on its tag
Definition at line 80 of file robust_kernel_factory.cpp.
AbstractRobustKernelCreator * g2o::RobustKernelFactory::creator | ( | const std::string & | tag | ) | const |
return the creator for a specific tag
Definition at line 89 of file robust_kernel_factory.cpp.
|
static |
free the instance
Definition at line 105 of file robust_kernel_factory.cpp.
void g2o::RobustKernelFactory::fillKnownKernels | ( | std::vector< std::string > & | types | ) | const |
get a list of all known robust kernels
Definition at line 98 of file robust_kernel_factory.cpp.
|
static |
return the instance
Definition at line 50 of file robust_kernel_factory.cpp.
Referenced by g2o::RegisterRobustKernelProxy< T >::RegisterRobustKernelProxy(), and g2o::RegisterRobustKernelProxy< T >::~RegisterRobustKernelProxy().
void g2o::RobustKernelFactory::registerRobustKernel | ( | const std::string & | tag, |
AbstractRobustKernelCreator * | c | ||
) |
register a tag for a specific creator
Definition at line 59 of file robust_kernel_factory.cpp.
Referenced by g2o::RegisterRobustKernelProxy< T >::RegisterRobustKernelProxy().
void g2o::RobustKernelFactory::unregisterType | ( | const std::string & | tag | ) |
unregister a tag for a specific creator
Definition at line 70 of file robust_kernel_factory.cpp.
Referenced by g2o::RegisterRobustKernelProxy< T >::~RegisterRobustKernelProxy().
|
protected |
look-up map for the existing creators
Definition at line 109 of file robust_kernel_factory.h.
|
staticprivate |
Definition at line 112 of file robust_kernel_factory.h.