Main MRPT website > C++ reference
MRPT logo
determine_kf2kf_edges_to_create.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-2015, 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 
10 #pragma once
11 
12 namespace mrpt { namespace srba {
13 
14 
15 /** Determines and creates the new kf2fk edges given the set of new observations: */
16 template <class KF2KF_POSE_TYPE,class LM_TYPE,class OBS_TYPE,class RBA_OPTIONS>
18  const TKeyFrameID new_kf_id,
19  const typename traits_t::new_kf_observations_t & obs,
20  std::vector<TNewEdgeInfo> &new_k2k_edge_ids )
21 {
22  new_k2k_edge_ids.clear();
23 
24  if (rba_state.keyframes.size()==1)
25  {
26  // If this is the first KF, there's no other one to which we can connect! -> Return an empty set of edges.
27  return;
28  }
29 
30  edge_creation_policy(new_kf_id,obs,new_k2k_edge_ids);
31 }
32 
33 } } // end namespaces
std::deque< new_kf_observation_t > new_kf_observations_t
A set of all the observations made from a new KF, as provided by the user.
Definition: srba_types.h:422
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
void determine_kf2kf_edges_to_create(const TKeyFrameID new_kf_id, const typename traits_t::new_kf_observations_t &obs, std::vector< TNewEdgeInfo > &new_k2k_edge_ids)
This method will call edge_creation_policy(), which has predefined algorithms but could be re-defined...
uint64_t TKeyFrameID
Numeric IDs for key-frames (KFs)
Definition: srba_types.h:31



Page generated by Doxygen 1.8.9.1 for MRPT 1.3.0 SVN: at Sun Sep 13 03:55:12 UTC 2015