25 mType = pRoot->mObjectSet->objects[0]->type;
51 unsigned int lastObservationOffset =
mObjectSet->objects.size() - 1;
56 child->initializeVisualizer(mSuperior,
this);
66 mVisualizer.reset(
new Visualization::ProbabilisticSecondarySceneObjectVisualization(
mType));
75 std::vector<Eigen::Vector3d> mRelativeSamples;
76 std::vector<Eigen::Vector3d> mAbsoluteSamples;
77 std::vector<Eigen::Vector3d> mParentSamples;
78 for(
unsigned int i = 0; i <
mObjectSet->objects.size(); i++)
90 childPose->convertPoseIntoFrame(parentPose, relativePoseToParent);
93 mAbsoluteSamples.push_back(childPose->point->eigen);
94 mParentSamples.push_back(parentPose->point->eigen);
95 mRelativeSamples.push_back(relativePoseToParent->point->eigen);
100 mVisualizer->setAbsoluteLearningSamples(mRelativeSamples, mAbsoluteSamples, mParentSamples);
104 child->initializeVisualizer(mSuperior,
this);
110 boost::property_tree::ptree subtree;
113 subtree.add(
"<xmlattr>.name",
mType);
124 child->saveShape(subtree);
127 pPt.add_child(
"child", subtree);
134 unsigned int result = 1;
137 result += child->getNumberOfNodes();
std::vector< boost::shared_ptr< OcmTree > > mChildren
void save(boost::property_tree::ptree &pPt, std::string pNode)
void initializeVisualizer(boost::shared_ptr< Visualization::ProbabilisticSecondarySceneObjectVisualization > mSuperior)
GaussianMixtureModel mGaussianMixtureModelPosition
OcmTree(const boost::shared_ptr< SceneModel::TreeNode > pRoot)
void saveShape(boost::property_tree::ptree &pPt)
GaussianMixtureModel mGaussianMixtureModelOrientation
#define ROS_INFO_STREAM(args)
void initializeVisualizer(boost::shared_ptr< Visualization::ProbabilisticPrimarySceneObjectVisualization > mSuperior)
unsigned int mReferenceToID
boost::shared_ptr< ISM::ObjectSet > mObjectSet
boost::shared_ptr< Visualization::ProbabilisticSecondarySceneObjectVisualization > mVisualizer
unsigned int getNumberOfNodes()