tracker.hpp
Go to the documentation of this file.
00001 #ifndef PCL_TRACKING_IMPL_TRACKER_H_
00002 #define PCL_TRACKING_IMPL_TRACKER_H_
00003 
00004 #include <boost/random.hpp>
00005 #include <pcl/common/eigen.h>
00006 #include <ctime>
00007 
00008 template <typename PointInT, typename StateT> bool
00009 pcl::tracking::Tracker<PointInT, StateT>::initCompute ()
00010 {
00011   if (!PCLBase<PointInT>::initCompute ())
00012   {
00013     PCL_ERROR ("[pcl::%s::initCompute] PCLBase::Init failed.\n", getClassName ().c_str ());
00014     return (false);
00015   }
00016 
00017   // If the dataset is empty, just return
00018   if (input_->points.empty ())
00019   {
00020     PCL_ERROR ("[pcl::%s::compute] input_ is empty!\n", getClassName ().c_str ());
00021     // Cleanup
00022     deinitCompute ();
00023     return (false);
00024   }
00025 
00026   return (true);
00027 }
00028 
00029 
00030 template <typename PointInT, typename StateT> void
00031 pcl::tracking::Tracker<PointInT, StateT>::compute ()
00032 {
00033   if (!initCompute ())
00034     return;
00035   
00036   computeTracking ();
00037   deinitCompute ();
00038 }
00039 
00040 #endif


pcl
Author(s): Open Perception
autogenerated on Mon Oct 6 2014 03:18:50