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

Can't get correct position of ARMarkers

asked 2013-04-11 04:36:42 -0500

Mendelson gravatar image

updated 2013-04-11 04:39:40 -0500

Hi everyone!

I'm using ar_pose to identify some markers. It identifies the markers correctly (pattern 1, 2, etc.), but their positions are not very good. The distance is not being correctly assigned. I guess this is not ar_pose's problem.

See the image below:

image description

Could it be a depth_registration issue?

Also, I tried calibrating my camera (kinect) following these tutorials:

1) rgb calibration

2) IR calibration

If couldn't make myself clear, please, tell me, so that I can explain it better.

I would really appreciate if someone could help me!

Thanks!

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2013-06-03 23:42:21 -0500

Procópio gravatar image

updated 2013-06-05 01:49:01 -0500

Check your the file that specifies the patterns you will use. It contains the name, the marker to detect, its width and center position. If you have the wrong size there, the algorithm will think the markers are closer/farther then they really are. This file will be loaded by the ar_pose package, for example in your launch file:

<param name="marker_pattern_list" type="string" value="$(find yourpackage)/yourpatterns"/>

yourpatterns file will look like this:

#the number of patterns to be recognized
3

#pattern 1
#Sample1
#data/patt.sample1
#250.0
#0.0 0.0

#pattern 2
Sample2
data/patt.sample2
250.0
0.0 0.0

#pattern 3
Hiro
data/patt.hiro
250.0
0.0 0.0

#pattern 4
Kanji
data/patt.kanji
250.0
0.0 0.0

You have to measure the size of your printed marker and write it in mm in the third field of each pattern block (where you read 250.0 here).

edit flag offensive delete link more

Comments

What is the influence of the marker_width ? is it finally same thing ? And if for instance I use directly a pattern file like patt.hiro ? I'm trying to increase pattern size but I haven't very good results for the detection. EDIT: One is for ar_single(marker_width), other is for ar_multi(file)

jep31 gravatar image jep31  ( 2013-06-04 00:21:16 -0500 )edit

Hi. I updated the answer, hope it can give you more info. Please, post the patterns file you are using for your the experiment of your question (it is not patt.hiro).

Procópio gravatar image Procópio  ( 2013-06-04 03:34:14 -0500 )edit

My question is different so I have created a other topic: http://answers.ros.org/question/64290/marker-long-distance-tracking-with-kinect/ I 'm posting a part of my launch file there

jep31 gravatar image jep31  ( 2013-06-04 03:55:35 -0500 )edit

did you managed to get the correct distance of your markers?

Procópio gravatar image Procópio  ( 2013-06-05 00:01:15 -0500 )edit

Yes I did thanks, I printed a 200mm marker and position orientation are good. It's only a detection issue with some luminosity. My paper is bright with room light.

jep31 gravatar image jep31  ( 2013-06-05 01:35:56 -0500 )edit

Question Tools

Stats

Asked: 2013-04-11 04:36:42 -0500

Seen: 413 times

Last updated: Jun 05 '13