From 6adaede8b82b2a9b6879a3f6cf42260b9bd15017 Mon Sep 17 00:00:00 2001 From: Mansard <nmansard@laas.fr> Date: Sat, 28 Jul 2012 16:11:00 +0200 Subject: [PATCH] Added the access to xml and vrml file names from the getProperty function. --- src/dynamic-command.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/dynamic-command.h b/src/dynamic-command.h index 1b39d28..6384f1f 100644 --- a/src/dynamic-command.h +++ b/src/dynamic-command.h @@ -129,7 +129,14 @@ namespace dynamicgraph { namespace sot { std::string property = values[0].value(); std::string value; - robot.m_HDR->getProperty(property, value); + if(! robot.m_HDR->getProperty(property, value) ) + { + if( property == "vrmlDirectory" ) value = robot.vrmlDirectory; + else if( property == "xmlSpecificityFile" ) value = robot.xmlSpecificityFile; + else if( property == "xmlRankFile" ) value = robot.xmlRankFile; + else if( property == "vrmlMainFile" ) value = robot.vrmlMainFile; + } + return Value(value); } }; // class GetProperty -- GitLab