AURobotServers  4
Public Member Functions | Public Attributes | Static Public Attributes | Protected Attributes | List of all members
UObstacleHist Class Reference

#include <uobstaclehist.h>

Inheritance diagram for UObstacleHist:
Inheritance graph

Public Member Functions

void clear ()
 
UObstacleGroupgetGroup (int idx)
 
UObstacleGroupgetGroup (unsigned long serial, bool mayCreate)
 
UObstacleGroupgetGroupFixed ()
 
int getGroupNewest ()
 
UObstacleGroupgetGroupNewest (int cnt)
 
int getGroupsCnt ()
 
int getGroupsMax ()
 
 UObstacleHist ()
 
virtual ~UObstacleHist ()
 

Public Attributes

ULock ogLock
 

Static Public Attributes

static const int MAX_OBST_GRPS = 100
 

Protected Attributes

UObstacleGroup fixeds
 
UObstacleGroup groups [MAX_OBST_GRPS]
 
int groupsCnt
 
int groupsNewest
 
UTime updTime
 

Detailed Description

Holds the most recent obstacle history Initially for reactive behaviour only.

Author
Christian Andersen

Constructor & Destructor Documentation

UObstacleHist::UObstacleHist ( )

Constructor

References groupsCnt, and groupsNewest.

UObstacleHist::~UObstacleHist ( )
virtual

Destructor

Member Function Documentation

void UObstacleHist::clear ( void  )
inline

Empty the obstacle histort data

References groupsCnt.

Referenced by UResLaserIfObst::clear().

UObstacleGroup* UObstacleHist::getGroup ( int  idx)
inline

get number of obstacle groups

References groups.

Referenced by getGroupFixed(), and UResLaserIfObst::handleObstGrp().

UObstacleGroup * UObstacleHist::getGroup ( unsigned long  serial,
bool  mayCreate 
)
UObstacleGroup* UObstacleHist::getGroupFixed ( )
inline

Get pointer to the obstacle group with the fixed obstacles

References fixeds, getGroup(), and getGroupNewest().

Referenced by UNavPaint::paint().

int UObstacleHist::getGroupNewest ( )
inline

get index of newest obstacle group

References groupsNewest.

Referenced by getGroupFixed(), UResLaserIfObst::methodCall(), and UNavPaint::paint().

UObstacleGroup * UObstacleHist::getGroupNewest ( int  cnt)

get obstacle group from newest and back with this count

References groups, groupsCnt, and groupsNewest.

int UObstacleHist::getGroupsCnt ( )
inline
int UObstacleHist::getGroupsMax ( )
inline

get maximum number of storable groups

References MAX_OBST_GRPS.

Referenced by getGroup().

Member Data Documentation

UObstacleGroup UObstacleHist::fixeds
protected
UObstacleGroup UObstacleHist::groups[MAX_OBST_GRPS]
protected

array of pointert to the newest obstacle groups.

Referenced by getGroup(), getGroupNewest(), UResLaserIfObst::listGroup(), UResLaserIfObst::listGroups(), and UResLaserIfObst::methodCall().

int UObstacleHist::groupsCnt
protected
int UObstacleHist::groupsNewest
protected
const int UObstacleHist::MAX_OBST_GRPS = 100
static

max number of obstacle groups that can be stored in this class

Referenced by getGroupsMax(), UResLaserIfObst::listGroup(), UResLaserIfObst::listGroups(), and UResLaserIfObst::methodCall().

ULock UObstacleHist::ogLock

Lock to ensure integrity in obstacle history

Referenced by UResLaserIfObst::handleObst(), UResLaserIfObst::methodCall(), and UNavPaint::paint().

UTime UObstacleHist::updTime
protected

Updated with this timestamp

Referenced by UResLaserIfObst::handleObst(), and UResLaserIfObst::snprint().


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