Main MRPT website > C++ reference
MRPT logo
List of all members | Public Member Functions | Public Attributes | Static Protected Member Functions
mrpt::srba::RbaEngine< KF2KF_POSE_TYPE, LM_TYPE, OBS_TYPE, RBA_OPTIONS >::TSRBAParameters Struct Reference

Detailed Description

template<class KF2KF_POSE_TYPE, class LM_TYPE, class OBS_TYPE, class RBA_OPTIONS = RBA_OPTIONS_DEFAULT>
struct mrpt::srba::RbaEngine< KF2KF_POSE_TYPE, LM_TYPE, OBS_TYPE, RBA_OPTIONS >::TSRBAParameters

Different parameters for the SRBA methods.

Definition at line 373 of file RbaEngine.h.

#include <mrpt/srba/RbaEngine.h>

Inheritance diagram for mrpt::srba::RbaEngine< KF2KF_POSE_TYPE, LM_TYPE, OBS_TYPE, RBA_OPTIONS >::TSRBAParameters:
Inheritance graph
[legend]

Public Member Functions

 TSRBAParameters ()
 
virtual void loadFromConfigFile (const mrpt::utils::CConfigFileBase &source, const std::string &section)
 See docs of mrpt::utils::CLoadableOptions. More...
 
virtual void saveToConfigFile (mrpt::utils::CConfigFileBase &out, const std::string &section) const
 See docs of mrpt::utils::CLoadableOptions. More...
 
void loadFromConfigFileName (const std::string &config_file, const std::string &section)
 Behaves like loadFromConfigFile, but you can pass directly a file name and a temporary CConfigFile object will be created automatically to load the file. More...
 
void saveToConfigFileName (const std::string &config_file, const std::string &section) const
 Behaves like saveToConfigFile, but you can pass directly a file name and a temporary CConfigFile object will be created automatically to save the file. More...
 
void dumpToConsole () const
 Just like dumpToTextStream() but sending the text to the console (std::cout) More...
 
virtual void dumpToTextStream (CStream &out) const
 This method should clearly display all the contents of the structure in textual form, sending it to a CStream. More...
 

Public Attributes

TEdgeCreationPolicy edge_creation_policy
 Parameters for determine_kf2kf_edges_to_create(); custom user-defined policies can be also defined (see tutorials) More...
 
topo_dist_t max_tree_depth
 Maximum depth for maintained spanning trees. More...
 
topo_dist_t max_optimize_depth
 The maximum topological distance of keyframes to be optimized around the most recent keyframe. More...
 
size_t submap_size
 
size_t min_obs_to_loop_closure
 Default:6, reduce to 1 for relative graph-slam. More...
 
bool optimize_new_edges_alone
 (Default:true) Before running a whole "local area" optimization, try to optimize new edges one by one to have a better starting point. More...
 
bool use_robust_kernel
 
bool use_robust_kernel_stage1
 
double kernel_param
 
size_t max_iters
 
double max_error_per_obs_to_stop
 default: 1e-9 More...
 
double max_rho
 default: 1.0 More...
 
double max_lambda
 default: 1e20 More...
 
double min_error_reduction_ratio_to_relinearize
 default 0.01 More...
 
bool numeric_jacobians
 (Default:false) Use a numeric approximation of the Jacobians (very slow!) instead of analytical ones. More...
 
void(* feedback_user_iteration )(unsigned int iter, const double total_sq_err, const double mean_sqroot_error)
 
bool compute_condition_number
 Compute and return to the user the Hessian condition number of k2k edges (default=false) More...
 
TCovarianceRecoveryPolicy cov_recovery
 Recover covariance? What method to use? (Default: crpLandmarksApprox) More...
 

Static Protected Member Functions

static void dumpVar_int (CStream &out, const char *varName, int v)
 Used to print variable info from dumpToTextStream with the macro LOADABLEOPTS_DUMP_VAR. More...
 
static void dumpVar_float (CStream &out, const char *varName, float v)
 
static void dumpVar_double (CStream &out, const char *varName, double v)
 
static void dumpVar_bool (CStream &out, const char *varName, bool v)
 
static void dumpVar_string (CStream &out, const char *varName, const std::string &v)
 

Constructor & Destructor Documentation

template<class KF2KF_POSE_TYPE , class LM_TYPE , class OBS_TYPE , class RBA_OPTIONS >
mrpt::srba::RbaEngine< KF2KF_POSE_TYPE, LM_TYPE, OBS_TYPE, RBA_OPTIONS >::TSRBAParameters::TSRBAParameters ( )

Definition at line 34 of file rba_problem_common.h.

Member Function Documentation

void mrpt::utils::CLoadableOptions::dumpToConsole ( ) const
inherited

Just like dumpToTextStream() but sending the text to the console (std::cout)

virtual void mrpt::utils::CLoadableOptions::dumpToTextStream ( CStream out) const
virtualinherited

This method should clearly display all the contents of the structure in textual form, sending it to a CStream.

The default implementation in this base class relies on saveToConfigFile() to generate a plain text representation of all the parameters.

Reimplemented in mrpt::slam::TSetOfMetricMapInitializers, mrpt::slam::COccupancyGridMap2D::TLikelihoodOptions, mrpt::vision::TMultiResDescOptions, mrpt::slam::COccupancyGridMap2D::TInsertionOptions, mrpt::vision::TMultiResDescMatchOptions, mrpt::vision::TMatchingOptions, mrpt::slam::CLandmarksMap::TLikelihoodOptions, mrpt::slam::CColouredPointsMap::TColourOptions, mrpt::slam::CPointsMap::TLikelihoodOptions, mrpt::slam::CLandmarksMap::TInsertionOptions, mrpt::vision::TStereoSystemParams, mrpt::slam::CPointsMap::TInsertionOptions, mrpt::slam::CBeaconMap::TInsertionOptions, mrpt::slam::COctoMapBase< OCTREE, OCTREE_NODE >::TLikelihoodOptions, mrpt::slam::CRangeBearingKFSLAM::TOptions, mrpt::slam::CBeaconMap::TLikelihoodOptions, mrpt::slam::CMultiMetricMapPDF::TPredictionParams, mrpt::slam::CHeightGridMap2D::TInsertionOptions, mrpt::slam::CRangeBearingKFSLAM2D::TOptions, mrpt::slam::CMultiMetricMap::TOptions, mrpt::slam::CReflectivityGridMap2D::TInsertionOptions, mrpt::bayes::CParticleFilter::TParticleFilterOptions, mrpt::slam::COctoMapBase< OCTREE, OCTREE_NODE >::TInsertionOptions, mrpt::slam::CGridMapAligner::TConfigParams, mrpt::slam::CMetricMapBuilderRBPF::TConstructionOptions, mrpt::slam::CGasConcentrationGridMap2D::TInsertionOptions, mrpt::slam::CWirelessPowerGridMap2D::TInsertionOptions, mrpt::slam::CICP::TConfigParams, mrpt::slam::CIncrementalMapPartitioner::TOptions, mrpt::slam::CMetricMapBuilderICP::TConfigParams, and mrpt::slam::TKLDParams.

static void mrpt::utils::CLoadableOptions::dumpVar_bool ( CStream out,
const char *  varName,
bool  v 
)
staticprotectedinherited
static void mrpt::utils::CLoadableOptions::dumpVar_double ( CStream out,
const char *  varName,
double  v 
)
staticprotectedinherited
static void mrpt::utils::CLoadableOptions::dumpVar_float ( CStream out,
const char *  varName,
float  v 
)
staticprotectedinherited
static void mrpt::utils::CLoadableOptions::dumpVar_int ( CStream out,
const char *  varName,
int  v 
)
staticprotectedinherited

Used to print variable info from dumpToTextStream with the macro LOADABLEOPTS_DUMP_VAR.

static void mrpt::utils::CLoadableOptions::dumpVar_string ( CStream out,
const char *  varName,
const std::string &  v 
)
staticprotectedinherited
template<class KF2KF_POSE_TYPE , class LM_TYPE , class OBS_TYPE , class RBA_OPTIONS >
void mrpt::srba::RbaEngine< KF2KF_POSE_TYPE, LM_TYPE, OBS_TYPE, RBA_OPTIONS >::TSRBAParameters::loadFromConfigFile ( const mrpt::utils::CConfigFileBase source,
const std::string &  section 
)
virtual
void mrpt::utils::CLoadableOptions::loadFromConfigFileName ( const std::string &  config_file,
const std::string &  section 
)
inherited

Behaves like loadFromConfigFile, but you can pass directly a file name and a temporary CConfigFile object will be created automatically to load the file.

See also
loadFromConfigFile
template<class KF2KF_POSE_TYPE , class LM_TYPE , class OBS_TYPE , class RBA_OPTIONS >
void mrpt::srba::RbaEngine< KF2KF_POSE_TYPE, LM_TYPE, OBS_TYPE, RBA_OPTIONS >::TSRBAParameters::saveToConfigFile ( mrpt::utils::CConfigFileBase out,
const std::string &  section 
) const
virtual
void mrpt::utils::CLoadableOptions::saveToConfigFileName ( const std::string &  config_file,
const std::string &  section 
) const
inherited

Behaves like saveToConfigFile, but you can pass directly a file name and a temporary CConfigFile object will be created automatically to save the file.

See also
saveToConfigFile, loadFromConfigFileName

Member Data Documentation

template<class KF2KF_POSE_TYPE , class LM_TYPE , class OBS_TYPE , class RBA_OPTIONS = RBA_OPTIONS_DEFAULT>
bool mrpt::srba::RbaEngine< KF2KF_POSE_TYPE, LM_TYPE, OBS_TYPE, RBA_OPTIONS >::TSRBAParameters::compute_condition_number

Compute and return to the user the Hessian condition number of k2k edges (default=false)

Definition at line 409 of file RbaEngine.h.

template<class KF2KF_POSE_TYPE , class LM_TYPE , class OBS_TYPE , class RBA_OPTIONS = RBA_OPTIONS_DEFAULT>
TCovarianceRecoveryPolicy mrpt::srba::RbaEngine< KF2KF_POSE_TYPE, LM_TYPE, OBS_TYPE, RBA_OPTIONS >::TSRBAParameters::cov_recovery

Recover covariance? What method to use? (Default: crpLandmarksApprox)

Definition at line 411 of file RbaEngine.h.

template<class KF2KF_POSE_TYPE , class LM_TYPE , class OBS_TYPE , class RBA_OPTIONS = RBA_OPTIONS_DEFAULT>
TEdgeCreationPolicy mrpt::srba::RbaEngine< KF2KF_POSE_TYPE, LM_TYPE, OBS_TYPE, RBA_OPTIONS >::TSRBAParameters::edge_creation_policy

Parameters for determine_kf2kf_edges_to_create(); custom user-defined policies can be also defined (see tutorials)

Definition at line 384 of file RbaEngine.h.

template<class KF2KF_POSE_TYPE , class LM_TYPE , class OBS_TYPE , class RBA_OPTIONS = RBA_OPTIONS_DEFAULT>
void(* mrpt::srba::RbaEngine< KF2KF_POSE_TYPE, LM_TYPE, OBS_TYPE, RBA_OPTIONS >::TSRBAParameters::feedback_user_iteration)(unsigned int iter, const double total_sq_err, const double mean_sqroot_error)

Definition at line 408 of file RbaEngine.h.

template<class KF2KF_POSE_TYPE , class LM_TYPE , class OBS_TYPE , class RBA_OPTIONS = RBA_OPTIONS_DEFAULT>
double mrpt::srba::RbaEngine< KF2KF_POSE_TYPE, LM_TYPE, OBS_TYPE, RBA_OPTIONS >::TSRBAParameters::kernel_param

Definition at line 401 of file RbaEngine.h.

template<class KF2KF_POSE_TYPE , class LM_TYPE , class OBS_TYPE , class RBA_OPTIONS = RBA_OPTIONS_DEFAULT>
double mrpt::srba::RbaEngine< KF2KF_POSE_TYPE, LM_TYPE, OBS_TYPE, RBA_OPTIONS >::TSRBAParameters::max_error_per_obs_to_stop

default: 1e-9

Definition at line 403 of file RbaEngine.h.

template<class KF2KF_POSE_TYPE , class LM_TYPE , class OBS_TYPE , class RBA_OPTIONS = RBA_OPTIONS_DEFAULT>
size_t mrpt::srba::RbaEngine< KF2KF_POSE_TYPE, LM_TYPE, OBS_TYPE, RBA_OPTIONS >::TSRBAParameters::max_iters

Definition at line 402 of file RbaEngine.h.

template<class KF2KF_POSE_TYPE , class LM_TYPE , class OBS_TYPE , class RBA_OPTIONS = RBA_OPTIONS_DEFAULT>
double mrpt::srba::RbaEngine< KF2KF_POSE_TYPE, LM_TYPE, OBS_TYPE, RBA_OPTIONS >::TSRBAParameters::max_lambda

default: 1e20

Definition at line 405 of file RbaEngine.h.

template<class KF2KF_POSE_TYPE , class LM_TYPE , class OBS_TYPE , class RBA_OPTIONS = RBA_OPTIONS_DEFAULT>
topo_dist_t mrpt::srba::RbaEngine< KF2KF_POSE_TYPE, LM_TYPE, OBS_TYPE, RBA_OPTIONS >::TSRBAParameters::max_optimize_depth

The maximum topological distance of keyframes to be optimized around the most recent keyframe.

Definition at line 390 of file RbaEngine.h.

template<class KF2KF_POSE_TYPE , class LM_TYPE , class OBS_TYPE , class RBA_OPTIONS = RBA_OPTIONS_DEFAULT>
double mrpt::srba::RbaEngine< KF2KF_POSE_TYPE, LM_TYPE, OBS_TYPE, RBA_OPTIONS >::TSRBAParameters::max_rho

default: 1.0

Definition at line 404 of file RbaEngine.h.

template<class KF2KF_POSE_TYPE , class LM_TYPE , class OBS_TYPE , class RBA_OPTIONS = RBA_OPTIONS_DEFAULT>
topo_dist_t mrpt::srba::RbaEngine< KF2KF_POSE_TYPE, LM_TYPE, OBS_TYPE, RBA_OPTIONS >::TSRBAParameters::max_tree_depth

Maximum depth for maintained spanning trees.

Definition at line 387 of file RbaEngine.h.

template<class KF2KF_POSE_TYPE , class LM_TYPE , class OBS_TYPE , class RBA_OPTIONS = RBA_OPTIONS_DEFAULT>
double mrpt::srba::RbaEngine< KF2KF_POSE_TYPE, LM_TYPE, OBS_TYPE, RBA_OPTIONS >::TSRBAParameters::min_error_reduction_ratio_to_relinearize

default 0.01

Definition at line 406 of file RbaEngine.h.

template<class KF2KF_POSE_TYPE , class LM_TYPE , class OBS_TYPE , class RBA_OPTIONS = RBA_OPTIONS_DEFAULT>
size_t mrpt::srba::RbaEngine< KF2KF_POSE_TYPE, LM_TYPE, OBS_TYPE, RBA_OPTIONS >::TSRBAParameters::min_obs_to_loop_closure

Default:6, reduce to 1 for relative graph-slam.

Definition at line 393 of file RbaEngine.h.

template<class KF2KF_POSE_TYPE , class LM_TYPE , class OBS_TYPE , class RBA_OPTIONS = RBA_OPTIONS_DEFAULT>
bool mrpt::srba::RbaEngine< KF2KF_POSE_TYPE, LM_TYPE, OBS_TYPE, RBA_OPTIONS >::TSRBAParameters::numeric_jacobians

(Default:false) Use a numeric approximation of the Jacobians (very slow!) instead of analytical ones.

Definition at line 407 of file RbaEngine.h.

template<class KF2KF_POSE_TYPE , class LM_TYPE , class OBS_TYPE , class RBA_OPTIONS = RBA_OPTIONS_DEFAULT>
bool mrpt::srba::RbaEngine< KF2KF_POSE_TYPE, LM_TYPE, OBS_TYPE, RBA_OPTIONS >::TSRBAParameters::optimize_new_edges_alone

(Default:true) Before running a whole "local area" optimization, try to optimize new edges one by one to have a better starting point.

Definition at line 398 of file RbaEngine.h.

template<class KF2KF_POSE_TYPE , class LM_TYPE , class OBS_TYPE , class RBA_OPTIONS = RBA_OPTIONS_DEFAULT>
size_t mrpt::srba::RbaEngine< KF2KF_POSE_TYPE, LM_TYPE, OBS_TYPE, RBA_OPTIONS >::TSRBAParameters::submap_size

Definition at line 392 of file RbaEngine.h.

template<class KF2KF_POSE_TYPE , class LM_TYPE , class OBS_TYPE , class RBA_OPTIONS = RBA_OPTIONS_DEFAULT>
bool mrpt::srba::RbaEngine< KF2KF_POSE_TYPE, LM_TYPE, OBS_TYPE, RBA_OPTIONS >::TSRBAParameters::use_robust_kernel

Definition at line 399 of file RbaEngine.h.

template<class KF2KF_POSE_TYPE , class LM_TYPE , class OBS_TYPE , class RBA_OPTIONS = RBA_OPTIONS_DEFAULT>
bool mrpt::srba::RbaEngine< KF2KF_POSE_TYPE, LM_TYPE, OBS_TYPE, RBA_OPTIONS >::TSRBAParameters::use_robust_kernel_stage1

Definition at line 400 of file RbaEngine.h.




Page generated by Doxygen 1.8.8 for MRPT 1.2.2 SVN:Unversioned directory at Tue Oct 14 02:14:08 UTC 2014