#include <ros/ros.h>
#include <ros/package.h>
#include <tf/transform_broadcaster.h>
#include <kdl/frames.hpp>
#include <XnOpenNI.h>
#include <XnCodecIDs.h>
#include <XnCppWrapper.h>
Go to the source code of this file.
Defines | |
#define | CHECK_RC(nRetVal, what) |
Functions | |
int | main (int argc, char **argv) |
void | publishTransform (XnUserID const &user, XnSkeletonJoint const &joint, string const &frame_id, string const &child_frame_id) |
void | publishTransforms (const std::string &frame_id) |
void XN_CALLBACK_TYPE | User_LostUser (xn::UserGenerator &generator, XnUserID nId, void *pCookie) |
void XN_CALLBACK_TYPE | User_NewUser (xn::UserGenerator &generator, XnUserID nId, void *pCookie) |
void XN_CALLBACK_TYPE | UserCalibration_CalibrationEnd (xn::SkeletonCapability &capability, XnUserID nId, XnBool bSuccess, void *pCookie) |
void XN_CALLBACK_TYPE | UserCalibration_CalibrationStart (xn::SkeletonCapability &capability, XnUserID nId, void *pCookie) |
void XN_CALLBACK_TYPE | UserPose_PoseDetected (xn::PoseDetectionCapability &capability, XnChar const *strPose, XnUserID nId, void *pCookie) |
Variables | |
XnBool | g_bNeedPose = FALSE |
xn::Context | g_Context |
xn::DepthGenerator | g_DepthGenerator |
XnChar | g_strPose [20] = "" |
xn::UserGenerator | g_UserGenerator |
#define CHECK_RC | ( | nRetVal, | |
what | |||
) |
if (nRetVal != XN_STATUS_OK) \ { \ ROS_ERROR("%s failed: %s", what, xnGetStatusString(nRetVal));\ return nRetVal; \ }
Definition at line 129 of file openni_tracker.cpp.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 136 of file openni_tracker.cpp.
void publishTransform | ( | XnUserID const & | user, |
XnSkeletonJoint const & | joint, | ||
string const & | frame_id, | ||
string const & | child_frame_id | ||
) |
Definition at line 58 of file openni_tracker.cpp.
void publishTransforms | ( | const std::string & | frame_id | ) |
Definition at line 96 of file openni_tracker.cpp.
void XN_CALLBACK_TYPE User_LostUser | ( | xn::UserGenerator & | generator, |
XnUserID | nId, | ||
void * | pCookie | ||
) |
Definition at line 30 of file openni_tracker.cpp.
void XN_CALLBACK_TYPE User_NewUser | ( | xn::UserGenerator & | generator, |
XnUserID | nId, | ||
void * | pCookie | ||
) |
Definition at line 21 of file openni_tracker.cpp.
void XN_CALLBACK_TYPE UserCalibration_CalibrationEnd | ( | xn::SkeletonCapability & | capability, |
XnUserID | nId, | ||
XnBool | bSuccess, | ||
void * | pCookie | ||
) |
Definition at line 38 of file openni_tracker.cpp.
void XN_CALLBACK_TYPE UserCalibration_CalibrationStart | ( | xn::SkeletonCapability & | capability, |
XnUserID | nId, | ||
void * | pCookie | ||
) |
Definition at line 34 of file openni_tracker.cpp.
void XN_CALLBACK_TYPE UserPose_PoseDetected | ( | xn::PoseDetectionCapability & | capability, |
XnChar const * | strPose, | ||
XnUserID | nId, | ||
void * | pCookie | ||
) |
Definition at line 52 of file openni_tracker.cpp.
XnBool g_bNeedPose = FALSE |
Definition at line 18 of file openni_tracker.cpp.
xn::Context g_Context |
Definition at line 14 of file openni_tracker.cpp.
xn::DepthGenerator g_DepthGenerator |
Definition at line 15 of file openni_tracker.cpp.
XnChar g_strPose[20] = "" |
Definition at line 19 of file openni_tracker.cpp.
xn::UserGenerator g_UserGenerator |
Definition at line 16 of file openni_tracker.cpp.