Fawkes API
Fawkes Development Version
|
#include <>>
Public Member Functions | |
OmniGlobal (MirrorModel *mirror_model) | |
Constructor. More... | |
virtual void | set_robot_position (float x, float y, float ori) |
virtual void | set_position_in_image (unsigned int x, unsigned int y) |
virtual float | get_x () const |
virtual float | get_y () const |
virtual void | calc () |
virtual bool | is_pos_valid () const |
![]() | |
virtual | ~GlobalPositionModel () |
Empty virtual destructor. More... | |
Omni vision global position model.
Definition at line 37 of file omni_global.h.
firevision::OmniGlobal::OmniGlobal | ( | MirrorModel * | mirror_model | ) |
|
virtual |
Calculate position. From the data set via setRobotPosition() or setPositionInImage() calculate the objects global position.
Implements firevision::GlobalPositionModel.
Definition at line 77 of file omni_global.cpp.
|
virtual |
Get global x coordinate of object.
Implements firevision::GlobalPositionModel.
Definition at line 71 of file omni_global.cpp.
References firevision::MirrorModel::getWorldPointGlobal(), and firevision::MirrorModel::isValidPoint().
|
virtual |
Get global y coordinate of object.
Implements firevision::GlobalPositionModel.
Definition at line 65 of file omni_global.cpp.
|
virtual |
Check if the position is valid.
Implements firevision::GlobalPositionModel.
Definition at line 89 of file omni_global.cpp.
|
virtual |
Set the position of the object as recognized in the image.
x | x coordinate in pixels |
y | y coordinate in pixels |
Implements firevision::GlobalPositionModel.
Definition at line 50 of file omni_global.cpp.
|
virtual |
Set the global position of the object.
x | x coordinate of position |
y | y coordinate of position |
ori | orientation of robot |
Implements firevision::GlobalPositionModel.
Definition at line 57 of file omni_global.cpp.