Fawkes API
Fawkes Development Version
|
24 #ifndef _FIREVISION_VELOCITYMODEL_H_
25 #define _FIREVISION_VELOCITYMODEL_H_
27 #include <fvutils/base/types.h>
30 namespace firevision {
44 virtual void getTime(
long int *sec,
long int *usec) = 0;
Velocity model interface.
virtual void setTimeNow()=0
Get current time from system.
virtual void calc()=0
Calculate velocity values from given data This method must be called after all relevent data (set*) h...
virtual void setPanTilt(float pan, float tilt)=0
Set pan and tilt.
virtual void setRobotVelocity(float vel_x, float vel_y, timeval t)=0
Set robot velocity.
virtual float getVelocityY()=0
Get velocity of tracked object in X direction.
virtual void reset()=0
Reset velocity model Must be called if ball is not visible at any time.
virtual void setRobotPosition(float x, float y, float ori, timeval t)=0
Set robot position.
virtual void getVelocity(float *vel_x, float *vel_y)=0
Method to retrieve velocity information.
virtual const char * getName() const =0
Get name of velocity model.
virtual ~VelocityModel()
Virtual empty destructor.
virtual coordsys_type_t getCoordinateSystem()=0
Returns the used coordinate system, must be either COORDSYS_ROBOT_CART or COORDSYS_ROBOT_WORLD.
virtual void getTime(long int *sec, long int *usec)=0
Get time from velocity.
virtual float getVelocityX()=0
Get velocity of tracked object in X direction.
virtual void setTime(timeval t)=0
Set current time.