Fawkes API  Fawkes Development Version
globalpositionmodel.h
1 
2 /***************************************************************************
3  * globalpositionmodel.h - Abstract class defining a position model for
4  * calculation of global position
5  *
6  * Created: Tue May 31 13:43:22 2005
7  * Copyright 2005-2007 Tim Niemueller [www.niemueller.de]
8  *
9  ****************************************************************************/
10 
11 /* This program is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License as published by
13  * the Free Software Foundation; either version 2 of the License, or
14  * (at your option) any later version. A runtime exception applies to
15  * this software (see LICENSE.GPL_WRE file mentioned below for details).
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU Library General Public License for more details.
21  *
22  * Read the full text in the LICENSE.GPL_WRE file in the doc directory.
23  */
24 
25 #ifndef __FIREVISION_GLOBALPOSITIONMODEL_H_
26 #define __FIREVISION_GLOBALPOSITIONMODEL_H_
27 
28 namespace firevision {
29 #if 0 /* just to make Emacs auto-indent happy */
30 }
31 #endif
32 
34 {
35 
36  public:
37  virtual ~GlobalPositionModel();
38 
39  virtual void set_robot_position(float x, float y, float ori) = 0;
40  virtual void set_position_in_image(unsigned int x, unsigned int y) = 0;
41 
42  virtual float get_x() const = 0;
43  virtual float get_y() const = 0;
44 
45  virtual void calc() = 0;
46 
47  virtual bool is_pos_valid() const = 0;
48 
49 };
50 
51 } // end namespace firevision
52 
53 #endif
54 
virtual void calc()=0
Calculate position.
virtual void set_robot_position(float x, float y, float ori)=0
Set the global position of the object.
virtual ~GlobalPositionModel()
Empty virtual destructor.
virtual void set_position_in_image(unsigned int x, unsigned int y)=0
Set the position of the object as recognized in the image.
virtual float get_x() const =0
Get global x coordinate of object.
virtual float get_y() const =0
Get global y coordinate of object.
virtual bool is_pos_valid() const =0
Check if the position is valid.
Global Position Model Interface.