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 #if 0 /* just to make Emacs auto-indent happy */
28 }
29 #endif
30 
31 /** @class VisionMasterAspect <aspect/vision_master.h>
32  * Vision Master Aspect.
33  *
34  * This aspect provides access to the vision muster. Your thread having
35  * this aspect has to call the proper constructor that sets the vision
36  * master.
37  *
38  * @ingroup Aspects
39  * @author Tim Niemueller
40  */
41 
42 
43 /** Constructor.
44  * @param master vision master
45  */
47 {
48  add_aspect("VisionMasterAspect");
49  this->master = master;
50 }
51 
52 
53 /** Virtual empty Destructor. */
55 {
56 }
57 
58 
59 /** Get vision master.
60  * @return vision master
61  */
64 {
65  return master;
66 }
67 
68 } // end namespace fawkes
Fawkes library namespace.
void add_aspect(const char *name)
Add an aspect to a thread.
Definition: aspect.cpp:52
VisionMasterAspect(firevision::VisionMaster *master) __attribute__((nonnull))
Constructor.
virtual ~VisionMasterAspect()
Virtual empty Destructor.
firevision::VisionMaster * vision_master()
Get vision master.