Making New ARTags

From Brown University Robotics

(Difference between revisions)
Jump to: navigation, search
m
m (formatting)
Line 8: Line 8:
You only have to do this once per install.
You only have to do this once per install.
-
<code><nowiki>
+
<code>
roscd ar_recog<br />
roscd ar_recog<br />
cd src/ARToolKit/util/mk_patt<br />
cd src/ARToolKit/util/mk_patt<br />
-
</nowiki></code>
+
</code>
now edit mk_patt.c
now edit mk_patt.c
change:
change:
-
<code><nowiki>
+
<code>
-
#  if defined(AR_INPUT_GSTREAMER)<br />
+
<nowiki>#  if defined(AR_INPUT_GSTREAMER)</nowiki><br />
char&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*vconf = "videotestsrc";<br />
char&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*vconf = "videotestsrc";<br />
-
</nowiki></code>
+
</code>
to:
to:
Line 31: Line 31:
Make mk_patt:
Make mk_patt:
-
<code><nowiki>
+
<code>
make
make
-
</nowiki></code>
+
</code>

Revision as of 16:35, 26 August 2010

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: # if defined(AR_INPUT_GSTREAMER)
char                   *vconf = "videotestsrc";

to: # if defined(AR_INPUT_GSTREAMER)<br/> char                   *vconf = "v4l2src device=/dev/video0 ! video/x-raw-rgb ! ffmpegcolorspace ! identity name=artoolkit ! fakesink";<br/>

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

Make mk_patt:

make