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
objpos_average.h
1
2
/***************************************************************************
3
* objpos_average.h - Fawkes WorldModel Object Position Average Fuser
4
*
5
* Created: Tue Jan 13 13:48:49 2009
6
* Copyright 2006-2009 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.
14
*
15
* This program is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
* GNU Library General Public License for more details.
19
*
20
* Read the full text in the LICENSE.GPL file in the doc directory.
21
*/
22
23
#ifndef __PLUGINS_WORLDMODEL_FUSER_OBJPOS_AVERAGE_H_
24
#define __PLUGINS_WORLDMODEL_FUSER_OBJPOS_AVERAGE_H_
25
26
#include "fuser.h"
27
28
#include <blackboard/interface_observer.h>
29
#include <core/utils/lock_list.h>
30
31
#include <string>
32
33
namespace
fawkes
34
{
35
class
BlackBoard;
36
class
Logger;
37
class
ObjectPositionInterface;
38
}
39
40
class
WorldModelObjPosAverageFuser
41
:
public
WorldModelFuser
,
42
public
fawkes::BlackBoardInterfaceObserver
43
{
44
public
:
45
WorldModelObjPosAverageFuser
(
fawkes::Logger
*logger,
46
fawkes::BlackBoard
*blackboard,
47
const
char
*from_id_pattern,
const
char
*to_id);
48
~WorldModelObjPosAverageFuser
();
49
50
51
virtual
void
fuse
();
52
53
virtual
void
bb_interface_created
(
const
char
*type,
const
char
*
id
)
throw
();
54
55
private
:
56
fawkes::BlackBoard
*__blackboard;
57
fawkes::Logger
*__logger;
58
std::string __to_id;
59
60
fawkes::LockList<fawkes::ObjectPositionInterface *>
__input_ifs;
61
fawkes::ObjectPositionInterface
*__output_if;
62
63
fawkes::LockList<fawkes::ObjectPositionInterface *>::iterator
__iii;
64
};
65
66
67
#endif
src
plugins
worldmodel
fusers
objpos_average.h
Generated by
1.8.1.1