oCam 1CGN-U and usb_cam

Post Reply
lhnguyen
Posts: 2
Joined: Fri Sep 23, 2016 11:27 pm
languages_spoken: english
ODROIDs: XU 4
Has thanked: 0
Been thanked: 0
Contact:

oCam 1CGN-U and usb_cam

Unread post by lhnguyen » Sun Oct 20, 2019 11:39 pm

Hi all,

We use oCam 5CRO-U with ROS package usb_cam and the image acquisition performs very well.

Recently, we have purchased two oCam 1CGN-U and two 1CGN-U-T. However, we cannot do the image acquisition.

If in usb_cam-test.launch by setting image 320x240

Code: Select all

roslaunch usb_cam usb_cam-test1.launch
... logging to /home/auv/.ros/log/159df3b4-f334-11e9-bb0a-c8f7504eb668/roslaunch-auv7530-22744.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://192.168.0.30:46589/

SUMMARY
========

PARAMETERS
 * /image_view/autosize: True
 * /rosdistro: kinetic
 * /rosversion: 1.12.14
 * /usb_cam/camera_frame_id: usb_cam
 * /usb_cam/framerate: 30
 * /usb_cam/image_height: 240
 * /usb_cam/image_width: 320
 * /usb_cam/io_method: mmap
 * /usb_cam/pixel_format: yuyv
 * /usb_cam/video_device: /dev/video1

NODES
  /
    image_view (image_view/image_view)
    usb_cam (usb_cam/usb_cam_node)

ROS_MASTER_URI=http://192.168.0.30:11311

process[usb_cam-1]: started with pid [22761]
process[image_view-2]: started with pid [22762]
[ INFO] [1571581423.093057872]: using default calibration URL
[ INFO] [1571581423.093138355]: camera calibration URL: file:///home/auv/.ros/camera_info/head_camera.yaml
[ INFO] [1571581423.093793183]: Starting 'head_camera' (/dev/video1) at 320x240 via mmap (yuyv) at 30 FPS
[ INFO] [1571581423.174901329]: Using transport "raw"
[ WARN] [1571581423.195149674]: unknown control 'white_balance_temperature_auto'

[ WARN] [1571581423.197163060]: unknown control 'focus_auto'
then the image_view shows the blurring
[imgur] https://imgur.com/a/ty8OwFR
[/imgur]

If we set image 640x480 then "process has died"

Code: Select all

roslaunch usb_cam usb_cam-test1.launch
... logging to /home/auv/.ros/log/159df3b4-f334-11e9-bb0a-c8f7504eb668/roslaunch-auv7530-23041.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://192.168.0.30:44093/

SUMMARY
========

PARAMETERS
 * /image_view/autosize: True
 * /rosdistro: kinetic
 * /rosversion: 1.12.14
 * /usb_cam/camera_frame_id: usb_cam
 * /usb_cam/framerate: 30
 * /usb_cam/image_height: 480
 * /usb_cam/image_width: 640
 * /usb_cam/io_method: mmap
 * /usb_cam/pixel_format: yuyv
 * /usb_cam/video_device: /dev/video1

NODES
  /
    image_view (image_view/image_view)
    usb_cam (usb_cam/usb_cam_node)

ROS_MASTER_URI=http://192.168.0.30:11311

process[usb_cam-1]: started with pid [23058]
process[image_view-2]: started with pid [23059]
[ INFO] [1571581549.476629689]: using default calibration URL
[ INFO] [1571581549.476675181]: camera calibration URL: file:///home/auv/.ros/camera_info/head_camera.yaml
[ INFO] [1571581549.477193686]: Starting 'head_camera' (/dev/video1) at 640x480 via mmap (yuyv) at 30 FPS
[ WARN] [1571581549.481842403]: unknown control 'white_balance_temperature_auto'

[ WARN] [1571581549.483759104]: unknown control 'focus_auto'

[ INFO] [1571581549.560132500]: Using transport "raw"
[usb_cam-1] process has died [pid 23058, exit code -11, cmd /home/auv/catkin_ws/devel/lib/usb_cam/usb_cam_node __name:=usb_cam __log:=/home/auv/.ros/log/159df3b4-f334-11e9-bb0a-c8f7504eb668/usb_cam-1.log].
log file: /home/auv/.ros/log/159df3b4-f334-11e9-bb0a-c8f7504eb668/usb_cam-1*.log
We tried with oCam_viewer_Linux and the cameras 1CGN-U and 1CGN-U-T work.

Even we tried to use all the firmware versions, the sam problem happens.

Do you know how to set usb_cam to work with these cameras? Any suggestions are welcome!

Thanks

WITHROBOT
Posts: 144
Joined: Mon Mar 14, 2016 1:54 pm
languages_spoken: english
ODROIDs: Odroid-C2
Has thanked: 0
Been thanked: 1 time
Contact:

Re: oCam 1CGN-U and usb_cam

Unread post by WITHROBOT » Mon Oct 21, 2019 11:34 am

The error occurs because you are trying to use the YUYV format which is not supported by the oCam-1CGN-U or oCam-1CGN-U-T camera.

We attached the ROS package for oCam-1CGN-U and oCam-1CGN-U-T.

Please note that
- You can launch by using "$roslaunch ocam ocam_ros.launch" command.
- You can set some parameter dynamically by using "$rosrun rqt_reconfigure rqt_reconfigure" command.
Attachments
ocam.tar.gz
(16.4 KiB) Downloaded 5 times

Post Reply

Return to “oCAM USB 3.0 Camera”

Who is online

Users browsing this forum: No registered users and 2 guests