DESERT 3.5.1
Loading...
Searching...
No Matches
UwPosEstimation Class Reference

#include <uwPosEstimation.h>

Inheritance diagram for UwPosEstimation:
Collaboration diagram for UwPosEstimation:

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
 

Detailed Description

Definition at line 48 of file uwPosEstimation.h.

Constructor & Destructor Documentation

◆ UwPosEstimation()

UwPosEstimation::UwPosEstimation ( )

Constructor of UwPosEstimation class.

Definition at line 42 of file uwPosEstimation.cpp.

◆ ~UwPosEstimation()

UwPosEstimation::~UwPosEstimation ( )
virtual

Destructor of UwPosEstimation class.

Definition at line 50 of file uwPosEstimation.cpp.

Member Function Documentation

◆ getDest()

Position UwPosEstimation::getDest ( )
virtual

Get destination of last update.

Definition at line 59 of file uwPosEstimation.cpp.

◆ getEstimatePos()

Position UwPosEstimation::getEstimatePos ( double  time)
virtual

Get position estimation at a given time.

Parameters
doubletime in which estimate position

Definition at line 91 of file uwPosEstimation.cpp.

◆ getInitPos()

Position UwPosEstimation::getInitPos ( )
virtual

Get itnitial position of last update.

Definition at line 54 of file uwPosEstimation.cpp.

◆ getSpeed()

double UwPosEstimation::getSpeed ( )
virtual

Get speed of the node.

Definition at line 69 of file uwPosEstimation.cpp.

◆ getTimestamp()

double UwPosEstimation::getTimestamp ( )
virtual

Get time of last update.

Definition at line 64 of file uwPosEstimation.cpp.

◆ nodesDistance()

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

Compute absoulute distance between 2 nodes.

Parameters
Positionposition first node.
Positionposition second node.

Definition at line 145 of file uwPosEstimation.cpp.

◆ 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

Definition at line 74 of file uwPosEstimation.cpp.

Member Data Documentation

◆ destPos

Position UwPosEstimation::destPos
private

Destination of last update.

Definition at line 108 of file uwPosEstimation.h.

◆ initialPos

Position UwPosEstimation::initialPos
private

Initial position related to last update.

Definition at line 107 of file uwPosEstimation.h.

◆ speed

double UwPosEstimation::speed
private

speed of the node.

Definition at line 110 of file uwPosEstimation.h.

◆ timestamp

double UwPosEstimation::timestamp
private

time of last update.

Definition at line 109 of file uwPosEstimation.h.


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