#include <pcl/common/time.h>
#include <pcl/io/openni_grabber.h>
#include <pcl/visualization/pcl_visualizer.h>
#include <pcl/visualization/boost.h>
#include <pcl/visualization/image_viewer.h>
#include <pcl/console/print.h>
#include <pcl/console/parse.h>
#include <pcl/console/time.h>
Go to the source code of this file.
Classes | |
class | OpenNIViewer< PointType > |
Defines | |
#define | FPS_CALC(_WHAT_) |
#define | MEASURE_FUNCTION_TIME |
#define | SHOW_FPS 1 |
Functions | |
int | main (int argc, char **argv) |
void | printHelp (int, char **argv) |
Variables | |
boost::shared_ptr < pcl::visualization::PCLVisualizer > | cld |
boost::shared_ptr < pcl::visualization::ImageViewer > | img |
#define FPS_CALC | ( | _WHAT_ | ) |
do \ { \ static unsigned count = 0;\ static double last = pcl::getTime ();\ double now = pcl::getTime (); \ ++count; \ if (now - last >= 1.0) \ { \ std::cout << "Average framerate("<< _WHAT_ << "): " << double(count)/double(now - last) << " Hz" << std::endl; \ count = 0; \ last = now; \ } \ }while(false)
Definition at line 50 of file openni_viewer.cpp.
#define MEASURE_FUNCTION_TIME |
Definition at line 38 of file openni_viewer.cpp.
#define SHOW_FPS 1 |
Definition at line 48 of file openni_viewer.cpp.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 279 of file openni_viewer.cpp.
void printHelp | ( | int | , |
char ** | argv | ||
) |
Definition at line 72 of file openni_viewer.cpp.
boost::shared_ptr<pcl::visualization::PCLVisualizer> cld |
Definition at line 274 of file openni_viewer.cpp.
boost::shared_ptr<pcl::visualization::ImageViewer> img |
Definition at line 275 of file openni_viewer.cpp.