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.
firevision::GlobalPositionModel::~GlobalPositionModel | ( | ) | [virtual] |
Empty virtual destructor.
Definition at line 68 of file globalpositionmodel.cpp.
void firevision::GlobalPositionModel::calc | ( | ) | [pure virtual] |
Calculate position.
From the data set via setRobotPosition() or setPositionInImage() calculate the objects global position.
Implemented in firevision::GlobalFromRelativePos, and firevision::OmniGlobal.
float firevision::GlobalPositionModel::get_x | ( | void | ) | const [pure virtual] |
Get global x coordinate of object.
Implemented in firevision::GlobalFromRelativePos, and firevision::OmniGlobal.
Referenced by firevision::VelocityFromGlobal::calc().
float firevision::GlobalPositionModel::get_y | ( | void | ) | const [pure virtual] |
Get global y coordinate of object.
Implemented in firevision::GlobalFromRelativePos, and firevision::OmniGlobal.
Referenced by firevision::VelocityFromGlobal::calc().
bool firevision::GlobalPositionModel::is_pos_valid | ( | ) | const [pure virtual] |
Check if the position is valid.
Implemented in firevision::GlobalFromRelativePos, and firevision::OmniGlobal.
void firevision::GlobalPositionModel::set_position_in_image | ( | unsigned int | x, | |
unsigned int | y | |||
) | [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.
void firevision::GlobalPositionModel::set_robot_position | ( | float | x, | |
float | y, | |||
float | ori | |||
) | [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.