ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
2

Calibration uvc_camera and ar_pose | does not match name narrow_stereo

asked 2014-11-22 18:28:27 -0500

green96 gravatar image

updated 2014-11-24 02:37:24 -0500

Hi, I have a problem with calibration of uvc_camera. According to this tutorial I calibrated my uvc_cam, I get txt file, next I converted it to *yaml file. Unfortunately something is still wrong. Please help.

I calibrated this cam due to tutorial but I am still not able to use ar_pose. It says that my cam is not calibrated due to this WARN: does not match name narrow_stereo/...

DETAILS: When I try to run uvc_cam i get warn:

przemek@przem:/opt/ros/indigo/share/uvc_camera$ rosrun uvc_camera uvc_camera_node
[ INFO] [1416757839.936490924]: using default calibration URL
[ INFO] [1416757839.936732155]: camera calibration URL: file:///home/przemek/.ros/camera_info/camera.yaml
[ WARN] [1416757839.938720327]: [camera] does not match name narrow_stereo in file /home/przemek/.ros/camera_info/camera.yaml
opening /dev/video0
pixfmt 0 = 'YUYV' desc = 'YUV 4:2:2 (YUYV)'
  discrete: 640x480:   1/30 1/15 
  discrete: 352x288:   1/30 1/15 
  discrete: 320x240:   1/30 1/15 
  discrete: 176x144:   1/30 1/15 
  discrete: 160x120:   1/30 1/15 
  discrete: 1280x1024:   2/15 1/5 
  int (Brightness, 0, id = 980900): -10 to 10 (1)
  int (Contrast, 0, id = 980901): 0 to 20 (1)
  int (Saturation, 0, id = 980902): 0 to 10 (1)
  int (Gamma, 0, id = 980910): 100 to 200 (1)
  int (Gain, 0, id = 980913): 32 to 48 (1)
  menu (Power Line Frequency, 0, id = 980918): 0 to 2 (1)
    0: Disabled
    1: 50 Hz
    2: 60 Hz
  int (Sharpness, 0, id = 98091b): 0 to 10 (1)
select timeout in grab

My yaml file looks:

image_width: 640
image_height: 480
camera_name: narrow_stereo
camera_matrix:
  rows: 3
  cols: 3
  data: [562.565802, 0, 334.212253, 0, 559.2623160000001, 230.512081, 0, 0, 1]
distortion_model: plumb_bob
distortion_coefficients:
  rows: 1
  cols: 5
  data: [0.06530999999999999, -0.217992, 0.000628, -0.005040999999999999, 0]
rectification_matrix:
  rows: 3
  cols: 3
  data: [1, 0, 0, 0, 1, 0, 0, 0, 1]
projection_matrix:
  rows: 3
  cols: 4
  data: [560.932284, 0, 331.534094, 0, 0, 561.324191, 230.144188, 0, 0, 0, 1, 0]

It is only warn but I can't use ar_pose too:

przemek@przem:/opt/ros/indigo/share/uvc_camera$ roslaunch ar_pose ar_pose_single.launch 
... logging to /home/przemek/.ros/log/7190f504-7328-11e4-86d4-001e65a44a56/roslaunch-przem-27002.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://przem:54421/

SUMMARY
========

PARAMETERS
 * /ar_pose/marker_center_x: 0.0
 * /ar_pose/marker_center_y: 0.0
 * /ar_pose/marker_pattern: /home/przemek/tum...
 * /ar_pose/marker_width: 152.4
 * /ar_pose/threshold: 100
 * /ar_pose/use_history: True
 * /camera/uvc_camera_node/camera_info_url: file:///opt/ros/i...
 * /camera/uvc_camera_node/device: /dev/video0
 * /camera/uvc_camera_node/fps: 30
 * /camera/uvc_camera_node/frame: camera
 * /camera/uvc_camera_node/height: 240
 * /camera/uvc_camera_node/width: 320
 * /rosdistro: indigo
 * /rosversion: 1.11.9

NODES
  /camera/
    image_proc (image_proc/image_proc)
    uvc_camera_node (uvc_camera/uvc_camera_node)
  /
    ar_pose (ar_pose/ar_single)
    rviz (rviz/rviz)
    world_to_cam (tf/static_transform_publisher)

ROS_MASTER_URI=http://localhost:11311

core service [/rosout] found
process[rviz-1]: started with pid [27020]
process[world_to_cam-2]: started with pid [27021]
process[camera/image_proc-3]: started with pid [27038]
process[camera/uvc_camera_node-4]: started ...
(more)
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
6

answered 2014-11-22 23:34:19 -0500

ahendrix gravatar image

updated 2014-11-23 15:48:15 -0500

Have you tried editing the camera caliibration file and changing the line with camera_name: narrow_stereo to camera_name: camera ?

edit flag offensive delete link more

Comments

Thank you for your support! I can't believe that it was solution. I get error launching roslaunch ar_pose ar_pose_single.launch, I thing I will get rid of this error using remap, but error again I add in .launch this two lines and I get this errors: launch and errors - http://pastebin.com/1y9au0HM

green96 gravatar image green96  ( 2014-11-23 17:37:04 -0500 )edit

I'm not sure I understand; is your problem fixed or not? You shouldn't have to modify the demo launch file; those remappings are probably a bad idea, and should already be covered by the placing the node in a namespace.

ahendrix gravatar image ahendrix  ( 2014-11-23 20:03:06 -0500 )edit

Sorry, I can't edit previous comment. Changing camera name solve problem with warming. I still get error when I launch ar_pose_single.lanuch, details in my main post.

Rectified topic '/camera/image_rect' requested but camera publishing '/camera/camera_info' is uncalibrated

green96 gravatar image green96  ( 2014-11-24 02:29:54 -0500 )edit

I thought that this problem will be solved when I use remap according to tips on this site, so I change original launch, but something still is wrong.

green96 gravatar image green96  ( 2014-11-24 02:35:25 -0500 )edit

In my case:

topics of uvc_node: /image_raw, /camera_info

topics of ar_pose: camera/image_raw, camera/camera_info

do you have any idea?

green96 gravatar image green96  ( 2014-11-24 02:44:13 -0500 )edit

I get this errors and warnings because I didn't calibrate my camera in appropriate way. It was due to 'broken' commit button on calibration gui.

green96 gravatar image green96  ( 2014-11-25 19:51:43 -0500 )edit

So if the [camera] does not match name warning appears, does that mean the yaml file is being ignored? Or it's using it anyway, and just wants you to know there's a name mismatch?

dinosaur gravatar image dinosaur  ( 2015-06-30 19:05:49 -0500 )edit
0

answered 2022-10-13 22:08:08 -0500

Face gravatar image

Hi every one. I don't know if this is a good fix (i'm thinking it's not) but; I'm trying to install oCamS-1cgn-U on my RPI 4 using Buster/Ros-Noetic. I've been fighting with this for quite some time. Just getting it to install has been an education all on it's own. Now that I have it installed I'm getting this same error. I actually took out " narrow_stereo " just leaving " /left & /right in both yaml files respectively.

I no longer get a warning but is this actually alright to do?

edit flag offensive delete link more

Comments

In the future, please create your own new question rather than reviving an 8 year old one. The ros release is certainly different, and big changes have been made to the ros code and demos since 2014. If you think the old question/comments are relevant and helpful, include a link to it in your new description. Thanks.

Mike Scheutzow gravatar image Mike Scheutzow  ( 2022-10-15 08:41:37 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2014-11-22 18:28:27 -0500

Seen: 2,586 times

Last updated: Oct 13 '22