Point Cloud Library (PCL)
1.11.1-dev
pcl
tracking
impl
tracker.hpp
1
#ifndef PCL_TRACKING_IMPL_TRACKER_H_
2
#define PCL_TRACKING_IMPL_TRACKER_H_
3
4
#include <pcl/tracking/tracker.h>
5
6
namespace
pcl
{
7
namespace
tracking {
8
template
<
typename
Po
int
InT,
typename
StateT>
9
bool
10
Tracker<PointInT, StateT>::initCompute
()
11
{
12
if
(!
PCLBase<PointInT>::initCompute
()) {
13
PCL_ERROR(
"[pcl::%s::initCompute] PCLBase::Init failed.\n"
, getClassName().c_str());
14
return
(
false
);
15
}
16
17
// If the dataset is empty, just return
18
if
(input_->points.empty()) {
19
PCL_ERROR(
"[pcl::%s::compute] input_ is empty!\n"
, getClassName().c_str());
20
// Cleanup
21
deinitCompute();
22
return
(
false
);
23
}
24
25
return
(
true
);
26
}
27
28
template
<
typename
Po
int
InT,
typename
StateT>
29
void
30
Tracker<PointInT, StateT>::compute
()
31
{
32
if
(!initCompute())
33
return
;
34
35
computeTracking();
36
deinitCompute();
37
}
38
}
// namespace tracking
39
}
// namespace pcl
40
41
#endif
pcl
Definition:
convolution.h:46
pcl::PCLBase
PCL base class.
Definition:
pcl_base.h:69
pcl::tracking::Tracker::initCompute
virtual bool initCompute()
This method should get called before starting the actual computation.
Definition:
tracker.hpp:10
pcl::tracking::Tracker::compute
void compute()
Base method for tracking for all points given in <setInputCloud (), setIndices ()> using the indices ...
Definition:
tracker.hpp:30