-
Notifications
You must be signed in to change notification settings - Fork 559
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
RTABMAP shows black screen in 3D map and the visualizer frames are very laggy. #1185
Comments
Testing visual odometry against a white wall is not the best. In this case VO is loosing tracking and get lost, causing a red screen: https://github.com/introlab/rtabmap/wiki/Kinect-mapping#lost-odometry-red-screens The major problem is that it seems the left and right images are not synchronized or stereo calibration is poor. Here is an example where there is a vertical disparity between left and right images: Here is an example where during motion between two consecutive stereo frames the horizontal disparity varies (meaning the left and right cameras are not synchronized): Are the two OAK FFC OV9282 M12 cameras trigger a picture with same hardware signal? |
Thank you for your reply! I saw that you were getting some points, but I was not getting any points instead a black screen in 3D map. I am trying to synchronize the left and right frames using software. Is frame dropping also an issue with Rtabmap? I think my calibration is good because the disparity and depth was good. Once I synchronize left and right I will give an update on performance. |
Hi, I added synchronization logic to my Ros 2 driver and edited the QoS settings since that was causing some synchronization issues. I have attached the terminal output and a new robag link with this reply. Can you please help me understand why you were getting points on the first rosbag I sent and I was getting a black screen? Also, I have set the maximum time difference to 0.040 seconds, but still, RTABMAP complained about the 0.031 second time difference. Is this time difference not good enough? My command to run RTABMAP was :
Edit 1: In this rosbag, I didn't move the camera, but when I moved the camera for real-time testing, I did see a red screen and some scene overlap, which still looks like a synchronization issue. I have tried many things to synchronize. Is there any particular setting in RTABMAP that can help with synchronization? Current QoS setting is :
I publish images with the same timestamp in a while loop. Do you think this synchronization issue is with the ROS 2 driver or the RTABMAP setting? Edit 2: I changed the header time stamp in frames to the depthai time and now the time difference is constant between left and right. 0.033 seconds. But I keep getting the following messge in the terminal:
I don't understand how it can not receive a single frame in 5 seconds when the fps is around 25. |
It seems to work:
Without moving, the stereo calibration looks fine. If you didn't change anything from the previous bag, then the time sync is causing a problem when moving. You cannot use rtabmap in stereo mode if the left and right camera shutters are not triggered at the same time (same hardware signal). Normally For the "Did not receive data since 5 seconds!" warning, is it when replaying the bag? You should launch cheers, |
Thank you for your reply and for supporting this software. Getting this work done is part of my full-time job, so I really appreciate your help. I have tested it in real time with the custom stereo setup I have. I am using my own ROS 2 driver using the depthai library for the mono oak cameras. So, it is a steep learning curve on how to synchronize the left and right images with software. I will check the rosbags with the flags you suggested and edit my reply. I am using Jetson Orin Nano; does that affect the behaviour of RTABMAP? In real time also, I get a black screen in the 3D visualization in RTABMAP, and in RVIZ, only the local map and last frame point clouds are being published. I am also changing some things in my ROS 2 driver to get better sync. I will update on Monday. To answer your question, yes, I got the 5-second warning when I ran the first rosbag with RTABMAP. @matlabbe Update: I checked the second rosbag on my laptop, Ubuntu 22.04, and it was working, but on the Jetson Orin Nano with Jetpack 6 and ROS 2 humble, it is having some issues, i.e., a black screen and no 3D map. I also checked the Docker container in Jetson, but still had the same issue. What might the cause and solution be here? I installed the RTABMAP ROS 2 binaries in Jetson Orin nano. I will try to install it from source and see if the same issue persists. Edit 1: When playing the same rosbag with the same command and with the use_sim_time and clock options, I get no images and a black screen in the visualizer in Jetson Orin. Also, rviz is only showing two point clouds: the local map and the last frame point cloud. Edit 2: I installed RTABMAP from source, but it still didn't work on the same rosbag file. Same issue as before. How do I solve this problem? I have installed Opencv 4.10 from source, but I don't know if rtabmap is getting linked to ROS 2 4.5 Opencv or the 4.10 version. Edit 3: Same problem in the RTABMAP ROS 2 humble Docker container when playing Rosbag; no output in 3d map. Edit 4: So in Docker, I see some point clouds in Rviz but not all. I see a map and odometry in rviz. The rtabmap visualization is not working in docker either. How do I get dense point clouds like in the rtabmap visualizer in Rviz? I think this has been a known issue since 2019, but I didn't know this was an issue with the latest jetpacks. Edit 5: I am not getting dense point cloud on cloud_map even after setting the following parameters: Edit 6: I am using sim time = true and clock option when I play Rosbag, but I get the following messages on RVIZ; let me know if these messages are affecting the map visualization or not. I don't know how to get rid of them.:
Edit 7: I recorded a new rosbag with motion and tested it on Jetson Orin, and the following is the performance: Untitled.video.-.Made.with.Clipchamp.1.mp4Edit 8: Is it common to see the following messages sometimes?:
Edit 9: So I got a denser point cloud in Rviz on Jetson without Docker by using rviz:= true. I am still fixing the synchronization, so I am not expecting a great result without that. Edit 10: |
Hi,
I am using a custom stereo setup and driver for two OAK FFC OV9282 M12 cameras with an OAK FFC 3P. I have calibrated the camera using pinhole functions of OpenCV, and I have received reprojection error of 0.17. The problem I am facing is that I get black screen in the 3D map of RTABMAP visualizer with the following messages in the terminal:
My launch command is :
Why is RTABMAP not mapping with the stereo setup I have? I will upload a link to the ROS bag in a few hours so that someone can help me debug.
Edit 1:
Link to ROS bag folder
The text was updated successfully, but these errors were encountered: