Exemplo n.º 1
0
void pcl::PCDGrabberBase::PCDGrabberImpl::trigger ()
{
  if (valid_)
    grabber_.publish (next_cloud_,origin_,orientation_);

  // use remaining time, if there is time left!
  readAhead ();
}
Exemplo n.º 2
0
void 
pcl::StereoGrabberBase::StereoGrabberImpl::trigger ()
{
  // If the stereo image pair was successfully read and a cloud was produced, simply publish it
  if (valid_)
    grabber_.publish (next_cloud_, origin_, orientation_);

  // use remaining time, if there is time left!
  readAhead ();
}
	int readInt()
	{
	    readAhead(16);

	    int x = 0;
	    bool neg = false;
	    while (*stdinPos <'-') ++stdinPos;

	    if (*stdinPos == '-') {
	       ++stdinPos;
	       neg = true;
	    }

	    while (*stdinPos >= '0' && *stdinPos <= '9') {
	       x *= 10;
	       x += *stdinPos - '0';
	       ++stdinPos;
	    }


	    return neg ? -x : x;
	}