|
Fawkes API
Fawkes Development Version
|
Global Position Model Interface. More...
#include <>>

Public Member Functions | |
| virtual | ~GlobalPositionModel () |
| Empty virtual destructor. | |
| virtual void | set_robot_position (float x, float y, float ori)=0 |
| Set the global position of the object. | |
| 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 void | calc ()=0 |
| Calculate position. | |
| virtual bool | is_pos_valid () const =0 |
| Check if the position is valid. | |
Global Position Model Interface.
This interface defines the API for global position models.
Definition at line 33 of file globalpositionmodel.h.
|
virtual |
Empty virtual destructor.
Definition at line 68 of file globalpositionmodel.cpp.
|
pure virtual |
Calculate position.
From the data set via setRobotPosition() or setPositionInImage() calculate the objects global position.
Implemented in firevision::OmniGlobal, and firevision::GlobalFromRelativePos.
|
pure virtual |
Get global x coordinate of object.
Implemented in firevision::OmniGlobal, and firevision::GlobalFromRelativePos.
|
pure virtual |
Get global y coordinate of object.
Implemented in firevision::OmniGlobal, and firevision::GlobalFromRelativePos.
|
pure virtual |
Check if the position is valid.
Implemented in firevision::OmniGlobal, and firevision::GlobalFromRelativePos.
|
pure virtual |
Set the position of the object as recognized in the image.
| x | x coordinate in pixels |
| y | y coordinate in pixels |
Implemented in firevision::GlobalFromRelativePos, and firevision::OmniGlobal.
|
pure virtual |
Set the global position of the object.
| x | x coordinate of position |
| y | y coordinate of position |
| ori | orientation of robot |
Implemented in firevision::GlobalFromRelativePos, and firevision::OmniGlobal.