46#define pi (4 * atan(1.0))
69 virtual void update (Position newInitPos, Position newDest,
double newTime,
double newSpeed);
virtual void update(Position newInitPos, Position newDest, double newTime, double newSpeed)
Update initial position, destination, time of last update.
virtual ~UwPosEstimation()
Destructor of UwPosEstimation class.
virtual Position getDest()
Get destination of last update.
UwPosEstimation()
Constructor of UwPosEstimation class.
double speed
speed of the node.
virtual Position getInitPos()
Get itnitial position of last update.
Position destPos
Destination of last update.
Position initialPos
Initial position related to last update.
virtual double nodesDistance(Position &p1, Position &p2)
Compute absoulute distance between 2 nodes.
virtual Position getEstimatePos(double time)
Get position estimation at a given time.
virtual double getTimestamp()
Get time of last update.
virtual double getSpeed()
Get speed of the node.
double timestamp
time of last update.