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

qrcode_detection problem

asked 2015-03-29 06:02:06 -0500

mohammad gravatar image

hi everyone

I want to use hector_qrcode_detection package. But i dont know if an uvc cemera is enough. In the launch file i see three different vision sources:

<launch>   
<remap from="image_percept" to="worldmodel/image_percept" />

<node name="qrcode_detection_kinect" pkg="nodelet" type="nodelet" args="load hector_qrcode_detection/qrcode_detection openni/openni_nodelet_manager">
<remap from="openni/image"             to="/image_raw" />
<remap from="openni/image_percept"     to="worldmodel/image_percept" />
<remap from="openni/image/qrcode"      to="image/qrcode" />
<remap from="openni/image/camera_info" to="image/camera_info" />   
</node>

<node name="qrcode_detection_pseye_left" pkg="nodelet" type="nodelet" args="load hector_qrcode_detection/qrcode_detection pseye_camera_left">
<remap from="image" to="left/image_mono" />   
</node>

<node name="qrcode_detection_pseye_right" pkg="nodelet" type="nodelet" args="load hector_qrcode_detection/qrcode_detection pseye_camera_right">
<remap from="image" to="right/image_mono" />  
</node>
</launch>

Do i need to add kinect and another camera to use it? Honestly i can not do it with my uvc camera.

thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-03-29 09:38:39 -0500

paulbovbel gravatar image

updated 2015-03-29 09:38:57 -0500

You do not need another camera. The above launch files loads a separate instance of the qrcode detection nodelet into each camera's nodelet manager (kinect, and two pseye cameras).

If you're looking to do some very simple qr code detection, you can also try zbar_ros, sample launchfile here.

edit flag offensive delete link more

Comments

Thanks for your help. It seems useful package. But when i try to run launch file i see an error: Skipping XML Document "/opt/ros/hydro/share/zbar_ros/nodelets.xml". Do you know how should i add nodelets,xml file to my package?

mohammad gravatar image mohammad  ( 2015-03-30 02:58:04 -0500 )edit

I solved it. Simplely i copied nodelets.xml from your repository to my zbar_ros directory.

mohammad gravatar image mohammad  ( 2015-03-30 03:35:55 -0500 )edit

Thanks for letting me know, fixed here https://github.com/clearpathrobotics/...

paulbovbel gravatar image paulbovbel  ( 2015-03-31 13:08:05 -0500 )edit

But when I try to use zbar_ros with a usbCamera . I see some errors. [FATAL] [1431789473.318155604]: Service call failed!

wsAndy gravatar image wsAndy  ( 2015-05-16 10:25:07 -0500 )edit

[zbar_manager-1] process has died [pid 2691, exit code -11, cmd /opt/ros/indigo/lib/nodelet/nodelet manager __name:=zbar_manager __log:=/home/exbot/.ros/log/83a7a9c2-fbdb-11e4-9ba8-485ab6072ea3/zbar_manager-1.log]. log file: /home/exbot/.ros/log/83a7a9c2-fbdb-11e4-9ba8-485ab6072ea3/zbar_manager-1.

wsAndy gravatar image wsAndy  ( 2015-05-16 10:25:46 -0500 )edit

[uvc_camera-2] process has died [pid 2692, exit code 255, cmd /opt/ros/indigo/lib/nodelet/nodelet load uvc_camera/CameraNodelet zbar_manager image_raw:=image __name:=uvc_camera __log:=/home/exbot/.ros/log/83a7a9c2-fbdb-11e4-9ba8-485ab6072ea3/uvc_camera-2.log].

wsAndy gravatar image wsAndy  ( 2015-05-16 10:26:13 -0500 )edit

Please make a separate issue and post more information.

paulbovbel gravatar image paulbovbel  ( 2015-05-25 12:56:01 -0500 )edit

Well, I has solved this problem. If I want to use zbar_ros to identify QR code, I just need to change the topic's name. In fact , I don't have a nodelet for usb_cam so that I occured such problems.

wsAndy gravatar image wsAndy  ( 2015-05-28 07:01:03 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2015-03-29 06:02:06 -0500

Seen: 654 times

Last updated: Mar 29 '15