ethz-asl / ethzasl_ptam

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

the GUI display like this when calibrate the camera. #78

Closed kintzhao closed 8 years ago

kintzhao commented 8 years ago

ptam2

roslaunch ptam cameracalibrator.launch

when i run the camera node ,and display true in rviz ,but when open the ptam calibrate ,display like the picture,why? can you tell me the reason , how to solve it ?

notenti commented 8 years ago

Did you figure out how to fix this issue? I am having the same problem and can't find a solution. Thanks.

stephanweiss commented 8 years ago

is it an rgb image? what does rosrun image_view image_view image:=[your image topic] show?

notenti commented 8 years ago

It's a raw image; the camera is greyscale. If it helps I am using an mv bluefox camera. When I view the image in rviz is comes up perfectly.

notenti commented 8 years ago

Another thought: could it have to do with the TooN library? When I install TooN, libcvd, and gvars, the two latter libraries search for TooN, but can never find it in the system. I have tried setting all the paths manually, but ended up giving up. Could this be it?

stephanweiss commented 8 years ago

this could be the issue, try a clean checkout and compile using our repository.

notenti commented 8 years ago

I did a fresh install of TooN, libcvd, gvars, and PTAM and I'm still getting the double image. Could it have to do with my laptop's gpu?

stephanweiss commented 8 years ago

are you absolutely positive, that it is a b/w camera? Is your camera node converting it to a color image? I am fairly certain that this is a color/bw issue...or in general an issue how your image node is publishing the image and its meta info.

notenti commented 8 years ago

AH! It was.There was an option in the image publishing launch file where I could set whether to use color or not. Even though the camera was never publishing color images PTAM must have been treating it like it was. Thank you!

stephanweiss commented 8 years ago

Great! glad it was not another strange issue :-)