tum-vision / lsd_slam

LSD-SLAM
GNU General Public License v3.0
2.59k stars 1.23k forks source link

Program runs without errors, but nothing is happening #182

Open nlw0 opened 8 years ago

nlw0 commented 8 years ago

Hi there. I managed to compile the project and run the room example sequence, but it doesn't seem to work, and there are no error messages that suggest anything... The DebugWindow is blank, doesn't seem to be drawing anything. The PointCloud Viewer shows a red camera moving around, but just that. If I press 'w' at the viewer I get

Have 0 points, 0 keyframes, 0 constraints. Displaying 0 points.

And this is the output from live_slam

$ rosrun lsd_slam_core live_slam image:=/image_raw camera_info:=/camera_info
WAITING for ROS camera calibration!
Received ROS Camera Calibration: fx: 254.326950, fy: 375.934387, cx: 267.381897, cy: 231.599091 @ 640x480
RECEIVED ROS camera calibration!
Started  constraint search thread!
Started mapping thread!
Started optimization thread Have 0 points, 0 keyframes, 0 constraints. Displaying 0 points.
Doing Random initialization!
started image display thread!
Done Random initialization!
init done
opengl support available
QObject::startTimer: Timers cannot be started from another thread
wTRACKING LOST for frame 848 (0.01% good Points, which is 100.00% of available points, DIVERGED)!
QObject::killTimer: Timers cannot be stopped from another thread
QObject::startTimer: Timers cannot be started from another thread

Images are showing fine in rqt_image_view btw. Any ideas how to debug this?

gblikas commented 8 years ago

I had the same problem for a bit. I am using Parallels to do this, and I think there are some serious issues because of this. I am not sure what was causing this, but the variables that I changed were:

No much of a "debug", but I had the same problem and this is what fixed it.

UPDATE: I switched to a dedicated PC for this, and it works well. Using a VM posed quite an issue, apparently.