Making New ARTags

From Brown University Robotics

Revision as of 16:26, 26 August 2010 by Tjay (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Before You Start

Install ar_recog
svn co http://brown-ros-pkg.googlecode.com/svn/trunk/experimental/ar_recog ar_recog; roscd ar_recog; rosmake

Make mk_patt

You only have to do this once per install.

roscd ar_recog cd src/ARToolKit/util/mk_patt

now edit mk_patt.c

change:

  1. if defined(AR_INPUT_GSTREAMER)

char *vconf = "videotestsrc";

to:

  1. if defined(AR_INPUT_GSTREAMER)

char *vconf = "v4l2src device=/dev/video0 ! video/x-raw-rgb ! ffmpegcolorspace ! identity name=artoolkit ! fakesink";

or whatever gstreamer config is appropriate for the camera you want to do (not the change from ros to artoolkit).

Make mk_patt:

make