Main MRPT website > C++ reference for MRPT 1.9.9
graphslam/include/mrpt/graphslam/types.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2018, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 #pragma once
10 
12 #include <mrpt/poses/SE_traits.h>
14 #include <functional>
15 
16 namespace mrpt
17 {
18 /** SLAM methods related to graphs of pose constraints
19  * \sa mrpt::graphs::CNetworkOfPoses \ingroup mrpt_graphslam_grp
20  */
21 namespace graphslam
22 {
23 /** \addtogroup mrpt_graphslam_grp
24  * @{ */
25 
26 /** Auxiliary traits template for use among graph-slam problems to make life
27  * easier with these complicated, long data type names
28  * \tparam GRAPH_T This will typically be any
29  * mrpt::graphs::CNetworkOfPoses<...>
30  */
31 template <class GRAPH_T>
33 {
34  /** Typ: mrpt::graphs::CNetworkOfPoses<...> */
35  using graph_t = GRAPH_T;
37  using edge_t = typename graph_t::constraint_t;
38  using edge_poses_type = typename edge_t::type_value;
39  using SE_TYPE =
41  using matrix_VxV_t = typename SE_TYPE::matrix_VxV_t;
42  using Array_O = typename SE_TYPE::array_t; // An array of the correct size
43  // for an "observation" (i.e. a
44  // relative pose in an edge)
45  using TPairJacobs = std::pair<matrix_VxV_t, matrix_VxV_t>;
48 
49  /** Auxiliary struct used in graph-slam implementation: It holds the
50  * relevant information for each of the constraints being taking into
51  * account. */
53  {
55  // Data:
57  const typename gst::graph_t::constraint_t::type_value* edge_mean;
58  typename gst::graph_t::constraint_t::type_value *P1, *P2;
59  };
60 
61  using TFunctorFeedback = std::function<void(
62  const GRAPH_T& graph, const size_t iter, const size_t max_iter,
63  const double cur_sq_error)>;
64 };
65 
66 /** Output information for mrpt::graphslam::optimize_graph_spa_levmarq() */
68 {
69  /** The number of LM iterations executed. */
70  size_t num_iters;
71  /** The sum of all the squared errors for every constraint involved in the
72  * problem. */
74 };
75 
76 /** @} */ // end of grouping
77 
78 } // End of namespace
79 } // End of namespace
mrpt::graphslam::graphslam_traits::Array_O
typename SE_TYPE::array_t Array_O
Definition: graphslam/include/mrpt/graphslam/types.h:42
CNetworkOfPoses.h
const_iterator
const Scalar * const_iterator
Definition: eigen_plugins.h:27
mrpt::graphslam::graphslam_traits::edge_poses_type
typename edge_t::type_value edge_poses_type
Definition: graphslam/include/mrpt/graphslam/types.h:38
mrpt::graphslam::graphslam_traits::map_pairIDs_pairJacobs_t
mrpt::aligned_std_multimap< mrpt::graphs::TPairNodeIDs, TPairJacobs > map_pairIDs_pairJacobs_t
Definition: graphslam/include/mrpt/graphslam/types.h:47
mrpt::graphslam::TResultInfoSpaLevMarq
Output information for mrpt::graphslam::optimize_graph_spa_levmarq()
Definition: graphslam/include/mrpt/graphslam/types.h:67
mrpt::graphslam::graphslam_traits::observation_info_t::P2
gst::graph_t::constraint_t::type_value * P2
Definition: graphslam/include/mrpt/graphslam/types.h:58
mrpt::graphslam::graphslam_traits::observation_info_t
Auxiliary struct used in graph-slam implementation: It holds the relevant information for each of the...
Definition: graphslam/include/mrpt/graphslam/types.h:52
mrpt
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Definition: CKalmanFilterCapable.h:30
aligned_std_map.h
mrpt::graphslam::TResultInfoSpaLevMarq::num_iters
size_t num_iters
The number of LM iterations executed.
Definition: graphslam/include/mrpt/graphslam/types.h:70
mrpt::graphslam::graphslam_traits::matrix_VxV_t
typename SE_TYPE::matrix_VxV_t matrix_VxV_t
Definition: graphslam/include/mrpt/graphslam/types.h:41
mrpt::poses::SE_traits
A helper class for SE(2) and SE(3) geometry-related transformations, on-manifold optimization Jacobia...
Definition: SE_traits.h:29
mrpt::graphslam::graphslam_traits::edge_t
typename graph_t::constraint_t edge_t
Definition: graphslam/include/mrpt/graphslam/types.h:37
mrpt::graphslam::TResultInfoSpaLevMarq::final_total_sq_error
double final_total_sq_error
The sum of all the squared errors for every constraint involved in the problem.
Definition: graphslam/include/mrpt/graphslam/types.h:73
mrpt::graphslam::graphslam_traits::TFunctorFeedback
std::function< void(const GRAPH_T &graph, const size_t iter, const size_t max_iter, const double cur_sq_error)> TFunctorFeedback
Definition: graphslam/include/mrpt/graphslam/types.h:63
mrpt::aligned_std_multimap
std::multimap< KEY, VALUE, std::less< KEY >, mrpt::aligned_allocator_cpp11< std::pair< const KEY, VALUE > >> aligned_std_multimap
Definition: aligned_std_map.h:22
mrpt::graphslam::graphslam_traits::observation_info_t::edge_mean
const gst::graph_t::constraint_t::type_value * edge_mean
Definition: graphslam/include/mrpt/graphslam/types.h:57
SE_traits.h
mrpt::graphslam::graphslam_traits::graph_t
GRAPH_T graph_t
Typ: mrpt::graphs::CNetworkOfPoses<...>
Definition: graphslam/include/mrpt/graphslam/types.h:35
mrpt::graphslam::graphslam_traits::TPairJacobs
std::pair< matrix_VxV_t, matrix_VxV_t > TPairJacobs
Definition: graphslam/include/mrpt/graphslam/types.h:45
mrpt::graphslam::graphslam_traits
Auxiliary traits template for use among graph-slam problems to make life easier with these complicate...
Definition: graphslam/include/mrpt/graphslam/types.h:32
mrpt::graphslam::graphslam_traits::observation_info_t::P1
gst::graph_t::constraint_t::type_value * P1
Definition: graphslam/include/mrpt/graphslam/types.h:58
mrpt::graphslam::graphslam_traits::edge_const_iterator
typename graph_t::edges_map_t::const_iterator edge_const_iterator
Definition: graphslam/include/mrpt/graphslam/types.h:36
mrpt::graphslam::graphslam_traits::observation_info_t::edge
gst::edge_const_iterator edge
Definition: graphslam/include/mrpt/graphslam/types.h:56
void
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red



Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST