AURobotServers
4
|
#include <ulaserdataset.h>
Public Member Functions | |
bool | findPose (const char *nameX, const char *nameY, const char *nameH, UPose *poseDest) |
UPlannerValue * | findValue (const char *name) |
bool | setVarFromTag (USmlTag *tag, UPoseTime *odoPose) |
UPlannerData () | |
Public Attributes | |
char | cmdFile [MAX_PLANNER_LINE_SIZE] |
char | cmdLine [MAX_PLANNER_LINE_SIZE] |
char | cmdLineLast [MAX_PLANNER_LINE_SIZE] |
int | cmdLineNum |
bool | cmdLineOverride |
char | cmdStoppedBy [MAX_PLANNER_STOP_CRIT_SIZE] |
bool | isIdle |
bool | running |
char | simSubDir [MAX_FILENAME_SIZE] |
bool | simulated |
UPlannerStopCrit | stopCrit [MAX_STOP_CRIT_COUNT] |
int | stopCritCnt |
UPlannerValue | vars [MAX_VARS_STORED] |
int | varsCnt |
Class to hold status information of mission planner
|
inline |
References MAX_PLANNER_LINE_SIZE, and MAX_PLANNER_STOP_CRIT_SIZE.
bool UPlannerData::findPose | ( | const char * | nameX, |
const char * | nameY, | ||
const char * | nameH, | ||
UPose * | poseDest | ||
) |
Extract three values and store as pose. Returns true if all three values exist in stored set of values.
References UPlannerValue::getValue(), UPose::h, UPose::x, and UPose::y.
Referenced by UClientFuncLaserGui::paintOdoDest().
UPlannerValue * UPlannerData::findValue | ( | const char * | name | ) |
Get pointer to a specific variable with this name. Returns NULL if variable do not exist
References UPlannerValue::getName().
Referenced by UClientFuncLaserGui::paintWpc().
Decode from tag, i.e. decode all messages starting with 'get name= .../>'. Returns true if in right format
References UPlannerValue::getName(), MAX_VARS_STORED, and UPlannerValue::setFromTag().
Referenced by UClientFuncLaser::handleNewData(), and UClientFuncLaser::handleVarData().
char UPlannerData::cmdFile[MAX_PLANNER_LINE_SIZE] |
Planner source file name (relative to server)
Referenced by UClientFuncLaser::handlePlan(), and UClientFuncLaserGui::paintPlannerData().
char UPlannerData::cmdLine[MAX_PLANNER_LINE_SIZE] |
Planned data - actual line
Referenced by UClientFuncLaser::handlePlan(), and UClientFuncLaserGui::paintPlannerData().
char UPlannerData::cmdLineLast[MAX_PLANNER_LINE_SIZE] |
Planned data - actual line
Referenced by UClientFuncLaser::handlePlan(), and UClientFuncLaserGui::paintPlannerData().
int UPlannerData::cmdLineNum |
Command line number (in source file)
Referenced by UClientFuncLaser::handlePlan(), and UClientFuncLaserGui::paintPlannerData().
bool UPlannerData::cmdLineOverride |
Is command line a manual override
Referenced by UClientFuncLaser::handlePlan(), and UClientFuncLaserGui::paintPlannerData().
char UPlannerData::cmdStoppedBy[MAX_PLANNER_STOP_CRIT_SIZE] |
Last line finished by this event - one of a fixed number of strings
Referenced by UClientFuncLaser::handlePlan(), and UClientFuncLaserGui::paintPlannerData().
bool UPlannerData::isIdle |
Is planner idle (no mission active)
Referenced by UClientFuncLaser::handlePlan().
bool UPlannerData::running |
Is plan thread running
Referenced by UClientFuncLaser::handlePlan().
char UPlannerData::simSubDir[MAX_FILENAME_SIZE] |
Simulation source directory
Referenced by UClientFuncLaser::handlePlan(), and UClientFuncLaserGui::paintPlannerData().
bool UPlannerData::simulated |
Is run simulated
Referenced by UClientFuncLaser::handlePlan(), and UClientFuncLaserGui::paintPlannerData().
UPlannerStopCrit UPlannerData::stopCrit[MAX_STOP_CRIT_COUNT] |
Stop criteria status for current command line
Referenced by UClientFuncLaser::handlePlan(), and UClientFuncLaserGui::paintPlannerData().
int UPlannerData::stopCritCnt |
Count of valid stop criterias
Referenced by UClientFuncLaser::handlePlan(), and UClientFuncLaserGui::paintPlannerData().
UPlannerValue UPlannerData::vars[MAX_VARS_STORED] |
Monitored values from planner
Referenced by UClientFuncLaserGui::paintPlannerData().
int UPlannerData::varsCnt |
Number of vars available
Referenced by UClientFuncLaserGui::paintPlannerData().