27 #include <fvmodels/global_position/globfromrel.h> 28 #include <fvmodels/relative_position/relativepositionmodel.h> 96 return ( m_pRelaModel->
get_x() * cos(m_fPhi)
97 - m_pRelaModel->
get_y() * sin(m_fPhi) )
118 return ( m_pRelaModel->
get_x() * sin(m_fPhi)
119 + m_pRelaModel->
get_y() * cos(m_fPhi) )
virtual float get_x() const =0
Get relative X coordinate of object.
GlobalFromRelativePos(RelativePositionModel *model)
Constructor.
Relative Position Model Interface.
virtual float get_y() const =0
Get relative Y coordinate of object.
virtual float get_x(void) const
Get global x coordinate of object.
virtual bool is_pos_valid() const
Check if the position is valid.
virtual bool is_pos_valid() const =0
Check if position is valid.
virtual void set_position_in_image(unsigned int x, unsigned int y)
Set the position of the object as recognized in the image.
virtual void calc()
Calculate position.
virtual void set_robot_position(float x, float y, float ori)
Set the global position of the object.
virtual float get_y(void) const
Get global y coordinate of object.