Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 20

Openni library doesn't read by KinectController.c

$
0
0
hi, i'm using ROS indigo and i want to connect with Kinect360. so, i hv followed the instruction in [here](https://github.com/ros-drivers/openni_tracker/issues/9) to install the Openni package,etc. i also ask the same problem at there. and i'm follwoing **pi_tracker** code by Patrick Goebel such as in this [web](http://docs.ros.org/electric/api/pi_tracker/html/KinectController_8cpp.html) the thing is, when i `catkin_make my_package` (which mean compile just one of my package) it was'nt error at all. but when i `catkin_make` for all my package it said error in that package (my_package). this is all the error that shown up : ------------------------------------------------------------- /home/my_user/my_workspace/src/my_package/src/KinectController.cpp:1:22: fatal error: XnOpenNI.h: No such file or directory #include ^ compilation terminated. make[2]: *** [my_workspace/CMakeFiles/kinect_controller.dir/src/KinectController.cpp.o] Error 1 make[1]: *** [my_workspace/CMakeFiles/kinect_controller.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 0 has invalid symbol index 11 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 1 has invalid symbol index 12 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 2 has invalid symbol index 2 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 3 has invalid symbol index 2 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 4 has invalid symbol index 11 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 5 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 6 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 7 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 8 has invalid symbol index 12 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 9 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 10 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 11 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 12 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 13 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 14 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 15 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 16 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 17 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 18 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 19 has invalid symbol index 21 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_line): relocation 0 has invalid symbol index 2 /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crt1.o: In function `_start': (.text+0x20): undefined reference to `main' CMakeFiles/kinect_display.dir/src/KinectDisplay.cpp.o: In function `glPrintString(void*, char*)': KinectDisplay.cpp:(.text+0x281): undefined reference to `glutBitmapCharacter' CMakeFiles/kinect_display.dir/src/KinectDisplay.cpp.o: In function `kinect_display_drawDepthMapGL(xn::DepthMetaData const&, xn::SceneMetaData const&)': KinectDisplay.cpp:(.text+0x899): undefined reference to `xnOSMemSet' CMakeFiles/kinect_display.dir/src/KinectDisplay.cpp.o: In function `kinect_display_drawSkeletonGL(xn::UserGenerator&, xn::DepthGenerator&)': KinectDisplay.cpp:(.text+0xc5f): undefined reference to `xnOSMemSet' KinectDisplay.cpp:(.text+0xe99): undefined reference to `glutBitmapHelvetica18' CMakeFiles/kinect_display.dir/src/KinectDisplay.cpp.o: In function `xn::NodeWrapper::SetHandle(XnInternalNodeData*)': KinectDisplay.cpp: (.text._ZN2xn11NodeWrapper9SetHandleEP18XnInternalNodeData[_ZN2xn11NodeWrapper9SetHandleEP18XnInternalNodeData]+0x39): undefined reference to `xnGetRefContextFromNodeHandle' KinectDisplay.cpp: (.text._ZN2xn11NodeWrapper9SetHandleEP18XnInternalNodeData[_ZN2xn11NodeWrapper9SetHandleEP18XnInternalNodeData]+0x54): undefined reference to `xnContextUnregisterFromShutdown' KinectDisplay.cpp:(.text._ZN2xn11NodeWrapper9SetHandleEP18XnInternalNodeData[_ZN2xn11NodeWrapper9SetHandleEP18XnInternalNodeData]+0x60): undefined reference to `xnContextRelease' KinectDisplay.cpp:(.text._ZN2xn11NodeWrapper9SetHandleEP18XnInternalNodeData[_ZN2xn11NodeWrapper9SetHandleEP18XnInternalNodeData]+0x6f): undefined reference to `xnProductionNodeRelease' KinectDisplay.cpp:(.text._ZN2xn11NodeWrapper9SetHandleEP18XnInternalNodeData[_ZN2xn11NodeWrapper9SetHandleEP18XnInternalNodeData]+0x82): undefined reference to `xnProductionNodeAddRef' KinectDisplay.cpp:(.text._ZN2xn11NodeWrapper9SetHandleEP18XnInternalNodeData[_ZN2xn11NodeWrapper9SetHandleEP18XnInternalNodeData]+0x91): undefined reference to `xnGetRefContextFromNodeHandle' KinectDisplay.cpp:(.text._ZN2xn11NodeWrapper9SetHandleEP18XnInternalNodeData[_ZN2xn11NodeWrapper9SetHandleEP18XnInternalNodeData]+0xb2): undefined reference to `xnContextRegisterForShutdown' KinectDisplay.cpp:(.text._ZN2xn11NodeWrapper9SetHandleEP18XnInternalNodeData[_ZN2xn11NodeWrapper9SetHandleEP18XnInternalNodeData]+0xc1): undefined reference to `xnContextRelease' CMakeFiles/kinect_display.dir/src/KinectDisplay.cpp.o: In function `xn::DepthGenerator::ConvertRealWorldToProjective(unsigned int, XnVector3D const*, XnVector3D*) const': KinectDisplay.cpp:(.text._ZNK2xn14DepthGenerator28ConvertRealWorldToProjectiveEjPK10XnVector3DPS1_[_ZNK2xn14DepthGenerator28 ConvertRealWorldToProjectiveEjPK10XnVector3DPS1_]+0x32): undefined reference to `xnConvertRealWorldToProjective' CMakeFiles/kinect_display.dir/src/KinectDisplay.cpp.o: In function `xn::SkeletonCapability::GetSkeletonJointPosition(unsigned int, XnSkeletonJoint, XnSkeletonJointPosition&) const': KinectDisplay.cpp:(.text._ZNK2xn18SkeletonCapability24GetSkeletonJointPositionEj15XnSkeletonJointR23XnSkeletonJointPosition[_ZNK2xn18SkeletonCapability24GetSkeletonJointPositionEj15XnSkeletonJointR23XnSkeletonJointPosition]+0x30): undefined reference to `xnGetSkeletonJointPosition' CMakeFiles/kinect_display.dir/src/KinectDisplay.cpp.o: In function `xn::SkeletonCapability::IsTracking(unsigned int) const': KinectDisplay.cpp:(.text._ZNK2xn18SkeletonCapability10IsTrackingEj[_ZNK2xn18SkeletonCapability10IsTrackingEj]+0x24): undefined reference to `xnIsSkeletonTracking' CMakeFiles/kinect_display.dir/src/KinectDisplay.cpp.o: In function `xn::SkeletonCapability::IsCalibrating(unsigned int) const': KinectDisplay.cpp:(.text._ZNK2xn18SkeletonCapability13IsCalibratingEj[_ZNK2xn18SkeletonCapability13IsCalibratingEj]+0x24): undefined reference to `xnIsSkeletonCalibrating' CMakeFiles/kinect_display.dir/src/KinectDisplay.cpp.o: In function `xn::UserGenerator::GetUsers(unsigned int*, unsigned short&) const': KinectDisplay.cpp:(.text._ZNK2xn13UserGenerator8GetUsersEPjRt[_ZNK2xn13UserGenerator8GetUsersEPjRt]+0x2f): undefined reference to `xnGetUsers' CMakeFiles/kinect_display.dir/src/KinectDisplay.cpp.o: In function `xn::UserGenerator::GetCoM(unsigned int, XnVector3D&) const': KinectDisplay.cpp:(.text._ZNK2xn13UserGenerator6GetCoMEjR10XnVector3D[_ZNK2xn13UserGenerator6GetCoMEjR10XnVector3D]+0x2c): undefined reference to `xnGetUserCoM' collect2: error: ld returned 1 exit status make[2]: *** [/home/my_user/my_workspace/devel/lib/my_workspace/kinect_display] Error 1 make[1]: *** [my_workspace/CMakeFiles/kinect_display.dir/all] Error 2 In file included from /home/my_user/my_workspace/src/my_package/src/skeleton_tracker.cpp:15:0: /home/my_user/my_workspace/src/my_package/src/KinectController.h:5:26: fatal error: XnCppWrapper.h: No such file or directory #include ^ compilation terminated. make[2]: *** [my_workspace/CMakeFiles/skeleton_tracker.dir/src/skeleton_tracker.cpp.o] Error 1 make[1]: *** [my_workspace/CMakeFiles/skeleton_tracker.dir/all] Error 2 make: *** [all] Error 2 Invoking "make -j4 -l4" failed ------------------------------------------------- though i haven't connect the Kinect360, i think it's not connection false. what do u think?

Viewing all articles
Browse latest Browse all 20

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>