Cropped/displaced camera view in rviz (gscam)
I'm using gscam to stream the view from a USB camera. However, when viewing it in an rviz camera display only a cropped view is shown. It seems like the view is displaced by half the view size to the right and down, so only a quarter of the view is shown. When using image_view everything looks fine. Does anyone know what is causing this problem?
According to mplayer the camera image's resolution is 640x480.
I'm using the default camera_parameters.txt:
# Camera intrinsics [image] width 640 height 480 [default] camera matrix 1.00000 0.00000 1.00000 0.00000 1.00000 1.00000 0.00000 0.00000 1.00000 distortion 0.00000 0.00000 0.00000 0.00000 0.00000 rectification 1.00000 0.00000 0.00000 0.00000 1.00000 0.00000 0.00000 0.00000 1.00000 projection 1.00000 0.00000 1.00000 0.00000 0.00000 1.00000 1.00000 0.00000 0.00000 0.00000 1.00000 0.00000
and this is my GSCAM_CONFIG:
v4l2src device=/dev/video0 ! video/x-raw-rgb, width=640, height=480, framerate=30/1 ! ffmpegcolorspace ! identity name=ros ! fakesink"