Defines | Functions | Variables
openni_scene.cpp File Reference
#include <ros/ros.h>
#include <ros/package.h>
#include <XnOpenNI.h>
#include <XnCppWrapper.h>
#include <sensor_msgs/Image.h>
#include <sensor_msgs/image_encodings.h>
#include <sensor_msgs/PointCloud2.h>
#include <pcl_ros/point_cloud.h>
#include <pcl/point_types.h>
#include <pcl/PointIndices.h>
Include dependency graph for openni_scene.cpp:

Go to the source code of this file.

Defines

#define AVG(a, b)   (((int)(a) + (int)(b)) >> 1)
#define AVG3(a, b, c)   (((int)(a) + (int)(b) + (int)(c)) / 3)
#define AVG4(a, b, c, d)   (((int)(a) + (int)(b) + (int)(c) + (int)(d)) >> 2)
#define CHECK_RC(nRetVal, what)
#define MAX(a, b)   ((a)>(b)?(a):(b))
#define max(a, b)   (((a)<(b))?(b):(a))

Functions

void createScenePointCloud (const xn::SceneMetaData &smd)
int main (int argc, char **argv)

Variables

xn::Context g_Context
xn::SceneAnalyzer g_SceneAnalyzer
std::vector< std::vector< int > > nIndices
unsigned int nLabel = 0
std::vector< ros::Publisherpub_index

Define Documentation

#define AVG (   a,
 
)    (((int)(a) + (int)(b)) >> 1)

Definition at line 24 of file openni_scene.cpp.

#define AVG3 (   a,
  b,
  c 
)    (((int)(a) + (int)(b) + (int)(c)) / 3)

Definition at line 25 of file openni_scene.cpp.

#define AVG4 (   a,
  b,
  c,
  d 
)    (((int)(a) + (int)(b) + (int)(c) + (int)(d)) >> 2)

Definition at line 26 of file openni_scene.cpp.

#define CHECK_RC (   nRetVal,
  what 
)
Value:
if (nRetVal != XN_STATUS_OK){                                         \
    printf ("%s failed: %s\n", what, xnGetStatusString (nRetVal));      \
    return nRetVal;                                                     \
  }

Definition at line 28 of file openni_scene.cpp.

#define MAX (   a,
 
)    ((a)>(b)?(a):(b))

Definition at line 23 of file openni_scene.cpp.

#define max (   a,
 
)    (((a)<(b))?(b):(a))

Function Documentation

void createScenePointCloud ( const xn::SceneMetaData &  smd)

Definition at line 38 of file openni_scene.cpp.

int main ( int  argc,
char **  argv 
)

Definition at line 58 of file openni_scene.cpp.


Variable Documentation

xn::Context g_Context

Definition at line 16 of file openni_scene.cpp.

xn::SceneAnalyzer g_SceneAnalyzer

Definition at line 17 of file openni_scene.cpp.

Definition at line 35 of file openni_scene.cpp.

unsigned int nLabel = 0

Definition at line 34 of file openni_scene.cpp.

Definition at line 20 of file openni_scene.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends Defines


openni_scene
Author(s): Kei Okada, Youhei Kakiuchi, Tim Field
autogenerated on Sat Mar 23 2013 21:28:26