23 : mForegroundSceneModel(pForegroundSceneModel)
24 , mWorkspaceVolume(pWorkspaceVolume)
25 , mStaticBreakRatio(pStaticBreakRatio)
26 , mTogetherRatio(pTogetherRatio)
27 , mMaxAngleDeviation(pMaxAngleDeviation)
38 learner->initializeVisualizer(mSuperior);
49 bool hasBeenAssigned =
false;
52 hasBeenAssigned |= learner->isExampleForScene(pExample);
56 learner->addExampleToScene(pExample);
70 throw std::invalid_argument(
"Scene model learner can not instanciate a model of the unknown type '" +
mForegroundSceneModel +
"'.");
77 ROS_INFO(
"Scene model learner: Generating scene model.");
95 learner->setPriori(priori);
101 ROS_INFO_STREAM(
"Scene model learner: Saving scene model to file: " << pPathToFile <<
".");
104 boost::property_tree::ptree pt;
114 write_xml(pPathToFile, pt);
std::string mForegroundSceneModel
void setVolumeOfWorkspace(double pValue)
void saveSceneModelToFile(std::string pPathToFile)
BackgroundSceneLearner mBackgroundSceneLearner
static const std::string OCM_SCENE_MODEL
double mMaxAngleDeviation
void addExampleToScene(const ISM::ObjectSetPtr pExample)
#define ROS_INFO_STREAM(args)
std::vector< boost::shared_ptr< ForegroundSceneLearner > > mSceneLearners
void initializeVisualizer(boost::shared_ptr< Visualization::ProbabilisticSceneModelVisualization > mSuperior)
void generateSceneModel()
void setPriori(double pPriori)
SceneModelLearner(std::string pForegroundSceneModel, double pWorkspaceVolume, double pStaticBreakRatio, double pTogetherRatio, double pMaxAngleDeviation)
void save(boost::property_tree::ptree &pPt)
void addExample(const ISM::ObjectSetPtr pExample)