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

Public Member Functions

UGradeSetaddSet (int attIdx, const char *attName)
 
UGradeSetgetSet (int idx)
 
int getSet (const char *setname)
 
double grade (int setIdx, double x, double *weight)
 evaluate member More...
 
bool isA (const char *setname)
 
void setName (const char *typeName)
 
 UPatchType ()
 

Protected Attributes

char name [MNL]
 name of this class or patch type More...
 
UGradeSetsets [MSC]
 member limits More...
 
int setsCnt
 number of limit descriptions More...
 

Static Protected Attributes

static const int MNL = 20
 
static const int MSC = UFuncGndAna::attributeTypeCnt
 max number of sets More...
 

Detailed Description

This class describe limits for all attributes describing this patch-class a patch class could be

  1. cut grass/worn weed
  2. gravel road
  3. soil
  4. rough weed
  5. asphalt road
  6. wooden floor
  7. ...

Constructor & Destructor Documentation

UPatchType::UPatchType ( )
inline

References UGradeSet::name.

Member Function Documentation

UGradeSet* UPatchType::addSet ( int  attIdx,
const char *  attName 
)
inline
UGradeSet* UPatchType::getSet ( int  idx)
inline

Get a set by index

Referenced by UFuncGndAna::setFuzzpParamsFromGlobal().

int UPatchType::getSet ( const char *  setname)
inline

Get a set index by name

References UGradeSet::isA().

double UPatchType::grade ( int  setIdx,
double  x,
double *  weight 
)
inline

evaluate member

References UGradeSet::getMembershipGrade(), and UGradeSet::getWeight().

bool UPatchType::isA ( const char *  setname)
inline

compare name of set

References UGradeSet::name.

void UPatchType::setName ( const char *  typeName)
inline

Member Data Documentation

const int UPatchType::MNL = 20
staticprotected
const int UPatchType::MSC = UFuncGndAna::attributeTypeCnt
staticprotected

max number of sets

char UPatchType::name[MNL]
protected

name of this class or patch type

UGradeSet* UPatchType::sets[MSC]
protected

member limits

int UPatchType::setsCnt
protected

number of limit descriptions


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