0
$\begingroup$

Rosanswers logo

Hello, I would like to test detecting AR Tag with ar_track_alvar launch using IndividualMarkersNoKinect with my IP Camera. Since I published my own image_raw topic and camera_info topic, I have no ideas where to put the output_frame for that ar_track package..

Can you guys help me?

thanks!


Originally posted by Dipta on ROS Answers with karma: 3 on 2014-04-14

Post score: 0

$\endgroup$

2 Answers 2

0
$\begingroup$

Rosanswers logo

The package documentation says

Output frame (string) -- The name of the frame that the published Cartesian locations of the AR tags will be relative to

So you should use the frame of the camera as output frame for alvar.

In my project I use

<arg name="output_frame" value="/camera" />

because my image gets published to

<param name="frame_id" type="string" value="camera" />

(I'm using the uvc_camera package for my cam.)


Originally posted by BennyRe with karma: 2949 on 2014-04-14

This answer was ACCEPTED on the original site

Post score: 2

$\endgroup$
0
$\begingroup$

Rosanswers logo

Sorry for the delayed response,

In addition to what BennyRe rightly said, I suggest you check your camera frame id with

rostopic echo /camera/camera_info    .

In this case, publishing with respect to the camera frame is a good idea, since ar_track_alvar returns marker coordinates. (It is similar to the ar_single and ar_multiple components of the ar_pose package. )

I had set my output_frame as v4l_frame using:

<param name="frame_id" value="/v4l_frame" /> 

in the corresponding launch file.

In case you do not have frame id being set (or your driver lacks camera_info as mine did), try including that in your driver (be it gscam / usb_cam / uvc_camera ).

In case your camera frame is not publish


Originally posted by Tanmay with karma: 110 on 2014-06-05

This answer was NOT ACCEPTED on the original site

Post score: 1

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.