AURobotServers
4
|
#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] |
Class to hold information on sensor values and variables
|
inline |
References ULaserData::clear(), MAX_VALUE_DIMENSIONS, ULaserData::setFromTag(), ULaserData::valid, and VALTYP_D.
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.
|
inline |
Get pointer to name
Referenced by UPlannerData::findValue(), UClientFuncLaserGui::paintPlannerData(), and UPlannerData::setVarFromTag().
|
inline |
Get measurement quality figure. -1.0 means no quality is available
Referenced by UClientFuncLaserGui::paintPlannerData().
|
inline |
Get variable type
Referenced by UClientFuncLaserGui::paintPlannerData().
|
inline |
Get value of variable
Referenced by UPlannerData::findPose(), UClientFuncLaserGui::paintPlannerData(), and UClientFuncLaserGui::paintWpc().
|
inline |
Get value of variable with index idx
|
inline |
Is the value marked as valid
References ULaserData::valid.
Referenced by UClientFuncLaserGui::paintPlannerData().
Set value from tag
References ULaserData::clear(), USmlTagIn::getNextAttribute(), USmlTagIn::isTagA(), MAX_SML_NAME_LENGTH, MAX_VARIABLE_NAME_SIZE, USmlTagIn::reset(), UPose::set(), UTime::setTime(), str2bool(), UPoseTime::t, ULaserData::valid, VALTYP_3D, VALTYP_D, VALTYP_DQ, VALTYP_DS, VALTYP_POSE, and VALTYP_TIME.
Referenced by UPlannerData::setVarFromTag().
|
protected |
Name of variable
|
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)
|
protected |
Is value valid - may be present, but invalid - i.e. road width
|
protected |
Value of variable