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

hector_qrcode_detection

asked 2014-04-23 01:24:10 -0500

Kirill_Sokolov gravatar image

updated 2014-04-26 06:04:10 -0500

I can't to start work with hector_qrcode_detection. I edited this launch file I only change this sector

<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="/camera_info" />

Because I use uvc_camera for testing, but I going to use this package with kinect. So when I start this launch file, I didn't see that any topic supsribes to image_raw. Where is problem? What I'm doing wrong?

rostopic info /image_raw

Type: sensor_msgs/Image

Publishers: 
 * /uvc_camera (http://turtle-comp:34051/)

Subscribers: None

rostopic list | grep image

/image_raw
/image_raw/compressed
/image_raw/compressed/parameter_descriptions
/image_raw/compressed/parameter_updates
/image_raw/compressedDepth
/image_raw/compressedDepth/parameter_descriptions
/image_raw/compressedDepth/parameter_updates
/image_raw/theora
/image_raw/theora/parameter_descriptions
/image_raw/theora/parameter_updates

rosnode list

/qrcode_detection_kinect
/qrcode_detection_pseye_left
/qrcode_detection_pseye_right
/rosout
/uvc_camera

rosnode info /qrcode_detection_kinect

Node [/qrcode_detection_]
Publications: None

Subscriptions: None

Services: None
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-04-23 22:07:19 -0500

Normally, camera nodes publish their topics (image_raw, camera_info etc.) to a sub namespace (/camera/image_raw, /camera/camera_info etc.) as opposed directly to the root namespace. Note also that the example launch file uses nodelets, and loads the qr detection nodelets into already pre-existing camera nodelet managers. It would help if you can edit your original question and post the output of the following commands:

rostopic info /image_raw

 rostopic list | grep image
edit flag offensive delete link more

Comments

I edited question with outputs. I hope it helps. Honestly I don't know a lot about nodelets, but I'll of course read about it.

Kirill_Sokolov gravatar image Kirill_Sokolov  ( 2014-04-23 23:52:03 -0500 )edit

Ok, looks like the qr code detection node might not be running. What's the output of "rosnode list"?

Stefan Kohlbrecher gravatar image Stefan Kohlbrecher  ( 2014-04-24 23:17:43 -0500 )edit

I added output rosnode list and output rosnode info /qrcode_detection_kinect. But how we can see the node is runnig, but it doesn't have any subscribers or publisher.

Kirill_Sokolov gravatar image Kirill_Sokolov  ( 2014-04-26 06:07:31 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2014-04-23 01:24:10 -0500

Seen: 239 times

Last updated: Apr 26 '14