introlab / rtabmap

RTAB-Map library and standalone application
https://introlab.github.io/rtabmap
Other
2.78k stars 785 forks source link

Reboot after RTAB-Map #186

Open trabbani12 opened 7 years ago

trabbani12 commented 7 years ago

Hi,

I'm using an Intel Realsense ZR300 and an Nvidia Jetson TX2.

I can get rtabmap started, but it ends once a loop is detected. Once it ends I can't click the pause button to start again and I can't create a new database and start a fresh scan. In both scenarios I get the error that "Timeout waiting for frames" and just closing rtabmap doesnt allow me to use it again. I need to reboot the TX2 to start a new scan. Any idea what may be causing this?

This is the entire terminal from start to end:

nvidia@tegra-ubuntu:~/rtabmap/bin$ ./rtabmap [ WARN] (2017-05-02 20:20:28.906) Parameters.cpp:771::readINI() Section "Core" in /home/nvidia/.rtabmap/rtabmap.ini doesn't exist... Ignore this warning if the ini file does not exist yet. The ini file will be automatically created when this node will close. [ WARN] (2017-05-02 20:21:39.133) OdometryF2M.cpp:380::computeTransform() Registration failed: "Not enough inliers 12/20 (matches=21) between -1 and 32" [ WARN] (2017-05-02 20:21:39.279) OdometryF2M.cpp:380::computeTransform() Registration failed: "Not enough inliers 18/20 (matches=24) between -1 and 33" [ WARN] (2017-05-02 20:21:39.580) OdometryF2M.cpp:380::computeTransform() Registration failed: "Not enough inliers 0/20 (matches=18) between -1 and 35" [ WARN] (2017-05-02 20:21:39.874) OdometryF2M.cpp:380::computeTransform() Registration failed: "Not enough inliers 0/20 (matches=18) between -1 and 37" [ WARN] (2017-05-02 20:21:43.227) OdometryF2M.cpp:380::computeTransform() Registration failed: "Not enough inliers 0/20 (matches=11) between -1 and 58" [pcl::RandomSampleConsensus::computeModel] No samples could be selected! [ WARN] (2017-05-02 20:21:46.222) OdometryF2M.cpp:380::computeTransform() Registration failed: "Not enough inliers 0/20 (matches=4) between -1 and 77" [ WARN] (2017-05-02 20:21:47.255) OdometryF2M.cpp:380::computeTransform() Registration failed: "Not enough inliers 0/20 (matches=8) between -1 and 84" [ WARN] (2017-05-02 20:21:47.386) OdometryF2M.cpp:380::computeTransform() Registration failed: "Not enough inliers 19/20 (matches=22) between -1 and 85" [ERROR] (2017-05-02 20:22:00.195) CameraRGBD.cpp:2479::captureImage() Exception: Timeout waiting for frames. [ WARN] (2017-05-02 20:22:00.195) CameraThread.cpp:143::mainLoop() no more images...

Thanks!

matlabbe commented 7 years ago

Did you try deconnecting/connecting again ZR300 from USB without rebooting? I tried on my desktop Ubuntu 16.04 and default realsense binaries (installed with ros-kinetic-realsense-camera) and I cannot reproduce your errors (I can click on pause/stop/start any number of times without problems). Note that I've seen on another computer that rtabmap exited with realsense (rs) exception thrown when trying to stop/restart from the interface.

If you have ros, you may try to run the camera for some time to see if it is a realsense driver problem or USB3 problem on jetson:

$ roslaunch realsense_ros_camera demo_zr300_camera.launch

from realsense_ros_camera package.

cheers, Mathieu