Point Cloud Library (PCL)  1.9.1-dev
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/tracker.h>
7 
8 template <typename PointInT, typename StateT> bool
10 {
12  {
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  {
20  PCL_ERROR ("[pcl::%s::compute] input_ is empty!\n", getClassName ().c_str ());
21  // Cleanup
22  deinitCompute ();
23  return (false);
24  }
25 
26  return (true);
27 }
28 
29 template <typename PointInT, typename StateT> void
31 {
32  if (!initCompute ())
33  return;
34 
35  computeTracking ();
36  deinitCompute ();
37 }
38 
39 #endif
virtual bool initCompute()
This method should get called before starting the actual computation.
Definition: tracker.hpp:9
PCL base class.
Definition: pcl_base.h:69
void compute()
Base method for tracking for all points given in <setInputCloud (), setIndices ()> using the indices ...
Definition: tracker.hpp:30