PSMTrainer.cpp
Go to the documentation of this file.
1 
18 #include "trainer/PSMTrainer.h"
19 
20 namespace SceneModel {
21 
22  PSMTrainer::PSMTrainer(const double pStaticBreakRatio, const double pTogetherRatio, const double pMaxAngleDeviation)
23  : AbstractTrainer()
24  {
25  // Initilaize a source that translates ISM::ObjectSets.
27  source = pbdSource;
28 
29  // Initialize the generator for building the tree using agglomerative clustering.
30  // The heuristic used here is searching for stable relativ poses.
32  boost::shared_ptr<AbstractHeuristic> heuristic(new DirectionRelationHeuristic(pStaticBreakRatio, pTogetherRatio, pMaxAngleDeviation));
33  gen->addHeuristic(heuristic);
34  generator = gen;
35  }
36 
38  {
39  }
40 
41 
42  void PSMTrainer::addSceneGraphMessages(std::vector<ISM::ObjectSetPtr> pMessages)
43  {
44  //BOOST_FOREACH(boost::shared_ptr<const ISM::ObjectSetPtr> pMessage, pMessages)
45  pbdSource->addSceneGraphMessage(pMessages);
46  }
47 
48 }
boost::shared_ptr< PbdSceneGraphSource > pbdSource
Definition: PSMTrainer.h:72
boost::shared_ptr< AbstractGraphGenerator > generator
PSMTrainer(const double pStaticBreakRatio, const double pTogetherRatio, const double pMaxAngleDeviation)
Definition: PSMTrainer.cpp:22
void addSceneGraphMessages(std::vector< ISM::ObjectSetPtr > pMessages)
Definition: PSMTrainer.cpp:42
boost::shared_ptr< AbstractSource > source


asr_relation_graph_generator
Author(s): Meißner Pascal
autogenerated on Fri Nov 15 2019 03:39:19