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 
31 {
32 public:
33  virtual ~GlobalPositionModel();
34 
35  virtual void set_robot_position(float x, float y, float ori) = 0;
36  virtual void set_position_in_image(unsigned int x, unsigned int y) = 0;
37 
38  virtual float get_x() const = 0;
39  virtual float get_y() const = 0;
40 
41  virtual void calc() = 0;
42 
43  virtual bool is_pos_valid() const = 0;
44 };
45 
46 } // end namespace firevision
47 
48 #endif
firevision::GlobalPositionModel::get_x
virtual float get_x() const =0
Get global x coordinate of object.
firevision::GlobalPositionModel::is_pos_valid
virtual bool is_pos_valid() const =0
Check if the position is valid.
firevision::GlobalPositionModel::set_position_in_image
virtual void set_position_in_image(unsigned int x, unsigned int y)=0
Set the position of the object as recognized in the image.
firevision::GlobalPositionModel::~GlobalPositionModel
virtual ~GlobalPositionModel()
Empty virtual destructor.
Definition: globalpositionmodel.cpp:65
firevision::GlobalPositionModel
Global Position Model Interface.
Definition: globalpositionmodel.h:31
firevision::GlobalPositionModel::get_y
virtual float get_y() const =0
Get global y coordinate of object.
firevision::GlobalPositionModel::calc
virtual void calc()=0
Calculate position.
firevision::GlobalPositionModel::set_robot_position
virtual void set_robot_position(float x, float y, float ori)=0
Set the global position of the object.