Fawkes API  Fawkes Development Version
vision_master.cpp
00001 
00002 /***************************************************************************
00003  *  vision_master.h - Vision Master aspect for Fawkes
00004  *
00005  *  Created: Tue May 29 14:45:54 2007
00006  *  Copyright  2006-2007  Tim Niemueller [www.niemueller.de]
00007  *
00008  ****************************************************************************/
00009 
00010 /*  This program is free software; you can redistribute it and/or modify
00011  *  it under the terms of the GNU General Public License as published by
00012  *  the Free Software Foundation; either version 2 of the License, or
00013  *  (at your option) any later version. A runtime exception applies to
00014  *  this software (see LICENSE.GPL_WRE file mentioned below for details).
00015  *
00016  *  This program is distributed in the hope that it will be useful,
00017  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  *  GNU Library General Public License for more details.
00020  *
00021  *  Read the full text in the LICENSE.GPL_WRE file in the doc directory.
00022  */
00023 
00024 #include <aspect/vision_master.h>
00025 
00026 namespace fawkes {
00027 #if 0 /* just to make Emacs auto-indent happy */
00028 }
00029 #endif
00030 
00031 /** @class VisionMasterAspect <aspect/vision_master.h>
00032  * Vision Master Aspect.
00033  *
00034  * This aspect provides access to the vision muster. Your thread having
00035  * this aspect has to call the proper constructor that sets the vision
00036  * master.
00037  *
00038  * @ingroup Aspects
00039  * @author Tim Niemueller
00040  */
00041 
00042 
00043 /** Constructor.
00044  * @param master vision master
00045  */
00046 VisionMasterAspect::VisionMasterAspect(firevision::VisionMaster *master)
00047 {
00048   add_aspect("VisionMasterAspect");
00049   this->master = master;
00050 }
00051 
00052 
00053 /** Virtual empty Destructor. */
00054 VisionMasterAspect::~VisionMasterAspect()
00055 {
00056 }
00057 
00058 
00059 /** Get vision master.
00060  * @return vision master
00061  */
00062 firevision::VisionMaster *
00063 VisionMasterAspect::vision_master()
00064 {
00065   return master;
00066 }
00067 
00068 } // end namespace fawkes