kevin-george / lsd_slam

LSD-SLAM
GNU General Public License v3.0
47 stars 38 forks source link

Nothing is displayed in PointcloudViewer. #2

Open Neoplanetz opened 6 years ago

Neoplanetz commented 6 years ago

Hello. I follow your instruction for installing LSD-SLAM with ROS Kinetic. Install for LSD-SLAM is perfect with no error. But, when I run lsd-slam with default rosbag play LSD_room.bag, I can't see anything in PointCloudViewer.

This is my commands:

  1. rosrun lsd_slam_viewer viewer (work fine)
  2. rosrun lsd_slam_core live_slam /image:=/cama/image_raw camera_info:=/camera_info
  3. rosbag play LSD_room.bag

I also saw your Usage for lsd-slam. first, cv_camera_node is executing webcam node. second, execute lsd slam core.

What part is wrong in my commands? How can I see point cloud data?

nothing_pointcloud

kevin-george commented 6 years ago

Hello, I haven't played around with the Viewer yet. I have been using it primarily to track the pose. The viewer grays out for me as well :(

jsYangCode commented 6 years ago

@kevin-george hello, i installed lsd-slam follow your instruction. but i can not use it as expect. i can not run the WIKI/Usage as follow. may you explain it? thank u. i also can not run the LSD_room.bag. may you give me some advice? thank u again!!!! 2018-01-21 11-31-57

![Uploading 2018-01-21 11-31 2018-01-21 11-31-37 -37屏幕截图.png…]()

jsYangCode commented 6 years ago

@kevin-george I have use (roslaunch usb_cam usb_cam-test.launch) to run a node that publishs images on the topic usb_cam.(use the camera on my PC)

PARAMETERS

NODES / image_view (image_view/image_view) usb_cam (usb_cam/usb_cam_node)

kevin-george commented 6 years ago

@Young532042725 Have you tried viewing the topic /lsd_slam/pose ?

jsYangCode commented 6 years ago

@kevin-george hello,How to viewing the topic /lsd_slam/pose ? (rostopic list?) What does this mean(Run a cv_camera node. You will need to clone and build the cv_camera ROS package to use this/rosrun cv_camera cv_camera_node /cv_camera/image_raw:=/camera/image_raw)? Does it can use camera on my PC? Dear, Friend, please give me a hand! what is your E-mail?

kevin-george commented 6 years ago

You would use the command rostopic echo /lsd_slam/pose Please go through a ROS tutorial before you proceed. It will be difficult for you to navigate the SLAM landscape if you want to use ROS packages without any familiarity :)

Irenedvs commented 6 years ago

I made the following code changes for the lsd_viewer to display the point cloud .It also solved the Qt issue I was facing. The issue was found to be in the ImageDisplay_OpenCV.cpp file , including the details of the code change I made. File : lsd_slam/lsd_slam_core/src/IOWrapper/OpenCV/ImageDisplay_OpenCV.cpp Made changes on line 119 and 125 Changed : return cv::waitKey(milliseconds); to return 1; A catkin_make later your good to go

image

kevin-george commented 6 years ago

Hey @Irenedvs , Can you create a PR with this change? That way I can credit you for fixing this :)

Irenedvs commented 6 years ago

made the PR @kevin-george :)

EnriqueSolarte commented 6 years ago

I made the following code changes for the lsd_viewer to display the point cloud .It also solved the Qt issue I was facing. The issue was found to be in the ImageDisplay_OpenCV.cpp file , including the details of the code change I made. File : lsd_slam/lsd_slam_core/src/IOWrapper/OpenCV/ImageDisplay_OpenCV.cpp Made changes on line 119 and 125 Changed : return cv::waitKey(milliseconds); to return 1; A catkin_make later your good to go

image

The changing in the witting function has solved my problem. Thank you so much