lsd_slam icon indicating copy to clipboard operation
lsd_slam copied to clipboard

Nothing is displayed in PointcloudViewer.

Open Neoplanetz opened this issue 7 years ago • 10 comments

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

Neoplanetz avatar Nov 01 '17 17:11 Neoplanetz

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 :(

kevin-george avatar Jan 20 '18 19:01 kevin-george

@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 avatar Jan 21 '18 03:01 jsYangCode

@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

  • /image_view/autosize: True
  • /rosdistro: kinetic
  • /rosversion: 1.12.12
  • /usb_cam/camera_frame_id: usb_cam
  • /usb_cam/image_height: 480
  • /usb_cam/image_width: 640
  • /usb_cam/io_method: mmap
  • /usb_cam/pixel_format: yuyv
  • /usb_cam/video_device: /dev/video0

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

jsYangCode avatar Jan 21 '18 03:01 jsYangCode

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

kevin-george avatar Jan 22 '18 20:01 kevin-george

@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?

jsYangCode avatar Jan 23 '18 02:01 jsYangCode

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 :)

kevin-george avatar Jan 24 '18 00:01 kevin-george

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

Irenedvs avatar Jun 06 '18 23:06 Irenedvs

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

kevin-george avatar Jun 09 '18 20:06 kevin-george

made the PR @kevin-george :)

Irenedvs avatar Jun 11 '18 16:06 Irenedvs

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

EnriqueSolarte avatar Sep 26 '18 10:09 EnriqueSolarte