26 namespace sawRobotIO1394 {
28 template <
typename _elementType>
29 bool osaXML1394GetValue(cmnXMLPath & path,
const std::string & context,
const std::string & XPath,
30 _elementType & value,
bool required =
true) {
31 bool found = path.GetXMLValue(context.c_str(), XPath.c_str(), value);
32 if (required && !found) {
33 CMN_LOG_INIT_ERROR <<
"osaXML1394GetValue: " << XPath <<
" in context " << context <<
" is required but not found" << std::endl;
40 osaPort1394Configuration & config);
44 osaRobot1394Configuration & robot);
48 osaRobot1394Configuration & robot);
52 const char * couplingString,
59 osaDigitalInput1394Configuration & digitalInput);
62 const int outputIndex,
63 osaDigitalOutput1394Configuration & digitalOutput);
67 #endif // _osaXML1394_h
bool osaXML1394GetValue(cmnXMLPath &path, const std::string &context, const std::string &XPath, _elementType &value, bool required=true)
Definition: osaXML1394.h:29
void osaXML1394ConfigurePort(const std::string &filename, osaPort1394Configuration &config)
#define CMN_LOG_INIT_ERROR
Definition: cmnLogger.h:162
bool osaXML1394ConfigureCouplingMatrix(cmnXMLPath &xmlConfig, const int robotIndex, const char *couplingString, int numRows, int numCols, vctDoubleMat &resultMatrix)
Typedef for dynamic matrices.
bool osaXML1394ConfigureDigitalOutput(cmnXMLPath &xmlConfig, const int outputIndex, osaDigitalOutput1394Configuration &digitalOutput)
bool osaXML1394ConfigureCoupling(cmnXMLPath &xmlConfig, const int robotIndex, osaRobot1394Configuration &robot)
bool osaXML1394ConfigureDigitalInput(cmnXMLPath &xmlConfig, const int inputIndex, osaDigitalInput1394Configuration &digitalInput)
bool osaXML1394ConfigureRobot(cmnXMLPath &xmlConfig, const int robotIndex, osaRobot1394Configuration &robot)