41 throw std::invalid_argument(
"Unable to procees loading. No description for scene specified.");
45 throw std::invalid_argument(
"Unable to procees loading. No description for scene '" +
mIdentifier->mDescription +
"' spedified.");
49 throw std::invalid_argument(
"Unable to procees loading. The a priori probability of scene '" +
mIdentifier->mDescription +
"' is invalid (value: " + boost::lexical_cast<std::string>(
mIdentifier->mPriori) +
").");
52 if(!std::strcmp(
mIdentifier->mType.c_str(),
"ocm")) {
57 }
else if(!std::strcmp(
mIdentifier->mType.c_str(),
"background")) {
63 throw std::invalid_argument(
"Unable to procees loading. Can't create scene content of the unknown type '" +
mIdentifier->mType +
"'.");
67 mContent->initializeInferenceAlgorithms(pAlgorithm);
71 std::string runtimeLogPath;
73 if(mNodeHandle.
getParam(
"runtime_log_path", runtimeLogPath))
112 result =
mContent->getSceneProbability();
void load(boost::property_tree::ptree &pPt, std::string pAlgorithm)
std::ofstream mRuntimeFile
boost::shared_ptr< SceneIdentifier > mIdentifier
void update(std::vector< ISM::Object > pEvidenceList)
boost::shared_ptr< Visualization::ProbabilisticSceneVisualization > mVisualizer
void initializeVisualizer(boost::shared_ptr< Visualization::ProbabilisticSceneModelVisualization > mSuperior)
void calculateSceneProbaility()
boost::shared_ptr< SceneContent > mContent
void setSceneIdentifier(boost::shared_ptr< SceneIdentifier > pIdentifier)
#define ROS_INFO_STREAM(args)
bool getParam(const std::string &key, std::string &s) const
boost::shared_ptr< SceneIdentifier > getSceneIdentifier()