Permalink
Browse files

* fixed bug #812: PCDGrabberBase::isRunning can't tell if the playbac…

…k has stopped (thanks Hannu!)

git-svn-id: svn+ssh://svn.pointclouds.org/pcl/trunk@7097 a9d63959-f2ad-4865-b262-bf0e56cfafb6
  • Loading branch information...
rbrusu committed Sep 9, 2012
1 parent da5b94c commit e03532a23362e097fa286e4dda64d3425c6bc8bf
Showing with 3 additions and 3 deletions.
  1. +2 −2 io/include/pcl/io/pcd_grabber.h
  2. +1 −1 io/src/pcd_grabber.cpp
@@ -105,8 +105,8 @@ namespace pcl
virtual void
trigger ();
/** \brief whether the grabber is started (publishing) or not.
* \return true only if publishing.
/** \brief Indicates whether the grabber is streaming or not.
* \return true if grabber is started and hasn't run out of PCD files.
*/
virtual bool
isRunning () const;
@@ -318,7 +318,7 @@ pcl::PCDGrabberBase::trigger ()
bool
pcl::PCDGrabberBase::isRunning () const
{
return (impl_->running_);
return (impl_->running_ && (impl_->pcd_iterator_ != impl_->pcd_files_.end()));
}
///////////////////////////////////////////////////////////////////////////////////////////

1 comment on commit e03532a

@dancek

This comment has been minimized.

dancek commented on e03532a Oct 27, 2016

For future reference, I'd like to just note that I sent this patch. :)

Please sign in to comment.