Main Page
Namespaces
Classes
Files
File List
File Members
src
hypothesis_updater
impl
DefaultHypothesisUpdater.cpp
Go to the documentation of this file.
1
20
#include "
next_best_view/hypothesis_updater/impl/DefaultHypothesisUpdater.hpp
"
21
22
namespace
next_best_view
{
23
DefaultHypothesisUpdater::DefaultHypothesisUpdater
() { }
24
DefaultHypothesisUpdater::~DefaultHypothesisUpdater
() { }
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
}
next_best_view::DefaultViewportPoint
DefaultViewportPoint.
Definition:
DefaultViewportPoint.hpp:60
next_best_view::DefaultHypothesisUpdater::DefaultHypothesisUpdater
DefaultHypothesisUpdater()
Definition:
DefaultHypothesisUpdater.cpp:23
next_best_view::RealObjectPoint::type
std::string type
Definition:
RealObjectPoint.hpp:69
boost::shared_ptr< ObjectTypeSet >
next_best_view::DefaultViewportPoint::child_point_cloud
ObjectPointCloudPtr child_point_cloud
Definition:
DefaultViewportPoint.hpp:76
next_best_view::DefaultViewportPoint::child_indices
IndicesPtr child_indices
Definition:
DefaultViewportPoint.hpp:80
next_best_view
this namespace contains all generally usable classes.
Definition:
CameraModelFilter.hpp:26
next_best_view::DefaultHypothesisUpdater::~DefaultHypothesisUpdater
virtual ~DefaultHypothesisUpdater()
Definition:
DefaultHypothesisUpdater.cpp:24
DefaultHypothesisUpdater.hpp
next_best_view::DefaultHypothesisUpdater::update
unsigned int update(const ObjectTypeSetPtr &objectTypeSetPtr, const ViewportPoint &viewportPoint)
Updates the point cloud under the assumption that the given viewport was chosen.
Definition:
DefaultHypothesisUpdater.cpp:26
next_best_view::RealObjectPoint
RealObjectPoint.
Definition:
RealObjectPoint.hpp:56
next_best_view::RealObjectPoint::active_normal_vectors
IndicesPtr active_normal_vectors
Definition:
RealObjectPoint.hpp:73
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