根据官网的教程,步骤非常简单,但是Ubuntu16.04下安装是有问题的。
Using default video config.
libARvideo: GStreamer 0.10.36
Parse error: no element "videotestsrc"
setupCamera(): Unable to open connection to camera.
main(): Unable to set up AR camera.
Linux
Most, if not all, Linux distributions provide packages of GStreamer. You should find these in your distribution's package repository.
Note that some distributions split the GStreamer plugins up further than the upstream sources. Additionally, some distributions do not include the gst-plugins-bad, gst-plugins-ugly, and gst-libav packages in their main repository, for legal reasons.
First, set the environment variable ARTOOLKIT5_VCONF to indicate the video device to be used;
for example, to use a V4L2 camera, do: export ARTOOLKIT5_VCONF="-device=LinuxV4L2"
or to use a camera driven via GStreamer, do export ARTOOLKIT5_VCONF="-device=GStreamer"
export ARTOOLKIT5_VCONF="-device=LinuxV4L2"