-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
question: how to use live camera #16
Comments
Are you using a monochrome camera? Probably not, so pipe the image_raw through the image_proc node. Start it in the /camera namespace and remap lsd_slam's input to /camera/image_mono Can you please paste your terminal output here. |
@mhkabir, thank you very much. Yes, my camera is just a Logitech C525 rgb camera, not mono camera. As taking reference from your suggestion, I use image_proc by following command: The following is terminal output: (Maybe the camera is not calibrated well, so the tracking is lost and I will practice it soon) root@milton-OptiPlex-760:~# rosrun lsd_slam_core live_slam image:=/camera/image_mono camera_info:=/camera/camera_info |
Yep, I'd say that you should calibrate your camera as no calibration values are being send to lsd_slam. Thus you cannot track. All your values are 0 which leads to no tracking. |
@mhkabir , @JakobEngel , root@milton-PC: I think there maybe two ways to tackle this problem:
It'll be greatly appreciated if you could give me some suggestions to tackle this problem. THX~ Best regards, |
@amiltonwong You can use the inbuilt camera cropping system in lsd_slam. I expect you've already calibrated your camera now, you can simply set the output crop size in the config file. Check the README for more info. Set the last line of the camera config to your desired resolution. |
Hello I am new in ROS, I am using the LSD-SLAM, for live test I am using *.bag file, is it possible to use an *.avi video as input. Does the *.bag file contain only the images? Thank you very much for your answer |
By default the .cfg file is not being read. How do I make it read from a .cfg file in order to crop to a multiple of 16? Where in the code does it check for say pinhole_example_calib.cfg. When I edit this it doesnt work! Please advise. |
ok figured it out. You just need to add _calib:=<path to .cfg calib file> as follows: rosrun lsd_slam_core live_slam /image:=/image_raw _calib:=<dir_path>/pinhole_example_calib.cfg |
Dear all,
I had installed lsd_slam package successfully and followed the Quicksteps smoothly.
Now, I attached a camera to experiment the live setting. First, I initiate the camera using command:
'rosrun uvc_cam uvc_cam_node device:=/dev/video1'
Then I run commands:
'rosrun lsd_slam_viewer viewer'
and then,
'rosrun lsd_slam_core live_slam image:=/camera/image_raw camera_info:=/camera_info'
(the published topic is /camera/image_raw)
But then, nothing happens. I cannot see the live result. Did I miss some steps?
I use rqt_graph to see the info of topics and node, here is:
Could someone give me some suggestion to fix it? THX~
Best regards,
Milton
The text was updated successfully, but these errors were encountered: