Fawkes API
Fawkes Development Version
vision_master.cpp
1
2
/***************************************************************************
3
* vision_master.h - Vision Master aspect for Fawkes
4
*
5
* Created: Tue May 29 14:45:54 2007
6
* Copyright 2006-2007 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 <aspect/vision_master.h>
25
26
namespace
fawkes
{
27
28
/** @class VisionMasterAspect <aspect/vision_master.h>
29
* Vision Master Aspect.
30
*
31
* This aspect provides access to the vision muster. Your thread having
32
* this aspect has to call the proper constructor that sets the vision
33
* master.
34
*
35
* @ingroup Aspects
36
* @author Tim Niemueller
37
*/
38
39
/** Constructor.
40
* @param master vision master
41
*/
42
VisionMasterAspect::VisionMasterAspect
(
firevision::VisionMaster
*master)
43
{
44
add_aspect
(
"VisionMasterAspect"
);
45
this->master = master;
46
}
47
48
/** Virtual empty Destructor. */
49
VisionMasterAspect::~VisionMasterAspect
()
50
{
51
}
52
53
/** Get vision master.
54
* @return vision master
55
*/
56
firevision::VisionMaster
*
57
VisionMasterAspect::vision_master
()
58
{
59
return
master;
60
}
61
62
}
// end namespace fawkes
fawkes::Aspect::add_aspect
void add_aspect(const char *name)
Add an aspect to a thread.
Definition:
aspect.cpp:53
fawkes::VisionMasterAspect::VisionMasterAspect
VisionMasterAspect(firevision::VisionMaster *master) __attribute__((nonnull))
Constructor.
Definition:
vision_master.cpp:46
fawkes::VisionMasterAspect::~VisionMasterAspect
virtual ~VisionMasterAspect()
Virtual empty Destructor.
Definition:
vision_master.cpp:53
fawkes
fawkes::VisionMasterAspect::vision_master
firevision::VisionMaster * vision_master()
Get vision master.
Definition:
vision_master.cpp:61
firevision::VisionMaster
Definition:
vision_master.h:42
src
libs
aspect
vision_master.cpp
Generated by
1.8.16