Fawkes API
Fawkes Development Version
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
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
26
namespace
fawkes {
27
#if 0
/* just to make Emacs auto-indent happy */
28
}
29
#endif
30
31
/** @class NaoQiAspect <plugins/nao/aspect/naoqi.h>
32
* Thread aspect to get access to NaoQi broker.
33
* Give this aspect to your thread to use features provided by NaoQi.
34
*
35
* @ingroup Aspects
36
* @author Tim Niemueller
37
*/
38
39
/** @var AL::ALPtr<AL::ALBroker> NaoQiAspect::naoqi_broker
40
* NaoQi broker.
41
* Use this broker to access features provided by NaoQi and its modules.
42
*/
43
44
/** Constructor. */
45
NaoQiAspect::NaoQiAspect()
46
{
47
add_aspect(
"NaoQiAspect"
);
48
}
49
50
51
/** Virtual empty destructor. */
52
NaoQiAspect::~NaoQiAspect()
53
{
54
}
55
56
57
/** Init OpenNI aspect.
58
* This set the OpenNI context.
59
* It is guaranteed that this is called for an OpenNI Thread before start
60
* is called (when running regularly inside Fawkes).
61
* @param openni_context OpenNI context to use
62
*/
63
void
64
NaoQiAspect::init_NaoQiAspect(AL::ALPtr<AL::ALBroker> naoqi_broker)
65
{
66
this->naoqi_broker = naoqi_broker;
67
}
68
69
}
// end namespace fawkes
src
plugins
nao
aspect
naoqi.cpp
Generated by
1.8.5