ethz-asl / ethzasl_ptam

Modified version of Parallel Tracking and Mapping (PTAM)
http://wiki.ros.org/ethzasl_ptam
235 stars 184 forks source link

camera "double vision" leading to error: process has died #76

Open Linusnie opened 8 years ago

Linusnie commented 8 years ago

I want to use ethzasl_ptam to calibrate my USB-camera for lsd SLAM. I've been following this guide but when I start the calibration the image I'm getting in the calibration window is distorted (like it overlaps two images) and after between a couple of seconds and a minute it throws an error. I have changed bluefox_ros_node/image_raw to usb_cam/image_raw in cameracalibrator.launch to match my image topic and ImageSizeX, ImageSizeY in PtamFixParams.yaml to the size of the physical checker pattern (in millimeters), otherwise the code is untouched.

Here are some screen shots of the setup. In the first picture you have my camera output in the lower left window and the camera calibrator in the lower right. The second picture shows the error. screenshot from 2015-09-28 11 41 12 screenshot from 2015-09-28 11 41 33

I am using ROS indigo on ubuntu 14.04.3. The camera is a Sandstrøm USB-webcam but I get the same problem if I use in-build camera on my laptop.

Any idea what's going on here? All help is appreciated!

AmaniEnac commented 8 years ago

Hello,

I am having exactly the same problem. Please let me know if you have found a solution to this problem.

Thank you

gscortichini commented 8 years ago

Hello, i have the same problem.

Linusnie commented 8 years ago

I never ended up solving this (had to move on to other things) will make sure to post if I figure it out though

stephanweiss commented 8 years ago

I would say this is an issue with your camera node for the USB camera. Please make sure that this node publishes a clean 8bit grayscale image under usb_cam/image_raw

weblucas commented 8 years ago

my guess is that you are using a color camera.

use this to convert to greyscale

than use as input to PTAM the topic /image_mono

On 4 February 2016 at 22:03, Stephan Weiss notifications@github.com wrote:

I would say this is an issue with your camera node for the USB camera. Please make sure that this node publishes a clean 8bit grayscale image under usb_cam/image_raw

— Reply to this email directly or view it on GitHub https://github.com/ethz-asl/ethzasl_ptam/issues/76#issuecomment-180047648 .

gscortichini commented 8 years ago

Yes, i was using a color camera, that was the reason.

PTAM needs monocromatic frames, and usb_cam/image_raw is not good. You have to use another node between usb_cam/image_raw and the PTAM calibration tool. I used image_proc that create many topics and one of them is the usb_cam/image_mono that is perfect for the calibration! Try it!

liu-zg15 commented 5 years ago

I think he is right. @weblucas You can change your camera's parameter(In my case, mono8 works well for me.).