25 #ifndef _FIREVISION_RELATIVEPOSITIONMODEL_H_
26 #define _FIREVISION_RELATIVEPOSITIONMODEL_H_
28 #include <fvutils/base/types.h>
30 namespace firevision {
59 virtual float get_x()
const = 0;
60 virtual float get_y()
const = 0;
Relative Position Model Interface.
virtual void set_pan_tilt(float pan, float tilt)=0
Set camera pan and tilt.
virtual void set_cam_translation(float height, float rel_x=0.f, float rel_y=0.f)
Sets the current translation of the camera.
virtual void calc()=0
Calculate position data.
virtual void get_cam_rotation(float &pan, float &tilt, float &roll) const
Returns the camera orientation.
virtual void set_cam_rotation(float pan, float tilt, float roll=0.f)
Sets the camera orientation.
virtual float get_bearing() const =0
Get bearing (horizontal angle) to object.
virtual void reset()=0
Reset all data.
virtual float get_slope() const =0
Get slope (vertical angle) to object.
virtual void get_pan_tilt(float *pan, float *tilt) const =0
Get camera pan tilt.
virtual void get_cam_translation(float &height, float &rel_x, float &rel_y) const
Returns the current translation of the camera.
virtual void calc_unfiltered()=0
Calculate data unfiltered.
virtual ~RelativePositionModel()
Destructor.
virtual float get_y() const =0
Get relative Y coordinate of object.
virtual void set_center(float x, float y)=0
Set center of a found circle.
virtual const char * get_name(void) const =0
Get name of relative position model.
virtual void set_center(const center_in_roi_t &c)=0
Set center of a found circle.
virtual float get_x() const =0
Get relative X coordinate of object.
virtual void set_radius(float r)=0
Set radius of a found circle.
virtual float get_distance() const =0
Get distance to object.
virtual bool is_pos_valid() const =0
Check if position is valid.