25 #ifndef __FIREVISION_MODELS_VELOCITY_GLOBALFROMRELATIVE_H_ 26 #define __FIREVISION_MODELS_VELOCITY_GLOBALFROMRELATIVE_H_ 28 #include <fvmodels/velocity/velocitymodel.h> 29 #include <fvmodels/velocity/relvelo.h> 30 #include <fvmodels/relative_position/relativepositionmodel.h> 45 virtual const char *
getName()
const;
50 virtual void setPanTilt(
float pan,
float tilt);
51 virtual void setTime(timeval t);
53 virtual void getTime(
long int *sec,
long int *usec);
55 virtual void getVelocity(
float *vel_x,
float *vel_y);
81 unsigned int avg_vx_num;
82 unsigned int avg_vy_num;
virtual void setTime(timeval t)
Set current time.
virtual void getVelocity(float *vel_x, float *vel_y)
Method to retrieve velocity information.
Velocity model interface.
virtual float getVelocityX()
Get velocity of tracked object in X direction.
virtual void calc()
Calculate velocity values from given data This method must be called after all relevent data (set*) h...
virtual float getVelocityY()
Get velocity of tracked object in X direction.
virtual void reset()
Reset velocity model Must be called if ball is not visible at any time.
Relative Position Model Interface.
virtual coordsys_type_t getCoordinateSystem()
Returns the used coordinate system, must be either COORDSYS_ROBOT_CART or COORDSYS_ROBOT_WORLD.
VelocityGlobalFromRelative(VelocityModel *rel_velo_model, RelativePositionModel *rel_pos_model)
Destructor.
virtual void getTime(long int *sec, long int *usec)
Get time from velocity.
virtual ~VelocityGlobalFromRelative()
Destructor.
virtual void setRobotPosition(float x, float y, float ori, timeval t)
Set robot position.
virtual void setRobotVelocity(float vel_x, float vel_y, timeval t)
Set robot velocity.
virtual void setPanTilt(float pan, float tilt)
Set pan and tilt.
virtual const char * getName() const
Get name of velocity model.
virtual void setTimeNow()
Get current time from system.
Global velocity from relative velocities.