49 #ifndef _HEK_XML_TUNE_H 50 #define _HEK_XML_TUNE_H 54 #include "rnr/rnrconfig.h" 56 #include "rnr/appkit/Xml.h" 57 #include "rnr/tinyxml/tinyxml.h" 124 bool bAllInstances=
false);
169 int rc = Xml::saveFile(strXmlFileName);
189 rc = Xml::saveFile(strXmlFileName);
288 TiXmlElement *pElemSubSec,
308 const std::string &strText,
330 const std::string &strText,
347 int strToNorm(
const std::string &strElem,
348 const std::string &strText,
359 setErrorMsg(
"%s: Element <%s> unknown - ignoring.",
360 m_strXmlFileName.c_str(), strElem.c_str());
361 LOGWARN(
"%s", m_bufErrMsg);
367 #endif // _HEK_XML_TUNE_H std::string m_strElemPidKd
pid derivative constant
const char *const HekSysCfgPath
System configuration search path.
HekXmlTune()
Default constructor.
int setJointPidTunes(const std::string &strJointName, TiXmlElement *pElemSubSec, HekTunesJoint &tunesJoint)
Set a joint's PID tune parameters from the parsed DOM.
static const int HEK_OK
not an error, success
std::string m_strElemTrajNorm
distance norm
const char *const HekXsiUrl
xml schema instance url
int strToNorm(const std::string &strElem, const std::string &strText, HekNorm &eNorm)
Convert text to norm enum.
std::string m_strSecElemJoint
joint tuning section element.
int setGlobalTunes(TiXmlElement *pElemSec, HekTunes &tunes)
Set the global tune parameters from the parsed DOM.
std::string m_strMajElemTuning
major element under 'hekateros'
Hekateros tuning per joint data class.
std::string m_strAttrJointId
joint id attribute name
std::string m_strElemOverTorqueTh
over torque condition threshold
virtual int saveFile(const HekTunes &tunes, const std::string &strXmlFileName=HekEtcTune)
Set DOM from <b><i>Hekateros</i></b> description and save XML file.
std::string m_strElemTolVel
position tolerance
virtual int saveFile(const std::string &strXmlFileName=HekEtcTune)
Save DOM to XML file.
Hekateros tuning data class.
std::string m_strElemPidMaxDeltaV
pid maximum delta v
virtual int createTemplateFile(const std::string &strXmlFileName=HekEtcTune)
Create a template <b><i>Hekateros</i></b> XML configuration file. root element.
std::string m_strElemTolPos
position tolerance
virtual int loadFile(const std::string &strXmlFileName=HekEtcTune)
Load XML file into DOM.
virtual ~HekXmlTune()
Destructor.
static const int HEK_ECODE_XML
XML error.
int setJointTunes(TiXmlElement *pElemSec, HekTunes &tunes)
Set a joint tune parameters from the parsed DOM.
int setGlobalTrajTunes(TiXmlElement *pElemSubSec, HekTunes &tunes)
Set the global trajectory tune parameters from the parsed DOM.
HekXmlTune <b><i>Hekateros</i></b> XML tuning class.
Hekateros joint classes interfaces.
const char *const HekXslUrl
xml stylesheet url
std::string m_strElemVelDerate
derated velocity
void warnUnknownElem(const std::string &strElem)
Warn on unknown element.
std::string m_strSubSecElemTraj
trajectory subsection
std::string m_strElemKinHz
kinematics thread hz
std::string m_strSecElemGlobal
global tuning section element
std::string m_strElemClearTorqueOff
clear over torque cond. th offset
const char *const HekEtcTune
xml tune file
std::string m_strSubSecElemPid
pos/vel pid subsection
int strToDoubleWithinRange(const std::string &strElem, const std::string &strText, const double fMin, const double fMax, double &fVal)
Convert text to value within minimum,maximum range.
Top-level package include file.
std::string m_strElemPidKp
pid proportional constant
HekNorm
Length/Distance Norm.
virtual int load(HekTunes &tunes, const std::string &strSearchPath=HekSysCfgPath, const std::string &strXmlFileName=HekEtcTune, bool bAllInstances=false)
Load XML file into DOM and set the <b><i>Hekateros</i></b> tuning parameters.
virtual int loadFile(HekTunes &tunes, const std::string &strXmlFileName=HekEtcTune)
Load XML file into DOM and set the <b><i>Hekateros</i></b> tuning parameters.
std::string m_strElemPidKi
pid integral constant
std::string m_strElemTrajEpsilon
distance epsilon
int strToDoubleWithMinimum(const std::string &strElem, const std::string &strText, const double fMin, double &fVal)
Convert text to value with a minimum value.
virtual int setTunesFromDOM(HekTunes &tunes)
Set the tune parameters from the parsed DOM.
The <b><i>Hekateros</i></b> namespace encapsulates all <b><i>Hekateros</i></b> related constructs...
virtual int setDOMFromHekTunes(const HekTunes &tunes)
Set the DOM from the <b><i>Hekateros</i></b> tune parameters.