-
Notifications
You must be signed in to change notification settings - Fork 799
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
util3d_features.cpp generateKeypoints3dDepth() uassert fails #64
Comments
Are your RGB and depth images are the same size? It seems not. Hopefully, the rtabmap version (0.11) you are using supports RGB and depth images with not the same size (so you would not have to resize the RGB or the depth image). The error above tells that image size of the camera model is null ( $ rostopic echo /rgb/camera_info If they are null, you would have to update the R200 package publishing the cheers |
@matlabbe thanks for the prompt reply. My depth and RGB images are not the same size, but I cam using rtab map version 0.11.2. Unfortunately, the image size of the model is reported correctly in camera info. The output of echoing the topic is:
Any reason why the ROI width/height would be confused with the actual width/height? |
Tracking this down further, updating ROI values doesn't have any effect. Additionally, every so often rtabmap_ros will execute with no error but results in no apparent functionality. When executing with no error the visualization comes up, but nothing is happening: Notice the high reported fps (varies between 1k - 3k). This behavior is intermittent and generally the node still fails to launch. Inserting ROS_ERROR messages in the RGBDOdometryNode to extract model width and height parameters the abridged output of launching my rtabmap.launch is:
The full output of the launchfile can be seen here, and the altered launchfile itself can be seen here |
Thx, I missed that the error was coming from the odometry node. There was a camera_info conversion bug for odometry. The commit above should now copy the image width/height correctly. |
@matlabbe I came to the same conclusion and the above commit does fix this issue. Rtabmap with a real sense is still not working out of the box but I'll post more questions only after pouring some debug time into my setup. Thanks |
Note that rtabmap requires a registered depth image to color image. If they don't have the same size, make sure that pixel correspondences are still one to one (up to a scale factor) between RGB and depth. |
I am trying to run rtabmap.launch with an intel realsense R200. I've changed the rgb_topic, depth-topic, and camera_info_topic to the proper names but am running into a fatal error:
[FATAL] (2016-03-25 15:26:20.417) util3d_features.cpp:89::generateKeypoints3DDepth() Condition (cameraIndex >= 0 && cameraIndex < (int)cameraModels.size()) not met! [cameraIndex=1, models=1, kpt.x=546.000000, subImageWidth=480.000000 (Camera model image width=0)]
Obviously it is failing because cameraIndex = cameraModels.size() == 1, but I don't understand why that is a problem. I was wondering i anyone can provide me with some clarity as to what this assertion is demanding. Why would one camera model for one color camera be a problem?
Thanks!
The text was updated successfully, but these errors were encountered: