Classes | Defines | Functions | Variables
openni_viewer.cpp File Reference
#include <boost/thread/thread.hpp>
#include <pcl/common/time.h>
#include <pcl/io/openni_grabber.h>
#include <pcl/visualization/point_cloud_handlers.h>
#include <pcl/visualization/pcl_visualizer.h>
#include <pcl/visualization/image_viewer.h>
#include <pcl/console/print.h>
#include <pcl/console/parse.h>
#include <pcl/console/time.h>
Include dependency graph for openni_viewer.cpp:

Go to the source code of this file.

Classes

struct  EventHelper

Defines

#define FPS_CALC(_WHAT_)
#define MEASURE_FUNCTION_TIME
#define SHOW_FPS   1

Functions

void keyboard_callback (const pcl::visualization::KeyboardEvent &event, void *cookie)
int main (int argc, char **argv)
void mouse_callback (const pcl::visualization::MouseEvent &mouse_event, void *cookie)
void printHelp (int argc, char **argv)

Variables

boost::shared_ptr
< pcl::visualization::PCLVisualizer
cld
boost::mutex cld_mutex
pcl::PointCloud
< pcl::PointXYZRGBA >
::ConstPtr 
g_cloud
boost::shared_ptr
< openni_wrapper::Image > 
g_image
boost::shared_ptr
< pcl::visualization::ImageViewer
img
boost::mutex img_mutex

Define Documentation

#define FPS_CALC (   _WHAT_)
Value:
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 51 of file openni_viewer.cpp.

Definition at line 39 of file openni_viewer.cpp.

#define SHOW_FPS   1

Definition at line 49 of file openni_viewer.cpp.


Function Documentation

void keyboard_callback ( const pcl::visualization::KeyboardEvent event,
void *  cookie 
)

Definition at line 120 of file openni_viewer.cpp.

int main ( int  argc,
char **  argv 
)

Definition at line 146 of file openni_viewer.cpp.

void mouse_callback ( const pcl::visualization::MouseEvent mouse_event,
void *  cookie 
)

Definition at line 135 of file openni_viewer.cpp.

void printHelp ( int  argc,
char **  argv 
)

Definition at line 77 of file openni_viewer.cpp.


Variable Documentation

Definition at line 91 of file openni_viewer.cpp.

boost::mutex cld_mutex

Definition at line 72 of file openni_viewer.cpp.

Definition at line 73 of file openni_viewer.cpp.

boost::shared_ptr<openni_wrapper::Image> g_image

Definition at line 74 of file openni_viewer.cpp.

Definition at line 93 of file openni_viewer.cpp.

boost::mutex img_mutex

Definition at line 72 of file openni_viewer.cpp.



pcl
Author(s): Open Perception
autogenerated on Mon Oct 6 2014 03:19:13