DESERT 4.0.0
UwPosEstimation Class Reference

#include <uwPosEstimation.h>

Inheritance diagram for UwPosEstimation:
Inheritance graph
Collaboration diagram for UwPosEstimation:
Collaboration graph

Public Member Functions

 UwPosEstimation ()
 
virtual ~UwPosEstimation ()
 
virtual void update (Position newInitPos, Position newDest, double newTime, double newSpeed)
 
virtual Position getEstimatePos (double time)
 
virtual Position getInitPos ()
 
virtual Position getDest ()
 
virtual double getTimestamp ()
 
virtual double getSpeed ()
 

Private Member Functions

virtual double nodesDistance (Position &p1, Position &p2)
 

Private Attributes

Position initialPos
 
Position destPos
 
double timestamp
 
double speed
 

Constructor & Destructor Documentation

◆ UwPosEstimation()

UwPosEstimation::UwPosEstimation ( )

Constructor of UwPosEstimation class

◆ ~UwPosEstimation()

UwPosEstimation::~UwPosEstimation ( )
virtual

Destructor of UwPosEstimation class

Member Function Documentation

◆ getDest()

Position UwPosEstimation::getDest ( )
virtual

Get destination of last update

References destPos.

◆ getEstimatePos()

Position UwPosEstimation::getEstimatePos ( double  time)
virtual

Get position estimation at a given time

Parameters
doubletime in which estimate position

References destPos, initialPos, nodesDistance(), speed, and timestamp.

Here is the call graph for this function:

◆ getInitPos()

Position UwPosEstimation::getInitPos ( )
virtual

Get itnitial position of last update

References initialPos.

◆ getSpeed()

double UwPosEstimation::getSpeed ( )
virtual

Get speed of the node

References speed.

◆ getTimestamp()

double UwPosEstimation::getTimestamp ( )
virtual

Get time of last update

References timestamp.

◆ nodesDistance()

double UwPosEstimation::nodesDistance ( Position &  p1,
Position &  p2 
)
privatevirtual

Compute absoulute distance between 2 nodes

Parameters
Positionposition first node.
Positionposition second node.

Referenced by getEstimatePos().

◆ update()

void UwPosEstimation::update ( Position  newInitPos,
Position  newDest,
double  newTime,
double  newSpeed 
)
virtual

Update initial position, destination, time of last update

Parameters
Positionnew initial position
Positionnew destination
doubletime of update
doublespeed of the node

References destPos, initialPos, speed, and timestamp.

Member Data Documentation

◆ destPos

Position UwPosEstimation::destPos
private

Destination of last update.

Referenced by getDest(), getEstimatePos(), and update().

◆ initialPos

Position UwPosEstimation::initialPos
private

Initial position related to last update.

Referenced by getEstimatePos(), getInitPos(), and update().

◆ speed

double UwPosEstimation::speed
private

speed of the node.

Referenced by getEstimatePos(), getSpeed(), and update().

◆ timestamp

double UwPosEstimation::timestamp
private

time of last update.

Referenced by getEstimatePos(), getTimestamp(), and update().


The documentation for this class was generated from the following files: