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

#include <ulaserdataset.h>

Public Member Functions

void clear ()
 
bool getAsString (char *buffer, int bufferLng)
 
const char * getName ()
 
double getQuality ()
 
valueType getType ()
 
double getValue ()
 
double getValue (int idx)
 
bool isValid ()
 
bool setFromTag (USmlTag *tag, UPoseTime *poseTime)
 
 UPlannerValue ()
 

Protected Attributes

char name [MAX_VARIABLE_NAME_SIZE]
 
valueType type
 
bool valid
 
double value [MAX_VALUE_DIMENSIONS]
 

Detailed Description

Class to hold information on sensor values and variables

Constructor & Destructor Documentation

UPlannerValue::UPlannerValue ( )
inline

Member Function Documentation

void UPlannerValue::clear ( void  )

Clear variable to invalid and negative quality

References ULaserData::valid, and VALTYP_D.

bool UPlannerValue::getAsString ( char *  buffer,
int  bufferLng 
)

Format value ready for presentation for special values Some specific manes are shown differentlt than others, e.g. time and road values. Returns false if not a recognized special value type.

References bool2str(), UTime::getTimeAsString(), UTime::setTime(), and ULaserData::valid.

const char* UPlannerValue::getName ( )
inline
double UPlannerValue::getQuality ( )
inline

Get measurement quality figure. -1.0 means no quality is available

Referenced by UClientFuncLaserGui::paintPlannerData().

valueType UPlannerValue::getType ( )
inline

Get variable type

Referenced by UClientFuncLaserGui::paintPlannerData().

double UPlannerValue::getValue ( )
inline
double UPlannerValue::getValue ( int  idx)
inline

Get value of variable with index idx

bool UPlannerValue::isValid ( )
inline

Is the value marked as valid

References ULaserData::valid.

Referenced by UClientFuncLaserGui::paintPlannerData().

bool UPlannerValue::setFromTag ( USmlTag tag,
UPoseTime poseTime 
)

Member Data Documentation

char UPlannerValue::name[MAX_VARIABLE_NAME_SIZE]
protected

Name of variable

valueType UPlannerValue::type
protected

Quality of estimation, a value in [0.0 to 1.0] interval Type of value, one of VALTYP_D (double) VALTYP_DQ (double with quality (val, qual)) VALTYP_TIME (time (as double) VALTYP_3D (3D position x,y,z) VARTYP_POSE (x,y,h)

bool UPlannerValue::valid
protected

Is value valid - may be present, but invalid - i.e. road width

double UPlannerValue::value[MAX_VALUE_DIMENSIONS]
protected

Value of variable


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