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
26namespace 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 */
43{
44 add_aspect("VisionMasterAspect");
45 this->master = master;
46}
47
48/** Virtual empty Destructor. */
50{
51}
52
53/** Get vision master.
54 * @return vision master
55 */
58{
59 return master;
60}
61
62} // end namespace fawkes
void add_aspect(const char *name)
Add an aspect to a thread.
Definition: aspect.cpp:49
firevision::VisionMaster * vision_master()
Get vision master.
VisionMasterAspect(firevision::VisionMaster *master) __attribute__((nonnull))
Constructor.
virtual ~VisionMasterAspect()
Virtual empty Destructor.
Fawkes library namespace.