Fawkes API  Fawkes Development Version
globalpositionmodel.cpp
1 
2 /***************************************************************************
3  * globalpositionmodel.cpp - Abstract class defining a position model for
4  * calculation of global position
5  *
6  * Created: Wed Mar 21 15:44:10 2007
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 #include <fvmodels/global_position/globalpositionmodel.h>
26 
27 namespace firevision {
28 #if 0 /* just to make Emacs auto-indent happy */
29 }
30 #endif
31 
32 /** @class GlobalPositionModel <fvmodels/global_position/globalpositionmodel.h>
33  * Global Position Model Interface.
34  * This interface defines the API for global position models.
35  *
36  * @fn void GlobalPositionModel::set_robot_position(float x, float y, float ori)
37  * Set the global position of the object.
38  * @param x x coordinate of position
39  * @param y y coordinate of position
40  * @param ori orientation of robot
41  *
42  * @fn void GlobalPositionModel::set_position_in_image(unsigned int x, unsigned int y)
43  * Set the position of the object as recognized in the image.
44  * @param x x coordinate in pixels
45  * @param y y coordinate in pixels
46  *
47  * @fn float GlobalPositionModel::get_x() const
48  * Get global x coordinate of object.
49  * @return x coordinate of object
50  *
51  * @fn float GlobalPositionModel::get_y() const
52  * Get global y coordinate of object.
53  * @return y coordinate of object
54  *
55  * @fn void GlobalPositionModel::calc()
56  * Calculate position.
57  * From the data set via setRobotPosition() or setPositionInImage() calculate the
58  * objects global position.
59  *
60  * @fn bool GlobalPositionModel::is_pos_valid() const
61  * Check if the position is valid.
62  * @return true, if the calculated position is valid, false otherwise
63  *
64  * @author Tim Niemueller
65  */
66 
67 /** Empty virtual destructor. */
69 {
70 }
71 
72 } // end namespace firevision
virtual ~GlobalPositionModel()
Empty virtual destructor.