Fawkes API Fawkes Development Version
naoqi.cpp
1
2/***************************************************************************
3 * naoqi.cpp - NaoQi aspect for Fawkes
4 *
5 * Created: Thu May 12 15:50:44 2011
6 * Copyright 2006-2011 Tim Niemueller [www.niemueller.de]
7 *
8 ****************************************************************************/
9
10/* This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version. A runtime exception applies to
14 * this software (see LICENSE.GPL_WRE file mentioned below for details).
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Library General Public License for more details.
20 *
21 * Read the full text in the LICENSE.GPL_WRE file in the doc directory.
22 */
23
24#include <plugins/nao/aspect/naoqi.h>
25
26namespace fawkes {
27
28/** @class NaoQiAspect <plugins/nao/aspect/naoqi.h>
29 * Thread aspect to get access to NaoQi broker.
30 * Give this aspect to your thread to use features provided by NaoQi.
31 *
32 * @ingroup Aspects
33 * @author Tim Niemueller
34 */
35
36/** @var AL::ALPtr<AL::ALBroker> NaoQiAspect::naoqi_broker
37 * NaoQi broker.
38 * Use this broker to access features provided by NaoQi and its modules.
39 */
40
41/** Constructor. */
43{
44 add_aspect("NaoQiAspect");
45}
46
47/** Virtual empty destructor. */
49{
50}
51
52/** Init OpenNI aspect.
53 * This set the OpenNI context.
54 * It is guaranteed that this is called for an OpenNI Thread before start
55 * is called (when running regularly inside Fawkes).
56 * @param openni_context OpenNI context to use
57 */
58void
59NaoQiAspect::init_NaoQiAspect(AL::ALPtr<AL::ALBroker> naoqi_broker)
60{
61 this->naoqi_broker = naoqi_broker;
62}
63
64} // end namespace fawkes
void add_aspect(const char *name)
Add an aspect to a thread.
Definition: aspect.cpp:49
AL::ALPtr< AL::ALBroker > naoqi_broker
NaoQi broker.
Definition: naoqi.h:44
NaoQiAspect()
Constructor.
Definition: naoqi.cpp:42
virtual ~NaoQiAspect()
Virtual empty destructor.
Definition: naoqi.cpp:48
Fawkes library namespace.