Point Cloud Library (PCL)
1.9.1
tracking
include
pcl
tracking
impl
tracker.hpp
1
#ifndef PCL_TRACKING_IMPL_TRACKER_H_
2
#define PCL_TRACKING_IMPL_TRACKER_H_
3
4
#include <pcl/common/eigen.h>
5
#include <ctime>
6
#include <pcl/tracking/boost.h>
7
#include <pcl/tracking/tracker.h>
8
9
template
<
typename
Po
int
InT,
typename
StateT>
bool
10
pcl::tracking::Tracker<PointInT, StateT>::initCompute
()
11
{
12
if
(!
PCLBase<PointInT>::initCompute
())
13
{
14
PCL_ERROR (
"[pcl::%s::initCompute] PCLBase::Init failed.\n"
, getClassName ().c_str ());
15
return
(
false
);
16
}
17
18
// If the dataset is empty, just return
19
if
(input_->points.empty ())
20
{
21
PCL_ERROR (
"[pcl::%s::compute] input_ is empty!\n"
, getClassName ().c_str ());
22
// Cleanup
23
deinitCompute ();
24
return
(
false
);
25
}
26
27
return
(
true
);
28
}
29
30
template
<
typename
Po
int
InT,
typename
StateT>
void
31
pcl::tracking::Tracker<PointInT, StateT>::compute
()
32
{
33
if
(!initCompute ())
34
return
;
35
36
computeTracking ();
37
deinitCompute ();
38
}
39
40
#endif
pcl::PCLBase
PCL base class.
Definition:
pcl_base.h:68
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:31