BackgroundSceneContent.cpp
Go to the documentation of this file.
1 
19 
21 
23  : SceneContent()
24  {
25  }
26 
28  {
29  }
30 
31  void BackgroundSceneContent::load(boost::property_tree::ptree& pPt)
32  {
34  }
35 
37  {
38  // Select the inference algorithm described by the parameter.
39  if(pAlgorithm.compare("powerset") == 0) {
41  } else if(pAlgorithm.compare("summarized") == 0) {
43  } else if(pAlgorithm.compare("multiplied") == 0) {
45  } else if(pAlgorithm.compare("maximum") == 0) {
47  } else {
48  throw std::invalid_argument("Unable to procees loading. The inference algorithm of type '" + pAlgorithm + "' is unknown to the scene of type 'background'.");
49  }
50  }
51 
53  {
54  // No need for visualization here!
55  }
56 
57  void BackgroundSceneContent::update(std::vector<ISM::Object> pEvidenceList, std::ofstream& pRuntimeLogger)
58  {
59  // Command the inference algorithm to execute the inference.
60  doInference(pEvidenceList, pRuntimeLogger);
61  }
62 
63 }
void doInference(std::vector< ISM::Object > pEvidenceList, std::ofstream &pRuntimeLogger)
void setInferenceAlgorithm(boost::shared_ptr< InferenceAlgorithm > pAlgorithm)
void initializeVisualizer(boost::shared_ptr< Visualization::ProbabilisticSceneVisualization > mSuperior)
void update(std::vector< ISM::Object > pEvidenceList, std::ofstream &pRuntimeLogger)
void loadInferenceAlgorithm(boost::property_tree::ptree &pPt)


asr_psm
Author(s): Braun Kai, Gehrung Joachim, Heizmann Heinrich, Meißner Pascal
autogenerated on Fri Nov 15 2019 03:57:54