Fawkes API
Fawkes Development Version
|
#include <>>
Public Member Functions | |
GlobalFromRelativePos (RelativePositionModel *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 (void) const |
virtual float | get_y (void) const |
virtual void | calc () |
virtual bool | is_pos_valid () const |
![]() | |
virtual | ~GlobalPositionModel () |
Empty virtual destructor. More... | |
Calculate global ball position based on a relative position model. The relative position model must of course be tied to the ball.
Definition at line 41 of file globfromrel.h.
firevision::GlobalFromRelativePos::GlobalFromRelativePos | ( | RelativePositionModel * | model | ) |
Constructor.
model | relative position model for the ball. |
Definition at line 47 of file globfromrel.cpp.
|
virtual |
Calculate position. From the data set via setRobotPosition() or setPositionInImage() calculate the objects global position.
Implements firevision::GlobalPositionModel.
Definition at line 69 of file globfromrel.cpp.
References firevision::RelativePositionModel::is_pos_valid().
|
virtual |
Get global x coordinate of object.
Implements firevision::GlobalPositionModel.
Definition at line 80 of file globfromrel.cpp.
|
virtual |
Get global y coordinate of object.
Implements firevision::GlobalPositionModel.
Definition at line 99 of file globfromrel.cpp.
|
virtual |
Check if the position is valid.
Implements firevision::GlobalPositionModel.
Definition at line 74 of file globfromrel.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 64 of file globfromrel.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 56 of file globfromrel.cpp.