#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>
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::Publisher > | pub_index |
#define AVG | ( | a, | |
b | |||
) | (((int)(a) + (int)(b)) >> 1) |
Definition at line 24 of file openni_scene.cpp.
Definition at line 25 of file openni_scene.cpp.
Definition at line 26 of file openni_scene.cpp.
#define CHECK_RC | ( | nRetVal, | |
what | |||
) |
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, | |
b | |||
) | ((a)>(b)?(a):(b)) |
Definition at line 23 of file openni_scene.cpp.
#define max | ( | a, | |
b | |||
) | (((a)<(b))?(b):(a)) |
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.
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.
std::vector< std::vector<int > > nIndices |
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.