JdeRobot / SDslam

Semi Direct SLAM (SD-SLAM) for Monocular and RGB-D Cameras
Other
49 stars 19 forks source link

Error when launching monocular with TUM dataset #11

Closed diegomrt closed 5 years ago

diegomrt commented 6 years ago

Hi,

I've just installed the tool and I'm trying to run the "freiburg1_desk" example from TUM dataset using monocular and TUM1.yaml. However, I'm getting an error, reproduced below. Any ideas about what could be happening?

I've renamed the rgb.txt file to files.txt and moved it into the /rgb folder.

diego@EINSTEIN:~/SD-SLAM$ ./Examples/Monocular/monocular Examples/Monocular/TUM1.yaml DIEGO_EJEMPLOS/rgbd_dataset_freiburg1_desk/rgb [INFO] Sequence has 616 images [DEBUG] Input sensor was set to Monocular

Camera Parameters:

ORB Extractor Parameters:

[ERROR] Failed to load image at: DIEGO_EJEMPLOS/rgbd_dataset_freiburg1_desk/rgb/# [xcb] Unknown sequence number while appending request [xcb] Most likely this is a multi-threaded client and XInitThreads has not been called [xcb] Aborting, sorry about that. monocular: ../../src/xcb_io.c:161: append_pending_request: Assertion !xcb_xlib_unknown_seq_number' failed. Abortado (core' generado)

Thanx in advance, Diego.

eperdices commented 6 years ago

Hi,

It seems an error reading images from files.txt. This line should be a valid image path:

DIEGO_EJEMPLOS/rgbd_dataset_freiburg1_desk/rgb/#

Try to use an absolute path and check your files.txt, you can create it running this command inside rgb folder:

ls *.png > files.txt

Regards

diegomrt commented 5 years ago

Thanks Eduardo, I've just checked it is running! Indeed, it was a problem with the files.txt content. Relative paths seem to work well.

Diego.