-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't log compressed color images from kinect #228
Comments
You should be able to run |
Thanks for the reply!
But I have reason to think that the problem lies somewhere in the bsonobjbuilder.h or bsonobj.h in the libmongocxx package. It may be of importance to mention that I use mongodb Version 2.6.10 as of now. |
My first guess is that the cast on this line is failing, since the error says the data in the |
I get a warning while compiling, that the auto_ptr pointer is deprecated. I changed them to unique_ptr without any effect. But I think you might be right with the problem lying in this line. The pointer has some negative values, which are not cast to unsigned values correctly. It has some negative values, which probably lead to the error I get. |
So there's a problem with the input then? |
hi all; after quickly looking at this and testing it with a RealSense and a the Kinect on the PR2 I was experiencing the same problem; The issue is that with legacy cxx drivers you need to call Also the collection name is not set and no error message is shown except the exception that mongo throws. I did not test but I am pretty sure that the other loggers (tf and pcl) would have the same behaviour; I fixed this with #229; Tested on Ubuntu 16.04 and mongodb 3.4 @countdueki please test it this works for you |
@bbferka that did the trick! I only had to add the database and collection, seperated by a dot. So e.g. in my case I added For completeness: Only using |
@bbferka could you please explain in more detail how you got it working? running: running I am unsure how to debug further from here. |
Hello everyone,
I tried to record images from the kinect using mongodb_log (from source). Most of the topics work just fine, but when I try to log the compressed color image topic using
rosrun mongodb_log mongodb_log.py /camera/rgb/image_raw/compressed
the topics won't be logged into the database and it returns:And no entries are created in the mongodb. Same for topic
/camera/depth_registered/image_raw/compressed
I use ROS Kinetic and Ubuntu 16.04
PS.:
when I run the kinect with the freenect-launch package (roslaunch freenect_launch freenect-registered-xyzrgb.launch)
I get those warnings on startup:
The text was updated successfully, but these errors were encountered: