Comments (5)
I have an idea. The file is read in to a string. than the definitions are set using std::sprintf. Could it be, that this functions works differently on linux and osx? I think it removes all the other single "%" from the string.
could you print out the program after it is read in too see if my guess is right?
I think I have to escape all the other "%" with "%%".
from iai_kinect2.
pushed the changes. maybe it fixes it.
from iai_kinect2.
Thanks Thiemo,
that already looks much better, now I get until:
Build Log: undefined reference to `_Z9__cl_pownDv4_fi()'
rosrun kinect2_bridge kinect2_bridge
Using OpenCL registration method!
[Freenect2Impl] enumerating devices...
[Freenect2Impl] 4 usb devices connected
[Freenect2Impl] found valid Kinect v2 @21:1 with serial 052891334147
[Freenect2Impl] found 1 devices
[Freenect2DeviceImpl] opening...
[Freenect2DeviceImpl] opened
starting kinect2
[Freenect2DeviceImpl] starting...
[Freenect2DeviceImpl] ReadData0x14 response
92 bytes of raw data
0x0000: 00 00 12 00 00 00 00 00 01 00 00 00 43 c1 1f 41 ............C..A
0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0x0020: 0a 21 33 55 c2 00 17 20 00 08 00 00 10 00 00 00 .!3U... ........
0x0030: 00 01 00 00 00 10 00 00 00 00 80 00 01 00 00 00 ................
0x0040: 31 33 00 00 00 09 0a 17 47 48 58 32 36 30 2e 31 13......GHX260.1
0x0050: 58 00 00 00 00 00 00 00 00 00 00 00 X...........
[Freenect2DeviceImpl] ReadStatus0x090000 response
4 bytes of raw data
0x0000: 01 26 00 00 .&..
[Freenect2DeviceImpl] ReadStatus0x090000 response
4 bytes of raw data
0x0000: 03 26 00 00 .&..
[Freenect2DeviceImpl] enabling usb transfer submission...
[Freenect2DeviceImpl] submitting usb transfers...
[Freenect2DeviceImpl] started
device serial: 052891334147
device firmware: 1.1.3323.0.7
default ir camera parameters:
fx 365.674, fy 365.674, cx 260.313, cy 202.536
k1 0.0918022, k2 -0.269075, p1 0, p2 0, k3 0.0940997
default color camera parameters:
fx 1081.37, fy 1081.37, cx 959.5, cy 539.5
could not load calibration data from "/Users/tatsch/catkin_ws/src/iai_kinect2/kinect2_bridge/data/052891334147". using sensor defaults.
camera parameters used:
camera matrix color:
[1081.3720703125, 0, 959.5;
0, 1081.3720703125, 539.5;
0, 0, 1]
distortion coefficients color:
[0, 0, 0, 0, 0]
camera matrix ir:
[365.6738891601562, 0, 260.3127136230469;
0, 365.6738891601562, 202.5355987548828;
0, 0, 1]
distortion coefficients ir:
[0.09180215001106262, -0.2690747082233429, 0, 0,[DepthPacketStrea 0.09409972280263901]
mParotation:
rser:[1, 0, 0;
:han 0, 1, 0;
dleN 0, 0, 1]
ewDtranslation:
at[0;
a] 0;
no 0]
t
all subsequences received 0
[DepthPacketStreamParser::handleNewData] not all subsequences received 992
OpenCL device: Iris FULL_PROFILE
ERROR: clBuildProgram(-11)
Build Status: -2
Build Options: -D r00=1.0000000000000000e+00f -D r01=0.0000000000000000e+00f -D r02=0.0000000000000000e+00f -D r10=0.0000000000000000e+00f -D r11=1.0000000000000000e+00f -D r12=0.0000000000000000e+00f -D r20=0.0000000000000000e+00f -D r21=0.0000000000000000e+00f -D r22=1.0000000000000000e+00f -D tx=0.0000000000000000e+00f -D ty=0.0000000000000000e+00f -D tz=0.0000000000000000e+00f -D fxD=5.4068603515625000e+02f -D fyD=5.4068603515625000e+02f -D cxD=4.7975000000000000e+02f -D cyD=2.6975000000000000e+02f -D fxDInv=1.8495021786738310e-03f -D fyDInv=1.8495021786738310e-03f -D fxC=1.0813720703125000e+03f -D fyC=1.0813720703125000e+03f -D cxC=9.5950000000000000e+02f -D cyC=5.3950000000000000e+02f -D zNear=500 -D zFar=10000 -D zDist=1.4999999664723873e-02f -D heightC=1080 -D widthC=1920 -D heightD=540 -D widthD=960 -D heightR=424 -D widthR=512
Build Log: undefined reference to `_Z9__cl_pownDv4_fi()'
Initialization failed!
[Freenect2DeviceImpl] closing...
[Freenect2DeviceImpl] stopping...
[Freenect2DeviceImpl] disabling usb transfer submission...
[Freenect2DeviceImpl] canceling usb transfers...
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[DepthPacketStreamParser::handleNewData] not all subsequences received 15
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[TransferPool::submit] transfer submission disabled!
[Freenect2DeviceImpl] stopped
[Freenect2DeviceImpl] releasing usb interfaces...
[Freenect2DeviceImpl] deallocating usb transfer pools...
[Freenect2DeviceImpl] closing usb device...
[Freenect2DeviceImpl] closed
from iai_kinect2.
Maybe it's related to the pown
command in line 56 and 254.
Try to replace it with:
(float4)((x - xL) * (x - xL), (xH - x) * (xH - x), (y - yL) * (y - yL), (yH - y) * (yH - y));
from iai_kinect2.
Works! Thanks a million!
from iai_kinect2.
Related Issues (20)
- Hello, can 'azure Kinect' use this project. HOT 3
- Is it possible to support Kinect v1?
- Camera Intrinsic and Extrinsic Calibration
- No rule to make target `.../libOpenCL.so' when building after an update(?)
- kinect2_bridge.launch did not publish point cloud HOT 1
- About depth camera calibration
- Can be possible a ROS2 version for this project? HOT 1
- Having trouble with LibJpeg. I have tried removing the anaconda version of libjpeg but I don't see any difference. If someone could help out with this, that would be great!
- calib_pose.yaml
- ERROR:rosrun kinect2_viewer kinect2_viewer HOT 1
- Stretch image in color calibration HOT 1
- libopencv_core.so.4.5, needed by /home/jsdd/catkin_ws/devel/lib/libkinect2_registration.so, may conflict with libopencv_core.so.4.2
- calibrate depth error HOT 1
- roslaunch kinect2_bridge kinect2_bridge.launch, Invalid <arg> tag
- This workspace contains non-catkin packages in it, and catkin cannot build a non-homogeneous workspace without isolation. Try the 'catkin_make_isolated' command instead.
- rosrun [ERROR] [Kinect2Bridge::receiveColor] failure in rgb packet processor from libfreenect2
- waitForService: Service [/kinect2/load_nodelet] could not connect to host HOT 2
- The Publish rate is 0 hz HOT 1
- Unable to build iai_kinect2
- Failed to load nodelet '/kinect2_bridge` of type `kinect2_bridge/kinect2_bridge_nodelet` to manager `kinect2'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iai_kinect2.