Closed kentsommer closed 10 years ago
Can you link the file which causes the problem?
@stonier cmake_modules dependency would help this issue? Since it is using numpy?
Progress!
In capture_server.py
I added a conversion from numpy.ndarray to cv2.cv.cvarray. That image can be passed to pcv.convertCvMat2Mat which does the final conversion to cv::Mat before finally passing the fully converted image to the stitch engine.
The turtlebot will now rotate while taking pictures and publishing them (verified).
Current issues
capture_server.py
Fixed/Updated
See pull request #99 for more information. Closing this out since fix has been merged in #99
In the functon
convert_from_cvmat
, both the callPyString_Check(m->data)
andPyObject_AsWriteBuffer(m->data, &buffer, &buffer_len)
will cause thepano_server
to die silently. m->data looks like it is returning an int in hex while m is simply a pointer to a location in memory (The last debug print I ran returned: "m->data print: 0x3" and "m print: 0x245a250")PyObject_AsWriteBuffer is deprecated in python2, however, it doesn't seem to be the reason for the issue above.
datatype passed into
convert_from_cvmat
is numpy.ndarray. My best guess as to why the above behavior is being exhibited is that bothPyString_Check
andPyObject_AsWriteBuffer
cannot handle the input type and just quit silently.Steps to reproduce on indigo
On turtlebot run:
Will run until it hits one of the two above function calls and then the process will die printing:
[pano_server-6] process has died [pid 5853, exit code -11]