-
Notifications
You must be signed in to change notification settings - Fork 94
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
stereo_undistort not working with T265 camera #59
Comments
Sorry to disturb you, I modified the programs base_realsense_node.cpp and base_realsense_node.h according to your github, but when running Stereo_image_undistort node to rectify the image of T265, I encountered a problem, the corrected image cannot be displayed using rqt_image_view, and it runs The process is very slow. How do you display the corrected image? I don’t quite understand what you mentioned above. @mindThomas can you help me? |
Hi @wang-yu-yang.
|
Thank you very much for your help. I have corrected the camera according to the above steps. but I have a warning [ WARN] [1592478445.420755520]: For given K, T and P ([K,[0;0;0]]*T != P), replacing K with corrected value I think it’s because my camera didn’t get a good calibration, and when I used the method you said to rectified the image and used the image for SLAM, it showed that my camera baseline was -0.0638m. Later, I used the Kalibr calibration tool to perform the camera calibration. Calibration, but when the camera model and distortion model are pinhole+equidistant, the camera cannot complete the calibration, and the camera parameters are only obtained when it is changed to omni+rantan, but the camera parameters cannot be used. this is camera parameters before undistort: right camera: |
@mindThomas Which compiler are you using? Could be related to this issue? #44 |
@jokla I am indeed using GCC 7.4. I haven't tested this with a lower version so it is likely that it is related. Thank you. |
@mindThomas were you able to fix this? I have the same issue where the right image is upside down for some reason and so the disparity is obviously nonsense. |
I have the same issue |
I forked the |
I am trying to use the
stereo_undistort
node together with the Intel Realsense T265 camera.Although I have corrected the
camera_info
output to include the baseline as part of the Projection matrix, the initialization of the rectified image intrinsics fails, see: IntelRealSense/realsense-ros#1242The code appears to be stuck in the for loop within
setOptimalOutputCameraParameters
since the resolution never converges and just gets bigger and bigger. When it finally quits due to it exceeding the number of iterations the resolution is so be that the undistortion map generation (i.e.remap
within OpenCV) crashes.I have tried to limit the number of iterations in
setOptimalOutputCameraParameters
to just 1, leading to a reasonable resolution. In that case the undistortion appears to work for both left and right camera, although the right image is flipped upside down?As a side note, why is the rectification parameters recomputed each time a new image is received (as part of the image callback calling
setInputCameraParameters
-->generateRectificationParameters
-->setOptimalOutputCameraParameters
)?The text was updated successfully, but these errors were encountered: