tum-vision / lsd_slam

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

How to display depthmap Image and save? #301

Open phenix1983 opened 6 years ago

phenix1983 commented 6 years ago

Thank you for your sharing:) Now, I have installed the lsd_slam run successful, on ubuntu16.04.

in file lsd_slam_core/src/settings.cpp bool onSceenInfoDisplay = true; bool displayDepthMap = false; then, run 3 commands in 3 terminals. terminal 1: yunfeng@yunfeng-ZHAOYANG-E42-80:~/rosbuild_ws/package_dir$ roscore terminal 2: yunfeng@yunfeng-ZHAOYANG-E42-80:~/rosbuild_ws/package_dir$ rosrun lsd_slam_viewer viewer ternimal 3: yunfeng@yunfeng-ZHAOYANG-E42-80:~/rosbuild_ws/package_dir$ rosrun lsd_slam_core dataset_slam _files:=LSD_room/images/ _hz:=5 _calib:=LSD_room/cameraCalibration.cfg

then,I could see the point cloud map, but I also want to see the "DebugWindow depth", bool displayDepthMap = true;

repeat the 3 commands again, The DebugWindow depth display nothing,and disorder. Can you do me a favor and solve the problem? Thank you in advance.

Nat-zewge commented 6 years ago

This is how i fixed the issue based on discussions on other threads and adding my own solutions. -first you need to remove the ROS opencv3. sudo apt remove ros-kinetic-opencv3 -then clone cv-bridge from https://github.com/ros-perception/vision_opencv and add it to yout catkin workspace.

abdur4373 commented 5 years ago

https://github.com/kevin-george/lsd_slam/issues/1

Just one line addition to code... i got it working with 'ros-kinetic-opencv' on ubuntu 16.04.