DefaultHypothesisUpdater.cpp
Go to the documentation of this file.
1 
21 
22 namespace next_best_view {
25 
26  unsigned int DefaultHypothesisUpdater::update(const ObjectTypeSetPtr &objectTypeSetPtr, const ViewportPoint &viewportPoint) {
27  unsigned int count = 0;
28 
29  BOOST_FOREACH(int index, *viewportPoint.child_indices) {
30  ObjectPoint &objectPoint = viewportPoint.child_point_cloud->at(index);
31  if (objectTypeSetPtr->find(objectPoint.type) == objectTypeSetPtr->end()) {
32  continue;
33  }
34  count += objectPoint.active_normal_vectors->size();
35 
36  objectPoint.active_normal_vectors->clear();
37  //objectPoint.normal_vectors = SimpleVector3CollectionPtr(new SimpleVector3Collection());
38  }
39 
40  return count;
41  }
42 }
this namespace contains all generally usable classes.
unsigned int update(const ObjectTypeSetPtr &objectTypeSetPtr, const ViewportPoint &viewportPoint)
Updates the point cloud under the assumption that the given viewport was chosen.


asr_next_best_view
Author(s): Aumann Florian, Borella Jocelyn, Heller Florian, Meißner Pascal, Schleicher Ralf, Stöckle Patrick, Stroh Daniel, Trautmann Jeremias, Walter Milena, Wittenbeck Valerij
autogenerated on Thu Jan 9 2020 07:20:18