tracker.hpp
#ifndef PCL_TRACKING_IMPL_TRACKER_H_
#define PCL_TRACKING_IMPL_TRACKER_H_
#include <pcl/common/eigen.h>
#include <ctime>
#include <pcl/tracking/tracker.h>
template <typename PointInT, typename StateT> bool
pcl::tracking::Tracker<PointInT, StateT>::initCompute ()
{
if (!PCLBase<PointInT>::initCompute ())
{
PCL_ERROR ("[pcl::%s::initCompute] PCLBase::Init failed.\n", getClassName ().c_str ());
return (false);
}
// If the dataset is empty, just return
if (input_->points.empty ())
{
PCL_ERROR ("[pcl::%s::compute] input_ is empty!\n", getClassName ().c_str ());
// Cleanup
deinitCompute ();
return (false);
}
return (true);
}
template <typename PointInT, typename StateT> void
pcl::tracking::Tracker<PointInT, StateT>::compute ()
{
if (!initCompute ())
return;
computeTracking ();
deinitCompute ();
}
#endif
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:9
pcl::tracking::Tracker::compute
void compute()
Base method for tracking for all points given in <setInputCloud (), setIndices ()> using the indices ...
Definition: tracker.hpp:30