tum-vision / lsd_slam

LSD-SLAM
GNU General Public License v3.0
2.62k stars 1.23k forks source link

Can't find camera calibration file #282

Closed caap95 closed 7 years ago

caap95 commented 7 years ago

Hi,

I'm trying to use a USB Camera, HP HD 4310, in this lgorithm. The thing is, i'm really new at ROS, so i must be missing something really basic.

First, I installed uvc_camera.

I confirmed that my camera is in /dev/video1.

Then i have in parallel a roscore running in one terminal, and in another i'm doing:

rosrun uvc_camera uvc_camera_node device:=/dev/video1

This gives me this output:

[ INFO] [1506637439.537106354]: using default calibration URL [ INFO] [1506637439.537174997]: camera calibration URL: file:///home/cesar/.ros/camera_info/camera.yaml [ INFO] [1506637439.537215489]: Unable to open camera calibration file [/home/cesar/.ros/camera_info/camera.yaml] [ WARN] [1506637439.537231103]: Camera calibration file /home/cesar/.ros/camera_info/camera.yaml not found. opening /dev/video0 pixfmt 0 = 'YUYV' desc = 'YUYV 4:2:2' discrete: 640x480: 1/30 1/25 1/20 discrete: 160x120: 1/30 1/25 1/20 discrete: 176x144: 1/30 1/25 1/20 discrete: 320x240: 1/30 1/25 1/20 discrete: 352x288: 1/30 1/25 1/20 int (Brightness, 0, id = 980900): -64 to 64 (1) int (Contrast, 0, id = 980901): 0 to 64 (1) int (Saturation, 0, id = 980902): 0 to 128 (1) int (Hue, 0, id = 980903): -180 to 180 (1) bool (White Balance Temperature, Auto, 0, id = 98090c): 0 to 1 (1) int (Gamma, 0, id = 980910): 100 to 500 (1) int (Gain, 0, id = 980913): 0 to 128 (1) menu (Power Line Frequency, 0, id = 980918): 0 to 2 (1) 0: Disabled 1: 50 Hz 2: 60 Hz int (White Balance Temperature, 16, id = 98091a): 2800 to 6500 (10) int (Sharpness, 0, id = 98091b): 0 to 8 (1) int (Backlight Compensation, 0, id = 98091c): 0 to 1 (1) menu (Exposure, Auto, 0, id = 9a0901): 0 to 3 (1) int (Exposure (Absolute), 16, id = 9a0902): 50 to 10000 (1)

And stays here infinitly.

As you can see, it wasn't able to find the calibration file and so it changed to /dev/video0. The thing is, i don't even know why is he trying to look in "/home/cesar/.ros/camera_info/camera.yaml". I never specified that path, or any path. The file ".ros" in "/home/cesar" doesn't exist.

So, can someone tell me what I'm doing wrong please?

caap95 commented 7 years ago

i managed to solve this, i only needed to calibrate my camera, i used uvc camera calibrator