-
Notifications
You must be signed in to change notification settings - Fork 38
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
Displaying depth map #1
Comments
Are you talking about the grayed out DepthMap window that pops up? |
Thanks for the quick reply! I was interested in observing the depth map to see if we could use lsd_slam for our project which is set up on kinetic. Not to worry! I'll see if i can install lsd on indigo just to test it, or use Rviz in some way. Thanks again |
The windows version of that code had no concept of reference frames or a viewport and it looked like a placeholder. I think RViz is your best bet to test the KeyFrames. As far as I can remember, the keyframes and frames (and their clouds) are being processed and transformed from world to camera properly or at least it is easy to handle that with a few calls to ros.tf in ROS |
@kevin-george I have gotten the DepthMap to work on my machine. This is a similar issue that has been faced by ORB-SLAM on Ubuntu 16.04 as well. While I don't know the exact low-level issue, from a higher level, I think this happens because of clashes between different Qt threads. One such thread is the one in charge of displaying the depthMap. I traced the This is my hypothesis. The things I haven't check are the follows:
For now this one thing is certain. I have removed my ros-kinetic-opencv3, pulled cv-bridge from github into my catkin_ws and also built and installed OpenCV 3 from source without Qt. The depthMap display works on my machine Ubuntu 16.04 and I don't get any errors regarding QObject. |
@fulkast Thank you for that tip! I'll be trying to fix this without having to re-install opencv. If you find a way to do that, please do let me know :) |
@kevin-george Good call! Installing OpenCV from source takes quite some time. I lucked out as I already had a version of OpenCV installed which didn't have Qt. Are you using OpenCV 3 installed through the |
Yeah, ROS ported over to opencv3 and I'm using the default package. |
Has anyone found a way to fix this? I am trying to use lsd slam as a vision based odometry solution (for drone). How did you use the odometry? I keep losing trace after a few seconds of starting lsd slam. |
Hello! @kevin-george Did you find any solution for displaying depth map without removing |
Hello! @kevin-george @fulkast Now if you can help me out why there is need to press this hotkey for this to work? What can i add to the code so it can run by itself? |
@abdur4373 if you just added an integer to the cv::waitKey() function , that isn't 0. That is for example, use: cv::waitKey(1); Here's a detailed explanation of the waitKey function: https://stackoverflow.com/questions/5217519/what-does-opencvs-cvwaitkey-function-do |
Yup @fulkast usage was the issue... Just did |
For some reason displaying the depth map during SLAM causes LSD-SLAM to crash. The temporary fix is to disable it for now until I have time to thoroughly investigate this issue
@abdur4373 Didn't work for me :( |
same to yours, have you found the solution? thx |
@abdur4373, writing |
@Kanishk598 that should not be the case, |
Heya,
has a solution been found for displaying the depth map?
I am getting the following output which seems to be the same for most people in the tum_vision version
QObject::killTimer: Timers cannot be stopped from another thread
QObject::startTimer: Timers cannot be started from another thread
^CQObject::~QObject: Timers cannot be stopped from another thread
I followed the instructions on your Wiki
Thanks
The text was updated successfully, but these errors were encountered: