TopologyAdapter.h
Go to the documentation of this file.
1 
18 #pragma once
19 
20 #include <topology_creator/Topology.h>
21 #include <ISM/combinatorial_trainer/Topology.hpp>
22 #include <ISM/combinatorial_optimization/CostFunction.hpp>
23 
25 {
26 
31 {
32 private:
36  unsigned int mPSMTopologyIndex;
40  unsigned int mISMTopologyIndex;
44  std::vector<SceneModel::Relation> mRelations;
48  std::string mSceneId;
49 
50 public:
54  class CostFunction: public ISM::CostFunction<ISM::TopologyPtr> {
55  public:
61  double calculateCost(ISM::TopologyPtr instance);
62  };
63 
67  TopologyAdapter(std::vector<std::string> pObjectTypes, std::string pSceneId);
68 
73 
79  ISM::TopologyPtr psmToIsm(boost::shared_ptr<SceneModel::Topology> pPsmTopology);
80 
86  boost::shared_ptr<SceneModel::Topology> ismToPsm(ISM::TopologyPtr pIsmTopology);
87 };
88 
89 }
boost::shared_ptr< SceneModel::Topology > ismToPsm(ISM::TopologyPtr pIsmTopology)
ISM::TopologyPtr psmToIsm(boost::shared_ptr< SceneModel::Topology > pPsmTopology)
std::vector< SceneModel::Relation > mRelations
TopologyAdapter(std::vector< std::string > pObjectTypes, std::string pSceneId)


asr_psm
Author(s): Braun Kai, Gehrung Joachim, Heizmann Heinrich, Meißner Pascal
autogenerated on Fri Nov 15 2019 04:00:08