Fawkes API
Fawkes Development Version
|
00001 00002 /*************************************************************************** 00003 * naoqi.cpp - NaoQi aspect for Fawkes 00004 * 00005 * Created: Thu May 12 15:50:44 2011 00006 * Copyright 2006-2011 Tim Niemueller [www.niemueller.de] 00007 * 00008 ****************************************************************************/ 00009 00010 /* This program is free software; you can redistribute it and/or modify 00011 * it under the terms of the GNU General Public License as published by 00012 * the Free Software Foundation; either version 2 of the License, or 00013 * (at your option) any later version. A runtime exception applies to 00014 * this software (see LICENSE.GPL_WRE file mentioned below for details). 00015 * 00016 * This program is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 * GNU Library General Public License for more details. 00020 * 00021 * Read the full text in the LICENSE.GPL_WRE file in the doc directory. 00022 */ 00023 00024 #include <plugins/nao/aspect/naoqi.h> 00025 00026 namespace fawkes { 00027 #if 0 /* just to make Emacs auto-indent happy */ 00028 } 00029 #endif 00030 00031 /** @class NaoQiAspect <plugins/nao/aspect/naoqi.h> 00032 * Thread aspect to get access to NaoQi broker. 00033 * Give this aspect to your thread to use features provided by NaoQi. 00034 * 00035 * @ingroup Aspects 00036 * @author Tim Niemueller 00037 */ 00038 00039 /** @var AL::ALPtr<AL::ALBroker> NaoQiAspect::naoqi_broker 00040 * NaoQi broker. 00041 * Use this broker to access features provided by NaoQi and its modules. 00042 */ 00043 00044 /** Constructor. */ 00045 NaoQiAspect::NaoQiAspect() 00046 { 00047 add_aspect("NaoQiAspect"); 00048 } 00049 00050 00051 /** Virtual empty destructor. */ 00052 NaoQiAspect::~NaoQiAspect() 00053 { 00054 } 00055 00056 00057 /** Init OpenNI aspect. 00058 * This set the OpenNI context. 00059 * It is guaranteed that this is called for an OpenNI Thread before start 00060 * is called (when running regularly inside Fawkes). 00061 * @param openni_context OpenNI context to use 00062 */ 00063 void 00064 NaoQiAspect::init_NaoQiAspect(AL::ALPtr<AL::ALBroker> naoqi_broker) 00065 { 00066 this->naoqi_broker = naoqi_broker; 00067 } 00068 00069 } // end namespace fawkes